Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3703

arq.container.domain.ManagementClient.readRootNode does not see servers on remote hosts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 8.2.0.Final, 9.0.0.Beta1
    • 8.1.0.Final
    • Test Suite
    • None
    • Linux aimobile-sm.servicemesh.com 3.15.6-200.fc20.x86_64 #1 SMP Fri Jul 18 02:36:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

      Trying to use Arquillian with remote multi-host domain.

      Now see the code snippet below:

      • readRootNode calls readResource with includeRuntime set to true.
      • readResource also sets recursive to true.

      However due to this behavior of read-resource no hosts other than domain controller's are visible to Arquillian:

      proxies – (boolean, default is false) – whether to include remote resources in a recursive query (i.e. host level resources from slave Host Controllers in a query of the Domain Controller; running server resources in a query of a host).

      As a result if I have a DC on localhost with no servers and Host1 with Node1 on 127.0.0.2 and Host2 with Node2 on 127.0.0.3, Arquillian will not find ANY servers to deploy to - no proxies (remote hosts) will be enumerated.

          private void readRootNode() throws Exception {
              rootNode = readResource(new ModelNode());
          }
      
          private ModelNode readResource(ModelNode address) throws Exception {
              return readResource(address, true);
          }
      
         private ModelNode readResource(ModelNode address, boolean includeRuntime) throws Exception {
              final ModelNode operation = new ModelNode();
              operation.get(OP).set(READ_RESOURCE_OPERATION);
              operation.get(RECURSIVE).set("true");
              operation.get(INCLUDE_RUNTIME).set(includeRuntime);
              operation.get(OP_ADDR).set(address);
      
              return executeForResult(operation);
          }
      

        1. non-recursive.txt
          3 kB
        2. recursive.txt
          250 kB
        3. recursive-runtime.txt
          266 kB

              arcivanov_jira Arcadiy Ivanov (Inactive)
              arcivanov_jira Arcadiy Ivanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: