Uploaded image for project: 'Fabric8'
  1. Fabric8
  2. FABRIC-12

Cannot create a repository.karaf containing a list of urls

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Scenario to follow to reproduce the error :

      features:addurl mvn:org.fusesource.fabric/fabric-distro/1.0-SNAPSHOT/xml/features
      features:install fabric-commands
      fabric:zk-cluster root
      features:install fabric-dosgi
      features:install fabric-camel
      features:addurl mvn:org.apache.camel.karaf/apache-camel/2.7.0/xml/features
      features:install camel
      fabric:create-profile --parents default webserver
       
      zk:create -r /fabric/configs/versions/base/profiles/webserver/org.fusesource.fabric.agent/repository.karaf mvn:org.apache.karaf.assemblies.features/standard/2.2.1-SNAPSHOT/xml/features,mvn:com.fusesource.fabric/features/1.0.0/xml/features
       
      zk:create -r  /fabric/configs/versions/base/profiles/webserver/org.fusesource.fabric.agent/feature.fusesource-fabric fusesource-fabric
      zk:list /fabric/configs/versions/base/profiles/webserver/org.fusesource.fabric.agent
      fabric:create-agent --profile webserver --parent root test
      fabric:connect test

      The following error is reported from the karaf instance

       
      18:36:51,046 | ERROR | pool-7-thread-1  | DeploymentAgent                  | e.fabric.agent.DeploymentAgent$1  147 | 44 - org.fusesource.fabric.fabric-agent - 1.0.0.SNAPSHOT | Unable to update agent
      java.lang.RuntimeException: URL [mvn:org.apache.karaf.assemblies.features/standard/2.2.1-SNAPSHOT/xml/features,mvn:com.fusesource.fabric/features/1.0.0/xml/features] could not be resolved.
      	at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)[2:org.ops4j.pax.url.mvn:1.2.6]
      	at org.ops4j.pax.url.mvn.internal.AetherBridgeConnection.getInputStream(AetherBridgeConnection.java:68)[2:org.ops4j.pax.url.mvn:1.2.6]
      	at org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:49)[44:org.fusesource.fabric.fabric-agent:1.0.0.SNAPSHOT]
      	at org.fusesource.fabric.agent.DeploymentAgent.addRepository(DeploymentAgent.java:215)[44:org.fusesource.fabric.fabric-agent:1.0.0.SNAPSHOT]
      	at org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:174)[44:org.fusesource.fabric.fabric-agent:1.0.0.SNAPSHOT]
      	at org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:145)[44:org.fusesource.fabric.fabric-agent:1.0.0.SNAPSHOT]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_24]
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_24]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_24]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_24]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_24]
      	at java.lang.Thread.run(Thread.java:680)[:1.6.0_24]
       

        Gliffy Diagrams

          Activity

          Hide
          gnodet Guillaume Nodet added a comment -

          Please run "osgi:info fabric-agent" to have some information about the agent configuration.

          Show
          gnodet Guillaume Nodet added a comment - Please run "osgi:info fabric-agent" to have some information about the agent configuration.
          Hide
          gnodet Guillaume Nodet added a comment -

          It's working as designed. A single key should be used for each repository:

          repository.karaf = mvn:xxx
          repository.fabric = mvn:xxx

          We may provide some commands to more easily edit profiles in the future and those would definitely check the validity of the arguments.

          Show
          gnodet Guillaume Nodet added a comment - It's working as designed. A single key should be used for each repository: repository.karaf = mvn:xxx repository.fabric = mvn:xxx We may provide some commands to more easily edit profiles in the future and those would definitely check the validity of the arguments.

            People

            • Assignee:
              Unassigned
              Reporter:
              cmoulliard Charles Moulliard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development