Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-539

Can't start broker after migration from 6.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JBoss A-MQ 6.1
    • JBoss A-MQ 6.1
    • broker
    • None
    • Hide

      1. Run Fuse 6.0.0.redhat-059
      2. Create Fabric and cluster of brokers with at least 2 containers
      3. Send load of messages (eg. 1000) to the brokers
      4. Export profile for related brokers via FMC
      5. Run "fabric:export"
      6. Start Fuse 6.1.0.redhat-328
      7. Create Fabric, open Hawtio and create profile for brokers by the exported one
      8. From the console run "fabric:import" with path to the config
      9. Check if brokers are created and running

      Show
      1. Run Fuse 6.0.0.redhat-059 2. Create Fabric and cluster of brokers with at least 2 containers 3. Send load of messages (eg. 1000) to the brokers 4. Export profile for related brokers via FMC 5. Run "fabric:export" 6. Start Fuse 6.1.0.redhat-328 7. Create Fabric, open Hawtio and create profile for brokers by the exported one 8. From the console run "fabric:import" with path to the config 9. Check if brokers are created and running

    Description

      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
      JBossFuse:karaf@root> cluster-list
      [cluster] [masters] [slaves] [services]
      fusemq/broker-cluster
      broker-cluster-profile Broker2 Broker1 tcp://dhcp-30-102.brq.redhat.com:44051
      fusemq/default
      root root - tcp://dhcp-30-102.brq.redhat.com:61616
      git
      fabric-repo root - http://dhcp-30-102.brq.redhat.com:8181/git/fabric/
      servlets/org.apache.cxf.cxf-rt-transports-http/2.7.0.redhat-610328/cxf
      root root - http://dhcp-30-102.brq.redhat.com:8181/cxf
      servlets/org.jboss.amq.mq-http-discovery/6.1.0.redhat-328/mq-discovery
      root root - http://dhcp-30-102.brq.redhat.com:8181/mq-discovery
      stats/default
      webapps/io.hawt.swagger.hawtio-swagger-ui/1.0.2
      root root - http://dhcp-30-102.brq.redhat.com:8181/hawtio-swagger
      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]

      Attachments

        Activity

          People

            dejanbosanac Dejan Bosanac
            dsimansk@redhat.com David Simansky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: