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

[Patch mechanism] NullPointerException when updating ssh cointainer (maybe openstack issue)

    XMLWordPrintable

Details

    • % %
    • Hide
      1. modify setenv to file in description
      2. follow these steps described in http://pastebin.test.redhat.com/326471 or attached file
      Show
      modify setenv to file in description follow these steps described in http://pastebin.test.redhat.com/326471 or attached file

    Description

      There is a problem upgrading ssh container created on 6.2.0 GA fabric to 6.2.1 using the new patch mechanism on openstack ( maybe only openstack issue)

      bin/setenv file is modified before starting Fuse GA for openstack issues:

      # karaf script afterwards.
      #
      
      #
      # The following section shows the possible configuration options for the default
      # karaf scripts
      #
      JAVA_MIN_MEM=512M # Minimum memory for the JVM
      JAVA_MAX_MEM=512M # Maximum memory for the JVM
      JAVA_PERM_MEM=128M # Minimum perm memory for the JVM
      JAVA_MAX_PERM_MEM=256M # Maximum memory for the JVM
      export JAVA_MIN_MEM
      export JAVA_MAX_MEM
      export JAVA_PERM_MEM
      export JAVA_MAX_PERM_MEM
      
      # export EXTRA_JAVA_OPTS # Additional JVM options
      # export KARAF_HOME # Karaf home folder
      # export KARAF_DATA # Karaf data folder
      # export KARAF_BASE # Karaf base folder
      # export KARAF_ETC  # Karaf etc folder
      # export KARAF_OPTS # Additional available Karaf options
      # export KARAF_REDIRECT # Enable/set the std/err redirection when using bin/startexport JAVA_PERM_MEM=256M
      
      
      
      export JAVA_OPTS="-Xms$JAVA_MIN_MEM -Xmx$JAVA_MAX_MEM -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Djava.security.egd=file:/dev/./urandom"
      
      

      After this fabric is created with default configuration and also the ssh container. Following instructions from patch meeting the ssh container is upgraded to 6.2.1-071 but fails with:

      [id]   [version]  [type]  [connected]  [profiles]              [provision status]                                
      root*  1.0.1      karaf   yes          fabric                  success                                           
                                             fabric-ensemble-0000-1                                                    
                                             jboss-fuse-full                                                           
      ssh1   1.1        karaf   yes          default                 error - io.fabric8.patch.management.PatchException
      JBossFuse:karaf@root> container-info ssh1 
      Name:                          ssh1
      Version:                       1.1
      Connected:                     true
      Type:                          karaf
      Root:                          true
      Ensemble Server:               false
      Managed:                       true
      Process ID:                    25576
      Resolver:                      localip
      Network Address:               172.16.116.72
      Local Network Address:         172.16.116.72
      Public Network Address:        
      Local Hostname:                rjakubco-patch-373840e5-adcf-439a-8d86-eaa9df56c241.novalocal
      Public Hostname:               
      SSH Url:                       172.16.116.72:8101
      JMX Url:                       service:jmx:rmi://172.16.116.72:44444/jndi/rmi://172.16.116.72:1099/karaf-ssh1
      Http Url:                      http://172.16.116.72:8181
      Jolokia Url:                   http://172.16.116.72:8181/jolokia
      Blueprint Status:              started
      Provision Status:              error - io.fabric8.patch.management.PatchException
      Provision Error:               io.fabric8.patch.management.PatchException
      	at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.alignTo(GitPatchManagementServiceImpl.java:2863)
      	at io.fabric8.agent.DeploymentAgent$11.done(DeploymentAgent.java:695)
      	at io.fabric8.agent.service.Agent$2.done(Agent.java:349)
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:966)
      	at io.fabric8.agent.service.Agent.provision(Agent.java:363)
      	at io.fabric8.agent.service.Agent.provision(Agent.java:196)
      	at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:722)
      	at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:283)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      	at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.index(UnpackedObjectCache.java:146)
      	at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.contains(UnpackedObjectCache.java:109)
      	at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache.isUnpacked(UnpackedObjectCache.java:64)
      	at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:370)
      	at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
      	at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:229)
      	at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.handleCherryPickConflict(GitPatchManagementServiceImpl.java:1293)
      	at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.trackFabricContainerBaselineRepository(GitPatchManagementServiceImpl.java:2353)
      	at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.alignTo(GitPatchManagementServiceImpl.java:2838)
      	... 12 more
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              rjakubco Roman Jakubco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: