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

Unmanaged deployment cannot be deployed using yaml without calling deploy in CLI

XMLWordPrintable

    • Hide

      Create test.yaml:

      wildfly-configuration:
          deployment:
              helloworld.war:
                  content:
                      - 
                          path: /home/mnovak/projects/quickstart/helloworld/target/helloworld.war
                          enabled: true
                          archive: true
      

      and try to deploy helloworld.war built from WF quickstarts like:

      sh standalone.sh -y=test.yaml
      

      In CLI check whether deployment is enabled by:

      [standalone@localhost:9990 /] /deployment=helloworld.war:read-resource
      {
          "outcome" => "success",
          "result" => {
              "content" => [{
                  "path" => "/home/mnovak/projects/quickstart/helloworld/target/helloworld.war",
                  "archive" => "true"
              }],
              "enabled" => false,
      ...
      

      There must be:

              "enabled" => true,
      
      Show
      Create test.yaml: wildfly-configuration:     deployment:         helloworld.war:             content:                 -                      path: /home/mnovak/projects/quickstart/helloworld/target/helloworld.war                     enabled: true                     archive: true and try to deploy helloworld.war built from WF quickstarts like: sh standalone.sh -y=test.yaml In CLI check whether deployment is enabled by: [standalone@localhost:9990 /] /deployment=helloworld.war:read-resource { "outcome" => "success" , "result" => { "content" => [{ "path" => "/home/mnovak/projects/quickstart/helloworld/target/helloworld.war" , "archive" => " true " }], "enabled" => false , ... There must be: "enabled" => true ,

      Note this happens only on WFCORE branch for RFE EAP7-1877 (https://github.com/ehsavoie/wildfly-core/tree/WFCORE-6503) with developed yaml support feature for unmanaged deployment.

      In case that unmanaged deployment is "deployed" using yaml file like: 

      wildfly-configuration:
          deployment:
              helloworld.war:
                  content:
                      - 
                          path: /home/mnovak/projects/quickstart/helloworld/target/helloworld.war
                          enabled: true
                          archive: true
       

      then deployment should be enabled automatically without need to call deploy:

      [standalone@localhost:9990 /] /deployment=helloworld.war:deploy()
      

      However it's still needed which is an issue.

            ehugonne1@redhat.com Emmanuel Hugonnet
            mnovak1@redhat.com Miroslav Novak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: