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

Fabric maven proxy is not reachable by agent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1, jboss-fuse-6.3
    • Fabric8 v1
    • None
    • % %
    • Hide

      1. fabric:create
      2.

      profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories='file:${runtime.home}/${karaf.default.repository}@snapshots@id=karaf-default, file:${runtime.data}/maven/upload@snapshots@id=fabric-upload' default
      

      3.

      profile-edit --pid io.fabric8.maven/io.fabric8.maven.repositories='${profile:io.fabric8.agent/org.ops4j.pax.url.mvn.repositories}, http://fusewin.tpb.lab.eng.brq.redhat.com:8081/nexus/content/repositories/fuse-qe-repo@id=fuse-qe-repo' default
      

      4.

      profile-create testprofile
      profile-edit --bundle mvn:org.jboss.fuse.qa.test/useless-artifact/1.0 testprofile
      container-add-profile root testprofile
      

      5. provisioning will fail with multiException
      6. try to get artifact from fabric maven proxy manually

      wget <rootHost>:8181/maven/download/org/jboss/fuse/qa/test/useless-artifact/1.0/useless-artifact-1.0.jar
      

      7. You can see that FMP (Fabric Maven Proxy) can access remote repository.
      8.

      profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=http://<rootHost>:8181/maven/download@id=fmp --append default
      

      9.

      profile-refresh testprofile
      

      10. Provision will success and artifact is resolved

      Show
      1. fabric:create 2. profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories= 'file:${runtime.home}/${karaf. default .repository}@snapshots@id=karaf- default , file:${runtime.data}/maven/upload@snapshots@id=fabric-upload' default 3. profile-edit --pid io.fabric8.maven/io.fabric8.maven.repositories= '${profile:io.fabric8.agent/org.ops4j.pax.url.mvn.repositories}, http: //fusewin.tpb.lab.eng.brq.redhat.com:8081/nexus/content/repositories/fuse-qe-repo@id=fuse-qe-repo' default 4. profile-create testprofile profile-edit --bundle mvn:org.jboss.fuse.qa.test/useless-artifact/1.0 testprofile container-add-profile root testprofile 5. provisioning will fail with multiException 6. try to get artifact from fabric maven proxy manually wget <rootHost>:8181/maven/download/org/jboss/fuse/qa/test/useless-artifact/1.0/useless-artifact-1.0.jar 7. You can see that FMP (Fabric Maven Proxy) can access remote repository. 8. profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories=http: //<rootHost>:8181/maven/download@id=fmp --append default 9. profile-refresh testprofile 10. Provision will success and artifact is resolved
    • Sprint 5 - towards ER2

      Fabric maven proxy should be available to fabric agent by default. Looks like it isn't.

              pantinor@redhat.com Paolo Antinori
              ecervena@redhat.com Emil Cervenan
              Emil Cervenan Emil Cervenan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: