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

[Fabric] some default pids in etc/ folder are not correctly deleted/overwritten at container creation time, according to profile definition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • jboss-fuse-6.2.1
    • Fabric8 v1, Karaf
    • None
    • % %
    • Hide

      Affected configurations may be manually edited or copied from parent / ensemble containers, as appropriate. This would need to be performed for each new container created.

      Show
      Affected configurations may be manually edited or copied from parent / ensemble containers, as appropriate. This would need to be performed for each new container created.
    • Hide

      1) Deploy fuse archive.
      2) Remove all references to external repos from etc/org.ops4j.pax.url.mvn.cfg, etc/io.fabric8.maven.cfg, fabric/import/fabric/profiles/default.profile/io.fabric.agent.properties (sample configs attached)
      3) Create a fabric
      4) Run config:list | grep http and verify that no external maven repos are returned
      5) Create a child container with container-create-child
      6) Connect to the child console
      7) Run config:list | grep http and you see that http://repo1.maven.org and other external repos are returned.
      8) Delete the references to the external repos in <child container home>/etc/org.ops4j.pax.url.mvn.cfg
      9) Reconnect to the child console and re-run the config:list and you see that the references to the remote repositories are now gone.

      Show
      1) Deploy fuse archive. 2) Remove all references to external repos from etc/org.ops4j.pax.url.mvn.cfg, etc/io.fabric8.maven.cfg, fabric/import/fabric/profiles/default.profile/io.fabric.agent.properties (sample configs attached) 3) Create a fabric 4) Run config:list | grep http and verify that no external maven repos are returned 5) Create a child container with container-create-child 6) Connect to the child console 7) Run config:list | grep http and you see that http://repo1.maven.org and other external repos are returned. 8) Delete the references to the external repos in <child container home>/etc/org.ops4j.pax.url.mvn.cfg 9) Reconnect to the child console and re-run the config:list and you see that the references to the remote repositories are now gone.

      When a new child container is created from an existing ensemble, the configuration files in the <child container home>/etc directory get the default values, rather than the values set for the parent container.

      Example: If all external remote repositories are removed from the configurations in a new ensemble (removed from etc/org.ops4j.pax.url.mvn.cfg, etc/io.fabric8.maven.cfg, fabric/import/fabric/profiles/default.profile/io.fabric.agent.properties) and verified removed via config:list, but then a new child container is created via container-create-child, the child gets the default etc/org.ops4j.pax.url.mvn.cfg and the default external repositories show up running config:list on the child, even though they are not listed in any profile. config:list in the parent container still shows only configured remote repos (no external repos).

              ggrzybek Grzegorz Grzybek
              rhn-support-dhawkins Duane Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: