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

Karaf command 'profile-change-parents' doesn't change, but appends a parent to the specified profile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.2
    • jboss-fuse-6.2
    • Karaf
    • None
    • % %
    • Hide
      1. Start fuse and create fabric, and wait for provision
      2. Create profile with parent mq-replicated:
        mq-create --no-ssl --parent-profile=mq-replicated --group a broker-nossl-e
        
      3. JBossFuse:karaf@root> profile-display mq-broker-a.broker-nossl-e
        Profile id: mq-broker-a.broker-nossl-e
        Version   : 1.0
        Attributes: 
        	parents: mq-replicated
        
      4. Execute command profile-change-parents for this profile:
         profile-change-parents mq-broker-a.broker-nossl-e  hawtio
        
      5. Check result - mq-replicated is still a parent of the profile:
        JBossFuse:karaf@root> profile-display mq-broker-a.broker-nossl-e
        Profile id: mq-broker-a.broker-nossl-e
        Version   : 1.0
        Attributes: 
        	parents: mq-replicated hawtio
        

        The same happens if adding another profiles, like feature-cxf.

      Show
      Start fuse and create fabric, and wait for provision Create profile with parent mq-replicated: mq-create --no-ssl --parent-profile=mq-replicated --group a broker-nossl-e JBossFuse:karaf@root> profile-display mq-broker-a.broker-nossl-e Profile id: mq-broker-a.broker-nossl-e Version : 1.0 Attributes: parents: mq-replicated Execute command profile-change-parents for this profile: profile-change-parents mq-broker-a.broker-nossl-e hawtio Check result - mq-replicated is still a parent of the profile: JBossFuse:karaf@root> profile-display mq-broker-a.broker-nossl-e Profile id: mq-broker-a.broker-nossl-e Version : 1.0 Attributes: parents: mq-replicated hawtio The same happens if adding another profiles, like feature-cxf.

    Description

      In the description of the fabric:profile-change-parents is specified that it replaces the profile's parents with the specified list of parents:

      JBossFuse:karaf@root> profile-change-parents --help
      DESCRIPTION
              fabric:profile-change-parents
      
      	Replace the profile's parents with the specified list of parents
      
      SYNTAX
              fabric:profile-change-parents [options] profile parents 
      
      ARGUMENTS
              profile
                      Name of the profile.
              parents
                      The list of new parent profiles.
      
      OPTIONS
              --version
                      The profile version. Defaults to the current default version.
              --help
                      Display this help message
      

      But I've noticed that after calling this command old parents are not removed.

      Attachments

        Activity

          People

            yfang@redhat.com Freeman(Yue) Fang
            emedvede Elena Medvedeva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: