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

[Patch mechanism] Problems with creating child containers with GA root and created patch version

    XMLWordPrintable

Details

    • % %
    • 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)
      3. container-create-child --version 1.0 root testcontainer
      4. container-create-child --version 1.1 root testcontainer2
      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) container-create-child --version 1.0 root testcontainer container-create-child --version 1.1 root testcontainer2

    Description

      Unable to create child container on 133-GA version when fabric is created on 133-GA build and new patch mechanism is already applied with 6.2.1-069 patch added to version 1.1.

      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                                                                                
        test1  1.0        karaf   yes          default                 error - io.fabric8.common.util.MultiException: Error restarting bundles
      JBossFuse:karaf@root> container-info test1 
      Name:                          test1
      Version:                       1.0
      Connected:                     true
      Type:                          karaf
      Root:                          false
      Ensemble Server:               false
      Managed:                       true
      Process ID:                    29716
      Resolver:                      localhostname
      Network Address:               10.40.2.162
      Local Network Address:         10.40.2.162
      Public Network Address:        
      Local Hostname:                10.40.2.162
      Public Hostname:               
      SSH Url:                       10.40.2.162:8102
      JMX Url:                       service:jmx:rmi://10.40.2.162:44445/jndi/rmi://10.40.2.162:1100/karaf-test1
      Http Url:                      http://10.40.2.162:8182
      Jolokia Url:                   http://10.40.2.162:8182/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 [103].
      	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-child-2.4.0.redhat-620133 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
      

      The same error occurs when you try to create child container with already patched version ( container-create-child --version 1.1 root testcontainer2)

      I would like to note that if you stop and start both containers then they are provisioned with success.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: