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

[patching] Can't patch ssh container to 630039 - conflict in config.properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.3
    • jboss-fuse-6.3
    • Patching
    • None
    • % %
    • Hide
      1. create "custom" 6.2 - with new patch mechanism
      wget jboss-fuse-full-6.2.0.redhat-133.zip
      unzip -o jboss-fuse-full-6.2.0.redhat-133.zip
      zip -r jboss-fuse-full-6.2.0.redhat-133-custom.zip jboss-fuse-6.2.0.redhat-133/
      2. use this custom zip to create a new root with fabric
      3. add the new patching mechanism to root:
      fabric:version-create 1.0.1
      fabric:profile-edit --repository mvn:io.fabric8.patch/patch-features/1.2.0.redhat-630039/xml/features default 1.0.1
      fabric:profile-edit --feature patch --feature patch-core default 1.0.1
      fabric:container-upgrade 1.0.1 root
      4. create a SSH container
      container-create-ssh --user fuse --password fuse --host jawa50.tpb.lab.eng.brq.redhat.com first-ssh-container
      5. create a child of root (not necessary for the issue)
      container-create-child root first-child-container
      6. copy the fabric8-karaf zip from ssh to root (with suffix -custom) - the folder /home/fuse/patch-mechanism-test is shared between the two
      ssh: cp -f /home/fuse/containers/first-ssh-container/fabric8-karaf-1.2.0.redhat-133.zip /home/fuse/patch-mechanism-test
      root: mv /home/fuse/patch-mechanism-test/fabric8-karaf-1.2.0.redhat-133.zip /home/fuse/fafram/jboss-fuse-6.2.0.redhat-133/system/io/fabric8/fabric8-karaf/1.2.0.redhat-133/fabric8-karaf-1.2.0.redhat-133-custom.zip
      7. add patch
      patch:add http://fusewin.tpb.lab.eng.brq.redhat.com:8081/nexus/content/repositories/ea/org/jboss/fuse/jboss-fuse-full/6.3.0.redhat-039/jboss-fuse-full-6.3.0.redhat-039.zip
      8. create a new patched version and upgrade root
      version-create 1.1
      patch:fabric-install --upload --username fafram --password fafram --version 1.1 jboss-fuse-full-6.3.0.redhat-015
      container-upgrade 1.1 root
      9. root requires restart, so it is restarted
      10. patch:fabric-synchronize
      11. upgrade ssh
      container-upgrade 1.1 first-ssh-container
      
      Show
      1. create "custom" 6.2 - with new patch mechanism wget jboss-fuse-full-6.2.0.redhat-133.zip unzip -o jboss-fuse-full-6.2.0.redhat-133.zip zip -r jboss-fuse-full-6.2.0.redhat-133-custom.zip jboss-fuse-6.2.0.redhat-133/ 2. use this custom zip to create a new root with fabric 3. add the new patching mechanism to root: fabric:version-create 1.0.1 fabric:profile-edit --repository mvn:io.fabric8.patch/patch-features/1.2.0.redhat-630039/xml/features default 1.0.1 fabric:profile-edit --feature patch --feature patch-core default 1.0.1 fabric:container-upgrade 1.0.1 root 4. create a SSH container container-create-ssh --user fuse --password fuse --host jawa50.tpb.lab.eng.brq.redhat.com first-ssh-container 5. create a child of root (not necessary for the issue) container-create-child root first-child-container 6. copy the fabric8-karaf zip from ssh to root (with suffix -custom) - the folder /home/fuse/patch-mechanism-test is shared between the two ssh: cp -f /home/fuse/containers/first-ssh-container/fabric8-karaf-1.2.0.redhat-133.zip /home/fuse/patch-mechanism-test root: mv /home/fuse/patch-mechanism-test/fabric8-karaf-1.2.0.redhat-133.zip /home/fuse/fafram/jboss-fuse-6.2.0.redhat-133/system/io/fabric8/fabric8-karaf/1.2.0.redhat-133/fabric8-karaf-1.2.0.redhat-133-custom.zip 7. add patch patch:add http: //fusewin.tpb.lab.eng.brq.redhat.com:8081/nexus/content/repositories/ea/org/jboss/fuse/jboss-fuse-full/6.3.0.redhat-039/jboss-fuse-full-6.3.0.redhat-039.zip 8. create a new patched version and upgrade root version-create 1.1 patch:fabric-install --upload --username fafram --password fafram --version 1.1 jboss-fuse-full-6.3.0.redhat-015 container-upgrade 1.1 root 9. root requires restart, so it is restarted 10. patch:fabric-synchronize 11. upgrade ssh container-upgrade 1.1 first-ssh-container
    • Sprint 5 - towards ER2

    Description

      After upgrading ssh container to patched version (1.1 for example), the container will require restart, but it can't be restarted using container-stop && container-start, because it says that the container has not been created using Fabric (but it was created using standard container-create-ssh)

      From the ssh container log there is a problem with etc/config properties:

      2016-03-30 13:18:57,015 | INFO  | 8.1.1-1-thread-1 | patch-management                 | 179 - io.fabric8.patch.patch-management - 1.2.0.redhat-630039 |  - etc/config.properties (BOTH_MODIFIED): Choosing change from patch
      

      If it helps, here is the diff from 6.2.0.133 and 6.3.0.039 etc/config properties:

      diff etc/config.properties ../jboss-fuse-6.3.0.redhat-039/etc/config.properties                                                                                    ⌚ 13:22:47
      74,84c74,79
      <  org.apache.karaf.jaas.boot;version="2.4.0.redhat-620133", \
      <  org.apache.karaf.jaas.boot.principal;version="2.4.0.redhat-620133", \
      <  org.apache.karaf.management.boot;version="2.4.0.redhat-620133", \
      <  org.apache.karaf.version;version="2.4.0.redhat-620133", \
      <  org.apache.karaf.diagnostic.core;version="2.4.0.redhat-620133", \
      <  ${jre-${java.specification.version}}
      < 
      < #
      < # Extra packages appended after standard packages
      < #
      < org.osgi.framework.system.packages.extra= \
      ---
      >  org.apache.karaf.jaas.boot;version="2.4.0.redhat-630039", \
      >  org.apache.karaf.jaas.boot.principal;version="2.4.0.redhat-630039", \
      >  org.apache.karaf.management.boot;version="2.4.0.redhat-630039", \
      >  org.apache.karaf.version;version="2.4.0.redhat-630039", \
      >  org.apache.karaf.diagnostic.core;version="2.4.0.redhat-630039", \
      >  ${jre-${java.specification.version}}, \
      122a118,159
      >  org.apache.xalan.extensions; version="2.7.2", \
      >  org.apache.xalan.xsltc.compiler; version="2.7.2", \
      >  org.apache.xalan.xsltc.cmdline.getopt; version="2.7.2", \
      >  org.apache.xalan.xsltc.util; version="2.7.2", \
      >  org.apache.xalan.transformer; version="2.7.2", \
      >  org.apache.xalan.xsltc.trax; version="2.7.2", \
      >  org.apache.xalan.processor; version="2.7.2", \
      >  org.apache.xalan.lib; version="2.7.2", \
      >  org.apache.xalan.trace; version="2.7.2", \
      >  org.apache.xalan.xsltc.compiler.util; version="2.7.2", \
      >  org.apache.xalan.templates; version="2.7.2", \
      >  org.apache.xalan.xsltc; version="2.7.2", \
      >  org.apache.xalan.xsltc.runtime; version="2.7.2", \
      >  org.apache.xalan; version="2.7.2", \
      >  org.apache.xalan.xslt; version="2.7.2", \
      >  org.apache.xalan.lib.sql; version="2.7.2", \
      >  org.apache.xalan.xsltc.runtime.output; version="2.7.2", \
      >  org.apache.xalan.xsltc.dom; version="2.7.2", \
      >  org.apache.xalan.client; version="2.7.2", \
      >  org.apache.xalan.xsltc.cmdline; version="2.7.2", \
      >  org.apache.xalan.serialize; version="2.7.2", \
      >  org.apache.xalan.res; version="2.7.2", \
      >  org.apache.xml.dtm.ref; version="2.7.2", \
      >  org.apache.xml.dtm; version="2.7.2", \
      >  org.apache.xml.dtm.ref.sax2dtm; version="2.7.2", \
      >  org.apache.xml.dtm.ref.dom2dtm; version="2.7.2", \
      >  org.apache.xml.res; version="2.7.2", \
      >  org.apache.xml.serializer.dom3; version="2.7.2", \
      >  org.apache.xml.serializer; version="2.7.2", \
      >  org.apache.xml.serializer.utils; version="2.7.2", \
      >  org.apache.xml.utils.res; version="2.7.2", \
      >  org.apache.xml.utils; version="2.7.2", \
      >  org.apache.xpath.functions; version="2.7.2", \
      >  org.apache.xpath.jaxp; version="2.7.2", \
      >  org.apache.xpath.patterns; version="2.7.2", \
      >  org.apache.xpath.objects; version="2.7.2", \
      >  org.apache.xpath.res; version="2.7.2", \
      >  org.apache.xpath; version="2.7.2", \
      >  org.apache.xpath.axes; version="2.7.2", \
      >  org.apache.xpath.compiler; version="2.7.2", \
      >  org.apache.xpath.operations; version="2.7.2", \
      >  org.apache.xpath.domapi; version="2.7.2", \
      124a162,166
      > #
      > # Extra packages appended after standard packages
      > #
      > org.osgi.framework.system.packages.extra= 
      > 
      149c191
      < org.osgi.framework.bootdelegation=org.apache.karaf.jaas.boot,org.apache.karaf.management.boot,sun.*,com.sun.*,javax.transaction,javax.transaction.*,javax.xml.crypto,javax.xml.crypto.*,org.apache.xerces.*,org.bouncycastle*,com.ibm.security.*
      ---
      > org.osgi.framework.bootdelegation=org.apache.karaf.jaas.boot,org.apache.karaf.management.boot,sun.*,com.sun.*,javax.transaction,javax.transaction.*,javax.xml.crypto,javax.xml.crypto.*,org.apache.xerces.*,org.bouncycastle*,com.ibm.security.*,org.apache.xalan.processor
      220c262,264
      < org.apache.aries.blueprint.synchronous=true#
      ---
      > org.apache.aries.blueprint.synchronous=true
      > 
      > #
      246,247c290
      <  osgi.service;effective:=active;objectClass=org.osgi.service.url.URLHandlers, \
      <  ${services-${karaf.framework}}
      ---
      >  osgi.service;effective:=active;objectClass=org.osgi.service.url.URLHandlers
      268c311,312
      < #  Copyright 2005-2014 Red Hat, Inc.
      ---
      > #
      > #  Copyright 2005-2015 Red Hat, Inc.
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              avano@redhat.com Andrej Vano
              Tomas Plevko Tomas Plevko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: