Can not stop the root container using the 'fabric: container-stop' command
Issue
- The method container-stop throws error while stopping root container.
- Output contains that error :
Error executing command: Container fabric-server-01 has not been created using Fabric
- Below are the steps for reproducing the error:
Step 1
- Create fabric ensemble, containing 3 containers :
- On host1 we create fabric server, then using container-create-ssh we create next 2 containers.
fabric: create --clean --global-resolver localip --resolver localip --wait-for-provisioning
fabric: container-create-ssh --host2 --user fuse --password fuse --env JAVA_HOME=/app/fuse/java --path /app/fuse --profile fabric fabric-server-02
fabric: container-create-ssh --host3 --user fuse --password fuse --env JAVA_HOME=/app/fuse/java --path /app/fuse --profile fabric fabric-server-03
- Then we add them to ensemble
ensemble-add fabric-server-02 fabric-server-03
- Checking the ensemble
JBossFuse:admin@fabric-server-01> ensemble-list
[id]
fabric-server-01
fabric-server-02
fabric-server-03
JBossFuse:admin@fabric-server-01> container-list
[id] [version] [type] [connected] [profiles] [provision status]
fabric-server-01* 1.0 karaf yes fabric success
jboss-fuse-full
fabric-ensemble-0001-1
fabric-server-02 1.0 karaf yes fabric success
fabric-ensemble-0001-2
fabric-server-03 1.0 karaf yes fabric success
fabric-ensemble-0001-3
- All containers are connected and provision status is success
Step 2
- Stop root container : fabric-server-01
- We login info fabric-server-02 and execute method container-stop
Fabric8:admin@fabric-server-02> container-stop -f fabric-server-01
The list of container names: [fabric-server-01]
Error executing command: Container fabric-server-01 has not been created using Fabric
- Other servers for example fabric-server-03 can be stopped using the command container-stop {container_name}. The problem occurs only with the root container.
Environment
- Red Hat JBoss Fuse
- 6.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.