Unable to add a new server in a server-group of older EAP 7 host controller managed by a newer EAP 7 Domain Controller
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7
- Configure a JBoss EAP 7.3 Domain Controller to Administer JBoss EAP 7.2 (or earlier) Instances (as per documentation)
- Trying to add a new server in a server-group of older EAP 7 host controller that is managed by a newer EAP 7 Domain Controller
Issue
This does not work on using JBoss CLI (or Admin Console GUI) to add the new server, I'm always getting this error:
[domain@xx.xx.xx.xx:9990 /] /host=SlaveEAP71/server-config=SlaveJvm-EAP71:add(group=ServerGroup-eap71)
{
"outcome" => "failed",
"result" => {},
"failure-description" => {"host-failure-descriptions" => {"SlaveEAP71" => "WFLYHC0201: Error synchronizing the host model with the domain controller model with failure : WFLYDC0075: Cannot synchronize the model due to missing extensions: [org.wildfly.extension.microprofile.opentracing-smallrye, org.wildfly.extension.microprofile.config-smallrye, org.wildfly.extension.ee-security]."}},
"rolled-back" => true
}
[domain@xx.xx.xx.xx:9990 /]
Resolution
This is a bug and it will be addressed in a next EAP 7.3.z patch release (refer to Root Cause section for more).
For now, a workaround is to manually edit your host*.xml file and add the new server under the servers section:
<host name="SlaveEAP71" xmlns="urn:jboss:domain:5.0">
...
<servers>
<server name="SlaveJvm-EAP71" group="ServerGroup-eap71"/>
</servers>
...
</host>
Then, start your host controller as usual.
After adding at least one server manually in your host*.xml as above, you will be able to use the JBoss CLI (or Admin Console) operation to add more servers:
[domain@xx.xx.xx.xx:9990 /] /host=SlaveEAP71/server-config=SlaveJvm-EAP72:add(group=ServerGroup-eap71)
{
"outcome" => "success",
"result" => undefined,
"server-groups" => undefined
}
Root Cause
You cannot add a new server to your EAP 7.2 (or earlier 7.x) server group via CLI command (or Admin Console GUI), if there is no server already added. This is a bug:
- This content is not included.This content is not included.https://issues.redhat.com/browse/JBEAP-19990
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.