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

OSGi configurations to the feature does not work in fabric mode if config name contains "-" character.

    XMLWordPrintable

Details

    • % %
    • Hide

      – fabric:create --wait-for-provisioning
      – profile-create test
      – profile-edit --repository file:///sample/attached/features.xml test
      – profile-edit --feature sample-bundle test
      – container-add-profile root test
      – config:proplist --pid org.sample **Press TAB**
      Only two PID are available, "org.sample-test" is missing

      Show
      – fabric:create --wait-for-provisioning – profile-create test – profile-edit --repository file:///sample/attached/features.xml test – profile-edit --feature sample-bundle test – container-add-profile root test – config:proplist --pid org.sample ** Press TAB ** Only two PID are available, "org.sample-test" is missing
    • 6.3 Sprint 2 (1-Feb - 26-Feb)

    Description

      Adding OSGi configurations to the feature does not work in fabric mode if config name contains "-" character.
      Same configuration works perfectly on standalone mode.

      Sample features.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <features name="MyFeaturesRepo">
        <feature name="sample-config">
          <config name="org.sample.test">
            a=test1	
          </config>
          <config name="org.sample-test">
            b=test2
          </config>
          <config name="org.sample_test">
            c=test3
          </config>
        </feature>
      </features>
      

      Output on Standalone mode:- All three PID are available.

      JBossFuse:karaf@root> config:proplist --pid org.sample
      org.sample.15a43494-eff3-4292-b95e-b16d98ecc3f7   org.sample.test                                   org.sample_test  
      

      Output on fabric mode:- Only two PID are available.

      JBossFuse:karaf@root> config:proplist --pid org.sample
      org.sample.test   org.sample_test  
      

      However if I add config "org.sample-test" using PID like below on a fabric-profile it works.

      JBossFuse:karaf@root> profile-edit --pid org.sample-test/a=b test
      

      In order to start up multiple instances of a service via the factory it is require to add "-UNIQUE_NAME" as the suffix for any configuration PIDs.

      Attachments

        Activity

          People

            pantinor@redhat.com Paolo Antinori
            rhn-support-shsingh Shailendra Singh
            Roman Jakubco Roman Jakubco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: