Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-29268

[GSS](8.0.z) Some management resources cannot be added and removed in a composite operation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Management, Undertow
    • False
    • Hide

      None

      Show
      None
    • False

      Certain management resources cannot be added and removed in a composite operation. For example, the following Operation for certain Undertow resources fails when it is used in a batch:

      [standalone@localhost:9990 /] batch
      [standalone@localhost:9990 / #] /subsystem=undertow/configuration=filter/mod-cluster=test:add(management-socket-binding=http)
      [standalone@localhost:9990 / #] /subsystem=undertow/configuration=filter/mod-cluster=test:remove()
      [standalone@localhost:9990 / #] run-batch
      The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error): 
      WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
      Step: step-1
      Operation: /subsystem=undertow/configuration=filter/mod-cluster=test:add(management-socket-binding=http)
      Failure: WFLYCTL0216: Management resource '[
          ("subsystem" => "undertow"),
          ("configuration" => "filter"),
          ("mod-cluster" => "test")
      ]' not found
      

      The "Step: step-1" reference seems to be wrong since step-1 (notice that composite operations are 1-based index) refers to the operation that adds the test resource, instead of an operation that tries to manipulate an existing resource.

      The above sequence of operations is not very useful at all, but this error has a direct consequence on the clone operation available in Domain Mode, since the clone operation creates the resource first. So, internally, this generates the same sequence:

      [domain@localhost:9990 /] batch
      [domain@localhost:9990 / #] /profile=load-balancer:clone(to-profile=load-balancer-clone)
      [domain@localhost:9990 / #] /profile=load-balancer-clone/subsystem=undertow/configuration=filter/mod-cluster=load-balancer:remove()
      [domain@localhost:9990 / #] run-batch
      The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error): {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYCTL0216: Management resource '[
          (\"profile\" => \"load-balancer-clone\"),
          (\"subsystem\" => \"undertow\"),
          (\"configuration\" => \"filter\"),
          (\"mod-cluster\" => \"load-balancer\")
      ]' not found"}}
      

      It is possible that there could be other resources that by generating a similar sequence of operations throw the same error.

              rhn-cservice-bbaranow Bartosz Baranowski
              yborgess1@redhat.com Yeray Borges Santana
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: