JBoss allows removing server-group even when servers are associated to it
Issue
- JBoss allows removing
server-groupeven when servers are associated to it. The expected behaviour is that JBoss should first check if some servers are already associated to theserver-groupor not when removing it? If Yes, then JBoss should prompt the user that some servers are already associated to thisserver-groupso first either unassigned those servers from theserver-groupand then try again or reject the client request.
Steps to Reproduce:
-
Take a fresh JBoss EAP 6 and run the
domain.shto start the domain.
Notice that"server-one"is already associated with"main-server-group". -
Now remove the
server-group=main-server-groupusing the following CLI command:[domain@localhost:9999 /] /server-group=main-server-group:remove() { "outcome" => "success", "result" => undefined, "server-groups" => undefined } -
Stop the
server-onethen start it again by using the following CLI command. You will see the following error / inconsistency:[domain@localhost:9999 /] /host=master/server-config=server-one:stop() { "outcome" => "success", "result" => "STOPPING" }[domain@localhost:9999 /] /host=master/server-config=server-one:start() { "outcome" => "failed", "result" => undefined, "failure-description" => "JBAS014749: Operation-Handler testgroup: No child 'P_test' exists", "rolled-back" => true }
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
