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

profile-refresh with repository specified by file:/// fails to refresh features.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.3
    • jboss-fuse-6.1
    • Karaf
    • None
    • % %
    • Hide

      Test 1: Base Case

      1.  Create 2.0.0 features xml with feature name: my-helloworld, install the features file to my local mvn repo (/opt/rh/repos/local)
      2.  fabric:create --wait-for-provisioning 
      3.  container-create-child root child01
      4.  fabric:patch-apply --username admin --password admin --version 1.0 file:///opt/rh/redhat/fuse/jboss-fuse-6.1.1.redhat-473-hf33.zip
      5.  profile-create myprofile
      6.  profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=file:///opt/rh/repos/local myprofile 
      7.  container-add-profile child01 myprofile 
      9.  profile-edit --repositories mvn:com.redhat.support.examples/my/2.0.0/xml/features myprofile 
      9.  profile-edit --features my-common myprofile
      10.  profile-edit --features my-helloworld myprofile
      Success!
      

      Test 2: Make a mistake with feature name, and then correct it

      1.  Create 2.0.0 features xml with feature name: my-helloworld, install the features file to my local mvn repo (/opt/rh/repos/local)
      2.  fabric:create --wait-for-provisioning 
      3.  container-create-child root child01
      4.  fabric:patch-apply --username admin --password admin --version 1.0 file:///opt/rh/redhat/fuse/jboss-fuse-6.1.1.redhat-473-hf33.zip
      5.  profile-create myprofile
      6.  profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=file:///opt/rh/repos/local myprofile 
      7.  container-add-profile child01 myprofile 
      9.  profile-edit --repositories mvn:com.redhat.support.examples/my/2.0.0/xml/features myprofile 
      9.  profile-edit --features my-common myprofile
      10.  profile-edit --features my-helloworld-noexist myprofile
      --note the error because my-helloworld-noexist did not exist in the features file--
      11.  edit features file in mvn repo, change feature name to my-helloworld-noexist
      12.  profile-refresh myprofile 
      Failure!
      

      Test 3: Make a mistake with feature name, and then correct it, default local repo

      1.  Create 2.0.0 features xml with feature name: my-helloworld, install the features file to default local mvn repo (~/.m2/repository)
      2.  fabric:create --wait-for-provisioning 
      3.  container-create-child root child01
      4.  fabric:patch-apply --username admin --password admin --version 1.0 file:///opt/rh/redhat/fuse/jboss-fuse-6.1.1.redhat-473-hf33.zip
      5.  profile-create myprofile
      7.  container-add-profile child01 myprofile 
      9.  profile-edit --repositories mvn:com.redhat.support.examples/my/2.0.0/xml/features myprofile 
      9.  profile-edit --features my-common myprofile
      10.  profile-edit --features my-helloworld-noexist myprofile
      --note the error because my-helloworld-noexist did not exist in the features file--
      11.  edit features file in mvn repo, change feature name to my-helloworld-noexist
      12.  profile-refresh myprofile
      Success! 
      
      Show
      Test 1: Base Case 1. Create 2.0.0 features xml with feature name: my-helloworld, install the features file to my local mvn repo (/opt/rh/repos/local) 2. fabric:create --wait- for -provisioning 3. container-create-child root child01 4. fabric:patch-apply --username admin --password admin --version 1.0 file: ///opt/rh/redhat/fuse/jboss-fuse-6.1.1.redhat-473-hf33.zip 5. profile-create myprofile 6. profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=file: ///opt/rh/repos/local myprofile 7. container-add-profile child01 myprofile 9. profile-edit --repositories mvn:com.redhat.support.examples/my/2.0.0/xml/features myprofile 9. profile-edit --features my-common myprofile 10. profile-edit --features my-helloworld myprofile Success! Test 2: Make a mistake with feature name, and then correct it 1. Create 2.0.0 features xml with feature name: my-helloworld, install the features file to my local mvn repo (/opt/rh/repos/local) 2. fabric:create --wait- for -provisioning 3. container-create-child root child01 4. fabric:patch-apply --username admin --password admin --version 1.0 file: ///opt/rh/redhat/fuse/jboss-fuse-6.1.1.redhat-473-hf33.zip 5. profile-create myprofile 6. profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=file: ///opt/rh/repos/local myprofile 7. container-add-profile child01 myprofile 9. profile-edit --repositories mvn:com.redhat.support.examples/my/2.0.0/xml/features myprofile 9. profile-edit --features my-common myprofile 10. profile-edit --features my-helloworld-noexist myprofile --note the error because my-helloworld-noexist did not exist in the features file-- 11. edit features file in mvn repo, change feature name to my-helloworld-noexist 12. profile-refresh myprofile Failure! Test 3: Make a mistake with feature name, and then correct it, default local repo 1. Create 2.0.0 features xml with feature name: my-helloworld, install the features file to default local mvn repo (~/.m2/repository) 2. fabric:create --wait- for -provisioning 3. container-create-child root child01 4. fabric:patch-apply --username admin --password admin --version 1.0 file: ///opt/rh/redhat/fuse/jboss-fuse-6.1.1.redhat-473-hf33.zip 5. profile-create myprofile 7. container-add-profile child01 myprofile 9. profile-edit --repositories mvn:com.redhat.support.examples/my/2.0.0/xml/features myprofile 9. profile-edit --features my-common myprofile 10. profile-edit --features my-helloworld-noexist myprofile --note the error because my-helloworld-noexist did not exist in the features file-- 11. edit features file in mvn repo, change feature name to my-helloworld-noexist 12. profile-refresh myprofile Success!

    Description

      Encountered a problem running profile-refresh after it applying update for ENTESB-5461. If the features file is specified in a non-default file:/// repo.

      Attachments

        Issue Links

          Activity

            People

              pantinor@redhat.com Paolo Antinori
              rhn-support-shiggs Stephen Higgs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: