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

Could not enable application deployment on two server groups in domain

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0.0.Beta2
    • Component/s: CLI
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Running test scenario DeployAllDomainTestCase
      on branch EAP7-740
      Step 1) Prepared three packages

      /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app1-deploy-all.war
      /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-another-deploy-all.war
      /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app2-deploy-all.war
      /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app-deploy-all.ear
      

      Step 2) Deploy packages

      deployment deploy-file --server-groups=main-server-group /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app1-deploy-all.war
      deployment deploy-file --server-groups=main-server-group /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-another-deploy-all.war
      deployment deploy-file --server-groups=other-server-group /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app2-deploy-all.war
      deployment deploy-file --server-groups=other-server-group,main-server-group /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app-deploy-all.ear
      

      Step 3) Disable some applications deployments

      deployment disable --server-groups=main-server-group cli-test-app1-deploy-all.war
      deployment disable --server-groups=other-server-group cli-test-app2-deploy-all.war
      

      Step 4) Disable all applications deployments

      deployment disable --server-groups=main-server-group cli-test-app1-deploy-all.war
      deployment disable --server-groups=main-server-group cli-test-another-deploy-all.war
      deployment disable --server-groups=other-server-group cli-test-app2-deploy-all.war
      deployment disable --server-groups=other-server-group,main-server-group cli-test-app-deploy-all.ear
      

      Step 5) Call commands in description

      Show
      Running test scenario DeployAllDomainTestCase on branch EAP7-740 Step 1) Prepared three packages /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app1-deploy-all.war /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-another-deploy-all.war /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app2-deploy-all.war /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app-deploy-all.ear Step 2) Deploy packages deployment deploy-file --server-groups=main-server-group /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app1-deploy-all.war deployment deploy-file --server-groups=main-server-group /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-another-deploy-all.war deployment deploy-file --server-groups=other-server-group /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app2-deploy-all.war deployment deploy-file --server-groups=other-server-group,main-server-group /media/Data/Repos/Remote/Public/wildfly-core/testsuite/domain/target/cli-test-app-deploy-all.ear Step 3) Disable some applications deployments deployment disable --server-groups=main-server-group cli-test-app1-deploy-all.war deployment disable --server-groups=other-server-group cli-test-app2-deploy-all.war Step 4) Disable all applications deployments deployment disable --server-groups=main-server-group cli-test-app1-deploy-all.war deployment disable --server-groups=main-server-group cli-test-another-deploy-all.war deployment disable --server-groups=other-server-group cli-test-app2-deploy-all.war deployment disable --server-groups=other-server-group,main-server-group cli-test-app-deploy-all.ear Step 5) Call commands in description

      Description

      [domain@localhost:9990 /] deployment enable --server-groups=other-server-group,main-server-group cli-test-app-deploy-all.ear
      {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYCTL0212: Duplicate resource [
          (\"server-group\" => \"other-server-group\"),
          (\"deployment\" => \"cli-test-app-deploy-all.ear\")
      ]"}}
      [domain@localhost:9990 /] 
      
      [domain@localhost:9990 /] deploy --name=cli-test-app-deploy-all.ear --server-groups=other-server-group,main-server-group
      {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYCTL0212: Duplicate resource [
          (\"server-group\" => \"other-server-group\"),
          (\"deployment\" => \"cli-test-app-deploy-all.ear\")
      ]"}}
      [domain@localhost:9990 /]
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mstefank Martin Stefanko
                  Reporter:
                  vmarek Vratislav Marek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: