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

Deployment disable-all doesn't correct function at domain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.0.0.Alpha3
    • None
    • CLI
    • None
    • 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) 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) Call commands in description

      Domain

      [domain@localhost:9990 /] deployment disable-all --all-relevant-server-groups
      org.jboss.as.cli.operation.OperationFormatException: None of the server groups is specified or references specified deployment.
      [domain@localhost:9990 /]
      
      [domain@localhost:9990 /] undeploy * --keep-content --all-relevant-server-groups
      org.jboss.as.cli.operation.OperationFormatException: None of the server groups is specified or references specified deployment.
      [domain@localhost:9990 /]
      
      [domain@localhost:9990 /] deployment disable-all --server-groups=main-server-group
      {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-4" => "WFLYCTL0216: Management resource '[
          (\"server-group\" => \"main-server-group\"),
          (\"deployment\" => \"cli-test-app2-deploy-all.war\")
      ]' not found"}}
      [domain@localhost:9990 /]
      
      [domain@localhost:9990 /] undeploy * --keep-content --server-groups=main-server-group
      {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-4" => "WFLYCTL0216: Management resource '[
          (\"server-group\" => \"main-server-group\"),
          (\"deployment\" => \"cli-test-app2-deploy-all.war\")
      ]' not found"}}
      [domain@localhost:9990 /]
      

        1. app01.war
          2.64 MB
        2. app02.war
          2.64 MB
        3. app03.war
          2.64 MB

              mstefank Martin Stefanko
              vmarek@redhat.com Vratislav Marek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: