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

SSH container is not using repositories specified in custom settings.xml

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1
    • Fix Version/s: None
    • Component/s: Fabric8 v1
    • Labels:
    • Environment:

      RC3

    • Steps to Reproduce:
      Hide

      1. fabric:create
      2.

      profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.settings='/home/fuse/http-proxy-settings.xml' default
      profile-edit --delete --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories default
      

      3. create profiles with different artifacts located in specified repository
      4. add one profile to root -> artifact is resolved
      5. container-create-ssh --host 172.16.116.21 --user fuse --password fuse --resolver localip node1
      6. add another profile to node1 -> timeouting requests to fabric-maven-proxy

      Should pick up repositories and proxy settings from settings.xml which is located on same path as on root. (Or fabric-maven-proxy should be able to request repositories enabled on root)

      Show
      1. fabric:create 2. profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.settings= '/home/fuse/http-proxy-settings.xml' default profile-edit --delete --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories default 3. create profiles with different artifacts located in specified repository 4. add one profile to root -> artifact is resolved 5. container-create-ssh --host 172.16.116.21 --user fuse --password fuse --resolver localip node1 6. add another profile to node1 -> timeouting requests to fabric-maven-proxy Should pick up repositories and proxy settings from settings.xml which is located on same path as on root. (Or fabric-maven-proxy should be able to request repositories enabled on root)

      Description

      SSH container created from root with specified custom settings.xml for maven proxy and repositories is requesting only fabric-maven-proxy. Not repositories specified in settings.xml.

      2015-12-04 09:04:31,165 | ERROR | 2.0.1-1-thread-1 | DeploymentAgent                  | 72 - io.fabric8.fabric-agent - 1.2.0.redhat-621084 | Unable to update agent
      io.fabric8.common.util.MultiException: Error
      	at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:93)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:71)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.region.Subsystem.downloadBundles(Subsystem.java:329)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.region.SubsystemResolver.resolve(SubsystemResolver.java:182)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:273)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:366)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:199)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:727)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:283)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_75]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_75]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_75]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_75]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_75]
      Caused by: java.io.IOException: Error downloading mvn:org.jboss.fuse.qa.test/useless-artifact/1.1
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:49)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_75]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_75]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_75]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_75]
      	... 3 more
      Caused by: java.io.IOException: Error resolving artifact org.jboss.fuse.qa.test:useless-artifact:jar:1.1: Could not find artifact org.jboss.fuse.qa.test:useless-artifact:jar:1.1 in repo_-1999099084 (http://ecervena-node-clean:8181/maven/download/)
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:531)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:472)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:457)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.download(AetherBasedResolver.java:433)[15:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:33)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:40)[72:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	... 7 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  grgrzybek Grzegorz Grzybek
                  Reporter:
                  emil.cervenan Emil Cervenan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: