0 Replies Latest reply on Jun 14, 2018 2:01 AM by Brian Wallis

    cli in batch --all-server-groups references removed server groups

    Brian Wallis Master

      If I run the following I get an error.

       

       

      [disconnected /] embed-host-controller
      [domain@embedded /] batch
      [domain@embedded / #] /host=master/server-config=server-three:stop
      [domain@embedded / #] /host=master/server-config=server-three:remove
      [domain@embedded / #] /server-group=other-server-group:remove
      [domain@embedded / #] deploy mariadb-java-client-2.2.5.jar --name=mariadb  --all-server-groups
      [domain@embedded / #] run-batch
      The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error): {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-4" => {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "WFLYCTL0175: Resource [(\"server-group\" => \"other-server-group\")] does not exist; a resource at address [
          (\"server-group\" => \"other-server-group\"),
          (\"deployment\" => \"mariadb\")
      ] cannot be created until all ancestor resources have been added"}}}}}}
      

       

      The server-group that is causing the error has been removed within the batch and so shouldn't be referenced.

       

      If I add server-groups in the batch and reference them explicitly they work OK.

       

      This is with Wildfly-11.0.0.Final

       

      thanks