-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
8.1.0.Beta
-
False
-
-
False
-
-
-
-
-
-
Known Issue
-
-
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.
- blocks
-
JBEAP-29268 [GSS](8.0.z) Some management resources cannot be added and removed in a composite operation
-
- New
-
- clones
-
JBEAP-29268 [GSS](8.0.z) Some management resources cannot be added and removed in a composite operation
-
- New
-
- is cloned by
-
WFLY-20863 Some management resources cannot be added and removed in a composite operation
-
- Open
-
- is duplicated by
-
JBEAP-30646 [GSS](8.1.z) Some management resources cannot be added and removed in a composite operation
-
- Closed
-