redhat-cop / businessautomation-cop

All examples related to business automation processes such as jbpm, drools, dmn, optaplanner, cloud native kogito(quarkus), quickstart, pipelines, runtimes, etc.
Apache License 2.0
60 stars 48 forks source link

keep serverId as default-kieserver when installing on localhost #217

Closed rafaeltuelho closed 3 years ago

rafaeltuelho commented 4 years ago

The script uses remote-kieserver as the kie-server id in standalone.xml... But when you try to deploy a Project from the BC UI it gets deployed in the default-kieserver. To get your project deployed to the remote-kieserver you have to do it manually from the BC servers UI.

erouvas commented 4 years ago

Cannot reproduce. Deployments are possible using the BC UI with no manual intervention required.

Steps to reproduce deployment:

KIE Server id can also be overriden by specifying suitable value for the org.kie.server.id parameter in the pam.config file before running the pam-setup.sh script

rafaeltuelho commented 4 years ago

@erouvas I'll check this again. I tried with PAM 7.8.0 here and the project gets deployed to default-kieserver instead of the remote-kieserver which is specified in the org.kie.server.id.

erouvas commented 4 years ago

Tried steps outlined in https://github.com/redhat-cop/businessautomation-cop/issues/217#issuecomment-689179475 with 2 and 3 KIE Server nodes, -b multi=2 and -b multi=3 respectively.

Deployment proceeds as expected with the sample project deployed to all KIE Servers with the default remote-kieserver ID provided during installation.

Using the UI for examining the deployments the URL to access the KIE Server is only shown for the first node, i.e. the node with the 8080 port. The URL for other nodes is not shown although servers still accessible through regular REST requests.

Using KIE Servers with different KIE Server IDs deployment is still possible with a twist. Using the "Deploy" button from the Business Central UI brings up a dialog that has a server configuration field that should allow for choosing the deployment server. Unfortunately the field is greyed out and server selection is not possible. Deployment is still possible and it KJAR will be deployed in the first server id available by lexicographical order, i.e. with two server id available remote-kieserver and zemote-kieserver deployment will select remote-kieserver.

erouvas commented 3 years ago

can we please close this issue? Cannot be reproduced.

ally-jarrett commented 3 years ago

Cannot be reproduced.