Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-1764

[Fuse cartridge] Containers created from Fuse aren't removed properly

XMLWordPrintable

    • % %

      Containers create from Fuse can't be deleted properly. The NPE is thrown in command console or Hawtio web console. And container doesn't get deleted properly. It's still listed in OSE web console or rhc console.

      JBossFuse:admin@fuse> container-list
      [id]                           [version] [connected] [profiles]                                         [provision status]
      fuse*                          1.0       true        fabric, fabric-ensemble-0000-1, hawtio, openshift  success
      fuse2                          1.0       true        default                                            success
      JBossFuse:admin@fuse> container-delete fuse2
      Error executing command: java.lang.NullPointerException
      
      2014-08-04 10:13:36,595 | INFO  | Thread-43693     | Console                          | araf.shell.console.jline.Console  220 | 17 - org.apache.karaf.shell.console - 2.3.0.redhat-610387 | Exception caught while executing command
      java.lang.NullPointerException
      	at io.fabric8.service.FabricServiceImpl.destroyContainer(FabricServiceImpl.java:352)
      	at io.fabric8.internal.ContainerImpl.destroy(ContainerImpl.java:556)
      	at io.fabric8.commands.ContainerDelete.doExecute(ContainerDelete.java:47)
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[17:org.apache.karaf.shell.console:2.3.0.redhat-610387]
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610387]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610387]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610387]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610387]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610387]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610387]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[17:org.apache.karaf.shell.console:2.3.0.redhat-610387]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.doRun(ShellFactoryImpl.java:158)[45:org.apache.karaf.shell.ssh:2.3.0.redhat-610387]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4$1.run(ShellFactoryImpl.java:149)[45:org.apache.karaf.shell.ssh:2.3.0.redhat-610387]
      	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_65]
      	at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[46:org.apache.karaf.jaas.modules:2.3.0.redhat-610387]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.run(ShellFactoryImpl.java:147)[45:org.apache.karaf.shell.ssh:2.3.0.redhat-610387]
      
      JBossFuse:admin@fuse> container-delete --force fuse2
      Error executing command: java.lang.NullPointerException
      JBossFuse:admin@fuse> container-list
      [id]                           [version] [connected] [profiles]                                         [provision status]
      fuse*                          1.0       true        fabric, fabric-ensemble-0000-1, hawtio, openshift  success
      

      The force switch deletes the container from list, but there is strange entry in the exceptions. It seems that something is triggering creation of the container again.
      http://pastebin.test.redhat.com/225897

      In the OpenShift view, both cartridges are listed. Howver, the deleted container is unreacheable.

      [root@broker cloud-user]# rhc apps
      fuse @ http://fuse-test.example.com/ (uuid: 53df38616892df7871000019)
      ---------------------------------------------------------------------
        Domain:     test
        Created:    3:38 AM
        Gears:      1 (defaults to small)
        Git URL:    ssh://53df38616892df7871000019@fuse-test.example.com/~/git/fuse.git/
        SSH:        53df38616892df7871000019@fuse-test.example.com
        Deployment: auto (on git push)
      
        fuse-1.0.0 (JBoss Fuse 6.1.0 EA)
        --------------------------------
          Gears: 1 small
      
      fuse2 @ http://fuse2-test.example.com/ (uuid: 53df94296892df2b4c000032)
      -----------------------------------------------------------------------
        Domain:     test
        Created:    10:09 AM
        Gears:      1 (defaults to small)
        Git URL:    ssh://53df94296892df2b4c000032@fuse2-test.example.com/~/git/fuse2.git/
        SSH:        53df94296892df2b4c000032@fuse2-test.example.com
        Deployment: auto (on git push)
      
        fuse-1.0.0 (JBoss Fuse 6.1.0 EA)
        --------------------------------
          Gears: 1 small
      
      You have access to 2 applications.
      
      [root@broker cloud-user]# curl -IL fuse2-test.example.com
      HTTP/1.1 404 Not Found
      Date: Mon, 04 Aug 2014 14:35:13 GMT
      Server: Jetty(8.1.14.v20131031)
      Cache-Control: must-revalidate,no-cache,no-store
      Content-Type: text/html;charset=ISO-8859-1
      Content-Length: 1267
      Connection: close
      

            ggrzybek Grzegorz Grzybek
            dsimansk@redhat.com David Simansky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: