Unable add containers to fabric ensemble if the container name was set using the karaf.name system property
Issue
- Unable add containers to fabric ensemble if the container name was set using the karaf.name system property.
If you have manually set the container name using the system property karaf.name in the [fuse-esb]/etc/system.properties file then you might might see the following behavior when attempting to add these containers to the fabric ensemble:
FuseESB:karaf@saturn.main.com> fabric:ensemble-add myremote1.com myremote2.com
Adding containers: myremote1.com myremote2.com to the ensemble. This may take a while.
Error executing command: Unable to add containers to fabric ensemble: Unable to create zookeeper quorum: null
FuseESB:karaf@saturn.main.com>
This results in the following profiles being applied to the root container:
FuseESB:karaf@saturn.main.com> fabric:container-list
[id] [version] [alive] [profiles] [provision status]
myremote1.com 1.0 true fabric success
myremote2.com 1.0 true fabric success
saturn.main.com* 1.0 true fabric, fabric-ensemble-0000-1, fuse-esb-full, fabric-ensemble-0001-1 success
FuseESB:karaf@saturn.main.com>
Note that the saturn.main.com container is the root container where fabric was created and it now has two ensemble profiles: fabric-ensemble-0000-1 and fabric-ensemble-0001-1. This is not the expected behavior, containers should only have 1 ensemble profile provisioned on them. The other two containers myremote1.com and myremote2.com where standalone containers that were added to the fabric using the fabric:join command.
Environment
- Fuse ESB Enterprise 7.1
- Fabric
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.