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

Initial artifact resolution on child container on ssh container is broken

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.3
    • Fix Version/s: fuse-6.x-GA
    • Component/s: None
    • Labels:
      None

      Description

      Initial artifact resolution after spawn of child container on ssh container doesn't work.

      1. unzip distro, add default admin role (etc/users.properties), bin/start, bin/client
      2. fabric:create
      3. create custom profile

       profile-create --parent fabric custom

      4. remove remote repositories

      profile-edit --pid io.fabric8.agent/org.ops4j.pax.url.mvn.repositories='' custom

      5. add zookeeper-commands feature

      fabric:profile-edit --feature fabric-zookeeper-commands custom

      6. create ssh container

      container-create-ssh --user fuse --host 10.8.242.74 --jvm-opts "-Djava.security.egd=file:/dev/./urandom" --password fuse --profile custom first-ssh-container

      7. so far all good. now lets create child on ssh

      container-create-child --jvm-opts "-Djava.security.egd=file:/dev/./urandom"  --jmx-user admin --jmx-password admin --profile custom first-ssh-container first-child-container

      8. you will get resolution error

      2019-05-21 09:14:15,270 | ERROR | 8.0.1-1-thread-1 | DeploymentAgent                  | 88 - io.fabric8.fabric-agent - 1.2.0.redhat-630395 | Unable to update agent
      io.fabric8.common.util.MultiException: Error
      	at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:93)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:71)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.region.Subsystem.downloadBundles(Subsystem.java:333)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.region.Subsystem.downloadBundles(Subsystem.java:330)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.region.SubsystemResolver.resolve(SubsystemResolver.java:182)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:283)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:366)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:199)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:746)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:290)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_65]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65]
      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
      Caused by: java.io.IOException: Error downloading mvn:io.fabric8/fabric-zookeeper-commands/1.2.0.redhat-630395
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:53)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_65]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_65]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_65]
      	... 3 more
      Caused by: java.io.IOException: Error resolving artifact io.fabric8:fabric-zookeeper-commands:jar:1.2.0.redhat-630395: [Could not find artifact io.fabric8:fabric-zookeeper-commands:jar:1.2.0.redhat-630395]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:644)[58:io.fabric8.fabric-maven:1.2.0.redhat-630395]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:577)[58:io.fabric8.fabric-maven:1.2.0.redhat-630395]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:526)[58:io.fabric8.fabric-maven:1.2.0.redhat-630395]
      	at io.fabric8.maven.url.internal.AetherBasedResolver.download(AetherBasedResolver.java:496)[58:io.fabric8.fabric-maven:1.2.0.redhat-630395]
      	at io.fabric8.agent.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:36)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:42)[88:io.fabric8.fabric-agent:1.2.0.redhat-630395]
      	... 7 more
      Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving artifact io.fabric8:fabric-zookeeper-commands:jar:1.2.0.redhat-630395
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
      	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
      	at io.fabric8.maven.url.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:625)[58:io.fabric8.fabric-maven:1.2.0.redhat-630395]

      Simple profile-refresh default (or custom) will fix the problem and artifact is resolved. It's not only problem of specific artifact. I'm doing this scenario in offline environment.

        Gliffy Diagrams

          Attachments

          1. fuse.log
            98 kB
          2. fuse-child.log
            95 kB
          3. fuse-root.log
            481 kB
          4. fuse-ssh.log
            718 kB

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: