Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5180

Management operations using wildcards are incorrectly managed on domain mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • Management
    • None
    • Undefined

      When we have a domain with several HCs, management operations that use wildcards are not correctly managed in all the cases.

      For example, suppose we have a domain with one DC (without servers), one HC (without servers), and one HC (with servers):

      [domain@localhost:9990 /] /host=*/server=*:read-resource-description()
      {
          "outcome" => "success",
          "result" => [
              {
                  "address" => [
                      ("host" => "master"),
                      ("server" => "*")
                  ],
                  "outcome" => "success",
                  "result" => { ......
      
      [domain@localhost:9990 /] /host=*/server=*/interface=management:read-resource-description()
      {
          "outcome" => "failed",
          "result" => [
              {
                  "address" => [
                      ("host" => "localhost"),
                      ("server" => "server-one"),
                      ("interface" => "management")
                  ],
                  "outcome" => "failed",
                  "result" => {....
      

      The second operation returns results. We can say it failed because one of the HC has no servers and then the interface=management subresource doesn't exist.

      However, If we have only one DC (without servers) and one HC (with servers) both operations are executed correctly and return the expected results. This seems to be inconsistent if we assume the operation should fail because the DC has no servers, hence the interface=management subresource is not available.

      For example, executing the operation in a domain with a DC (without servers) we get: 

      [domain@localhost:9990 /] /host=*/server=*/interface=management:read-resource-description()
      {
          "outcome" => "failed",
          "result" => [],
          "failure-description" => "WFLYCTL0030: No resource definition is registered for address [
          (\"host\" => \"*\"),
          (\"server\" => \"*\")
      ]",
          "rolled-back" => true
      }

       

              yborgess1@redhat.com Yeray Borges Santana
              yborgess1@redhat.com Yeray Borges Santana
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: