Test case: Fuse Fabric/ AMQ Migration
1. In 6.0, create a network of brokers inside a fabric using kahadb.
2. Send load of messages that will be stored
3. Stop 6.0 and migrate the configuration to 6.1.I've successfully created cluster of brokers in 6.0 and sent 1000 messages using fabric discovery protocol, all stored properly to kahadb. Afterward I've exported the profile of cluster from 6.0 via FMC, then run "fabric:export" to get all the fabric's configs. In 6.1 first "fabric:create", then I've created new profile for brokers via Hawtio by the exported one. At last I've used "fabric:import" to finish the migration. Containers have been created properly, in "fabric:container-list" provision is success, profiles match, but alive is false. "fabric:cluster-list" has also entries for desired cluster, but on the listed port nothing is running("netstat -plnt"). When I've run "fabric:container-start Broker1" an exception was thrown java.lang.UnsupportedOperationException: Container Broker1 has not been created using Fabric.| JBossFuse:karaf@root> container-list|
[id] [version] [alive] [profiles] [provision status] |
root* 1.0 true fabric, fabric-ensemble-0000-1, jboss-fuse-full success |
Broker1 1.0 false default, broker-cluster-profile success |
Broker2 1.0 false default, broker-cluster-profile success |
2014-02-04 12:50:29,689 | INFO | l Console Thread | FabricServiceImpl | ? ? | 63 - io.fabric8.fabric-core - 1.0.0.redhat-328 | Starting container Broker1 |
2014-02-04 12:50:29,693 | INFO | l Console Thread | Console | ? ? | 15 - org.apache.karaf.shell.console - 2.3.0.redhat-610328 | Exception caught while executing command |
java.lang.UnsupportedOperationException: Container Broker1 has not been created using Fabric |
at io.fabric8.service.FabricServiceImpl.getProvider(FabricServiceImpl.java:349)[63:io.fabric8.fabric-core:1.0.0.redhat-328] |
at io.fabric8.service.FabricServiceImpl.getProvider(FabricServiceImpl.java:339)[63:io.fabric8.fabric-core:1.0.0.redhat-328] |
at io.fabric8.service.FabricServiceImpl.startContainer(FabricServiceImpl.java:265)[63:io.fabric8.fabric-core:1.0.0.redhat-328] |
at io.fabric8.internal.ContainerImpl.start(ContainerImpl.java:531)[63:io.fabric8.fabric-core:1.0.0.redhat-328] |
at io.fabric8.commands.ContainerStart.doExecute(ContainerStart.java:33)[66:io.fabric8.fabric-commands:1.0.0.redhat-328] |
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[15:org.apache.karaf.shell.console:2.3.0.redhat-610328] |
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.0.redhat-610328] |
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610328] |
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610328] |
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610328] |
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610328] |
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610328] |
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610328] |
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610328] |
at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[15:org.apache.karaf.shell.console:2.3.0.redhat-610328] |
at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[15:org.apache.karaf.shell.console:2.3.0.redhat-610328] |