Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-796

One profile can have more ancestors with same submodules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.0.0.Alpha6
    • Management
    • None

      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 WildFly
      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)

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

                Created:
                Updated:
                Resolved: