Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-401

One profile can have more ancestors with same submodules

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.DR7
    • 7.0.0.DR5
    • Management
    • None

    Description

      Description of problem:
      One profile can have more ancestors with same submodules. It leads to WFLYCTL0212: Duplicate resource [("subsystem" => "subsystem_name")] . Hierarchical composition of profiles was added to AS with EAP7-281 and WFCORE-382

      How reproducible:
      Always

      Steps to Reproduce:

      1. get fresh EAP
      2. ./domain.sh
      3. ./jboss-cli.sh -c
      4. /profile=mail-01:add
      5. /profile=mail-02:add
      6. /profile=mail-01/subsystem=mail:add
      7. /profile=mail-02/subsystem=mail:add
      8. /profile=default-new:add
      9. /profile=default-new:list-add(name=includes, value=mail-01)
      10. /profile=default-new:list-add(name=includes, value=mail-02)

      Actual results:
      No errors.

      Expected results:

      {
          "outcome" => "failed",
          "failure-description" => {"domain-failure-description" => "WFLYCTL0401: Profile 'mail-01' defines subsystem 'mail' which is also defined in its ancestor profile 'mail-02'. Overriding subsystems is not supported"},
          "rolled-back" => true
      }
      

      Workaround:
      Add any subsystem to default-new profile:

      1. /profile=mail-01:add
      2. /profile=mail-02:add
      3. /profile=mail-01/subsystem=mail:add
      4. /profile=mail-02/subsystem=mail:add
      5. /profile=default-new:add
      6. /profile=default-new/subsystem=jdr:add
      7. /profile=default-new:list-add(name=includes, value=mail-01)
      8. /profile=default-new:list-add(name=includes, value=mail-02)

      Attachments

        Issue Links

          Activity

            People

              kkhan1@redhat.com Kabir Khan
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: