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

Joining container to fabric prevents using repositories specified in custom settings.xml

    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:
      None
    • Environment:

      RC3

      Description

      In situation when you have fabric configured to use maven proxy and repositories specified in custom settings.xml

      profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.settings='/home/fuse/http-proxy-settings.xml' default
      profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories='+file:${runtime.data}/maven/upload@snapshots@id=fabric-upload' default
      

      and then you will join another container

      fabric:join 172.16.116.39:2181 nodeb
      

      it will breake down working artifact resolution specified in settings.xml (maven proxy & repositories)

      2015-12-04 09:45:55,711 | ERROR | 2.0.1-1-thread-1 | DeploymentAgent                  | 142 - 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)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:71)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.region.Subsystem.downloadBundles(Subsystem.java:329)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.region.SubsystemResolver.resolve(SubsystemResolver.java:182)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:273)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:366)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:199)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:727)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:283)[142: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)[142: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_624742715 (http://ecervena-node-b:8181/maven/download/)
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:531)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:472)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:457)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.download(AetherBasedResolver.java:433)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:33)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:40)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	... 7 more
      Caused by: java.io.IOException: Error downloading mvn:org.jboss.fuse.qa.test/useless-artifact/1.0
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:49)[142: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.0: Could not find artifact org.jboss.fuse.qa.test:useless-artifact:jar:1.0 in repo_624742715 (http://ecervena-node-b:8181/maven/download/)
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:531)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:472)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:457)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.download(AetherBasedResolver.java:433)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:33)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:40)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	... 7 more
      Caused by: java.io.IOException: Error downloading mvn:org.jboss.fuse.qa.test/useless-artifact/1.2
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:49)[142: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.2: Could not find artifact org.jboss.fuse.qa.test:useless-artifact:jar:1.2 in repo_624742715 (http://ecervena-node-b:8181/maven/download/)
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:531)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:472)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:457)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.download(AetherBasedResolver.java:433)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:33)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:40)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	... 7 more
      

      Root is requesting fabric-maven-proxy instead of specified repositories in settings.xml (which was working before)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: