Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3535

Is possible to create a container with a version not built

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 7.8.0.GA
    • Business Central
    • Red Hat Process Automation Manager 7.8+

    • False
    • False
    • Documentation (Ref Guide, User Guide, etc.), Release Notes
    • Hide
      User can create the container with "PUT /controller/management/servers/{serverTemplateId}/containers/{containerId}" with a KJAR not built.
      The KJAR is not verified during the deployment phase with API, which is expected behavior.
      Workaround: none
      Show
      User can create the container with "PUT /controller/management/servers/{serverTemplateId}/containers/{containerId}" with a KJAR not built. The KJAR is not verified during the deployment phase with API, which is expected behavior. Workaround: none
    • Hide
      1. Create a simple project
      2. Build and Install this project with version 1.0.0-SNAPSHOT
      3. use the API with this payload
        1.  {{

          { "container-id":"TestDeployAPI", "container-name":"TestDeployAPI", "server-template-key":null, "release-id":\{ "group-id":"com.myspace", "artifact-id":"TestDeployAPI", "version":"1.1.0-SNAPSHOT" }

          ,
          "configuration":{
          "RULE":

          Unknown macro: { "org.kie.server.controller.api.model.spec.RuleConfig"}

          ,
          "PROCESS":{
          "org.kie.server.controller.api.model.spec.ProcessConfig":

          { "runtimeStrategy":"PER_PROCESS_INSTANCE", "kbase":"", "ksession":"", "mergeMode":"MERGE_COLLECTIONS" }

          }
          },
          "status":"STARTED"
          }}}

      4. I will create the container with the version 1.1.0-SNAPSHOT
      5. The HTTP request will return no error, but the server log return the error below
        1. 7:25:22,295 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'TestDeploywAPI' for module 'com.myspace:TestDeploywAPI:1.1.0-SNAPSHOT': java.lang.RuntimeException: Cannot find KieModule: com.myspace:TestDeploywAPI:1.1.0-SNAPSHOT
      Show
      Create a simple project Build and Install this project with version 1.0.0-SNAPSHOT use the API with this payload  {{ { "container-id":"TestDeployAPI", "container-name":"TestDeployAPI", "server-template-key":null, "release-id":\{ "group-id":"com.myspace", "artifact-id":"TestDeployAPI", "version":"1.1.0-SNAPSHOT" } , "configuration":{ "RULE": Unknown macro: { "org.kie.server.controller.api.model.spec.RuleConfig"} , "PROCESS":{ "org.kie.server.controller.api.model.spec.ProcessConfig": { "runtimeStrategy":"PER_PROCESS_INSTANCE", "kbase":"", "ksession":"", "mergeMode":"MERGE_COLLECTIONS" } } }, "status":"STARTED" }}} I will create the container with the version 1.1.0-SNAPSHOT The HTTP request will return no error, but the server log return the error below 7:25:22,295 ERROR [org.kie.server.services.impl.KieServerImpl] (EJB default - 1) Error creating container 'TestDeploywAPI' for module 'com.myspace:TestDeploywAPI:1.1.0-SNAPSHOT': java.lang.RuntimeException: Cannot find KieModule: com.myspace:TestDeploywAPI:1.1.0-SNAPSHOT
    • 2021 Week 34-36 (from Aug 23), 2021 Week 37-39 (from Sep 13), 2021 Week 40-42 (from Oct 4), 2021 Week 43-45 (from Oct 25), 2021 Week 46-48 (from Nov 15), 2021 Week 49-51 (from Dec 6th)

      Using the API "PUT /controller/management/servers/{serverTemplateId}/containers/{containerId}" is possible to create a container, and start it, with a version of a jar not built in this version. Eg, build a project version 1.0.0 and create the container with version 2.0.0

      I included the Jar of my tests.

              abkuma abhishek kumar
              rhn-support-roribeiro Rodrigo Ribeiro (Inactive)
              Barbora Kapustova Barbora Kapustova
              Barbora Kapustova Barbora Kapustova
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: