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

[Patch mechanism] Problem with upgrading SSH container

XMLWordPrintable

    • % %
    • Hide
      1. fabric:create (GA)
      2. container-create-ssh --version 1.0 --user xx --password xx --host xx testcontainer
      3. 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)
      4. container-upgrade 1.1 testcontainer
      Show
      fabric:create (GA) container-create-ssh --version 1.0 --user xx --password xx --host xx testcontainer 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-upgrade 1.1 testcontainer

      There is a problem when upgrading ssh container when root is still just GA version. I am not sure if this really supported with such difference in versions, but I think it should work and if not then well ... then it need to be written somewhere.

      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.1        karaf   yes          default                 error - org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [
      
      JBossFuse:karaf@root> container-info ssh1 
      Name:                          ssh1
      Version:                       1.1
      Connected:                     true
      Type:                          karaf
      Root:                          true
      Ensemble Server:               false
      Managed:                       true
      Process ID:                    18342
      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 - org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=fabric-git; type=karaf.feature; filter:="(&(osgi.identity=fabric-git)(type=karaf.feature))"
      Provision Error:               org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=fabric-git; type=karaf.feature; filter:="(&(osgi.identity=fabric-git)(type=karaf.feature))"
      	at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
      	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:236)
      	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:159)
      	at io.fabric8.agent.region.SubsystemResolver.resolve(SubsystemResolver.java:190)
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:257)
      	at io.fabric8.agent.service.Agent.provision(Agent.java:355)
      	at io.fabric8.agent.service.Agent.provision(Agent.java:194)
      	at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:643)
      	at io.fabric8.agent.DeploymentAgent$2.run(DeploymentAgent.java:257)
      	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)
      

      Important note is that after restarting the ssh container, the provision status is success and it has correct version of bundles.

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

              Created:
              Updated:
              Resolved: