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

[Patch mechanism] Unable to create SSH container with just applied patch to version

XMLWordPrintable

    • % %
    • Hide
      1. fabric:create (GA)
      2. install the patching mechanism for build nr. 69, using steps provided in : https://mojo.redhat.com/docs/DOC-1049758 (Patch is applied to version 1.1 but not used)
      3. container-create-ssh --version 1.0 --user xx --password xx --host xx testcontainer
      Show
      fabric:create (GA) install the patching mechanism for build nr. 69, using steps provided in : https://mojo.redhat.com/docs/DOC-1049758 (Patch is applied to version 1.1 but not used) container-create-ssh --version 1.0 --user xx --password xx --host xx testcontainer

      After just creating new version with applied new patch mechanism and not using it on root, I am unable to create ssh container.

      JBossFuse:karaf@root> container-create-ssh --user fuse --password fuse --host 172.16.116.56 --resolver localip ssh1
      The following containers have been created successfully:
      	Container: ssh1.
      JBossFuse:karaf@root> 
      
      JBossFuse:karaf@root> container-list
      [id]   [version]  [type]  [connected]  [profiles]              [provision status]                                                     
      root*  1.0        karaf   yes          fabric                  success                                                                
                                             fabric-ensemble-0000-1                                                                         
                                             jboss-fuse-full                                                                                
      ssh1   1.0        karaf   yes          default                 error - io.fabric8.common.util.MultiException: Error restarting bundles
      JBossFuse:karaf@root> container-info ssh1 
      Name:                          ssh1
      Version:                       1.0
      Connected:                     true
      Type:                          karaf
      Root:                          true
      Ensemble Server:               false
      Managed:                       true
      Process ID:                    17557
      Resolver:                      localip
      Network Address:               172.16.116.56
      Local Network Address:         172.16.116.56
      Public Network Address:        
      Local Hostname:                rjakubco-patch-ae2dbe0f-5618-4e5d-9d88-ff4c0ca8c6ca.novalocal
      Public Hostname:               
      SSH Url:                       172.16.116.56:8101
      JMX Url:                       service:jmx:rmi://172.16.116.56:44444/jndi/rmi://172.16.116.56:1099/karaf-ssh1
      Http Url:                      http://172.16.116.56:8181
      Jolokia Url:                   http://172.16.116.56:8181/jolokia
      Blueprint Status:              started
      Provision Status:              error - io.fabric8.common.util.MultiException: Error restarting bundles
      Provision Error:               io.fabric8.common.util.MultiException: Error restarting bundles
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:881)
      	at io.fabric8.agent.service.Agent.provision(Agent.java:348)
      	at io.fabric8.agent.service.Agent.provision(Agent.java:194)
      	at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:642)
      	at io.fabric8.agent.DeploymentAgent$2.run(DeploymentAgent.java:256)
      	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)
      org.osgi.framework.BundleException: Activator start error in bundle io.fabric8.patch.patch-management [174].
      	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2204)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2072)
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)
      	at io.fabric8.agent.service.Agent$BaseDeployCallback.startBundle(Agent.java:456)
      	at io.fabric8.agent.service.Deployer$3.call(Deployer.java:856)
      	at io.fabric8.agent.service.Deployer$3.call(Deployer.java:851)
      	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: org.eclipse.jgit.api.errors.JGitInternalException: Invalid ref baseline-ssh-fabric8-1.2.0.redhat-133 specified
      	at org.eclipse.jgit.api.ResetCommand.call(ResetCommand.java:160)
      	at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.trackFabricContainerBaselineRepository(GitPatchManagementServiceImpl.java:2244)
      	at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.ensurePatchManagementInitialized(GitPatchManagementServiceImpl.java:1639)
      	at io.fabric8.patch.management.impl.Activator.start(Activator.java:100)
      	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
      	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2154)
      	... 10 more
      

      If you start and stop the ssh container then it is provisioned with success( that is not very user friendly)

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

              Created:
              Updated:
              Resolved: