Hi everybody,
we have a problem in handling more than one server configuration and were wondering if you could help us.
What we want to achieve is to have a single Business Central and two Kie-Servers, one for the Test environment and one for the Prod environment, as described in this chapter of the guide: https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.7/html/packaging_and_deploying_a_red_hat_process_automation_manager_project/project-deployment-central-con_packaging-deploying.
The idea is to deploy our processes on the Test server by selecting the Test Server Configuration in Business Central and, when they are ready, deploy them on the Prod server by selecting the Prod Server Configuration.
Our architecture is based on Kubernetes, with the Business Central and the servers deployed as PODs.
We successfully managed to set up the Test environment server by connecting it to the Business Central (where we can see the Test Server Configuration) and we can correctly devolop, build and deploy processes, but this doesn't happen with the Prod server. When the Server Configuration for the Prod server is automatically created it lacks of the BPM/Process Capability, so we are unable to deploy on that server. We tried to create the Server Configuration before making the connection in order to include the Process Capability, but in that case it doesn't work anyway because the connection won't happen and the Server Configuration won't have the Prod server listed in the "Remote Servers" tab.
Do you pheraps know what the cause of this problem could be? Also, if you need any other information from me in order to understand what are we doing wrong I'll be happy to share it with you.
Thanks a lot in advance.
<system-properties>
<property name="org.kie.server.location" value="http://20.20.20.20:8080/kie-server/services/rest/server"/>
<property name="org.kie.server.controller" value="http://10.10.10.10:8080/business-central/rest/controller"/>
<property name="org.kie.server.controller.user" value="controllerUser"/> <<---Make sure this user is added in `application realm` on `Business Central` node.
<property name="org.kie.server.controller.pwd" value="controllerUser1234;"/>
<property name="org.kie.server.id" value="kie-server-prod"/>
</system-properties>
If prod kie-server dont have process capability then make sure you have configured DB correctly with pord kie-server node. Try defining controller using above properties and if you still face issue, share log files.
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/1aa35325-7593-4722-b07b-6efd489dde43n%40googlegroups.com.
Hello Abhijit,
Unfortunately Vanessa cannot answer anymore.
Btw..
thanks a lot for your answer, it really helped us in partially resolve the problem.
I think that the System Properties are correctly set since they are the same for test and prod environments (excepts for server.id and server.location). We actually found a problem with the permissions of the user that server used to connect to the DB, after fixing them we managed to connect the kie-server to the Business Central and properly create a Server Configuration that includes the Process Capability.
It seems to not be enough to make it work, though, because when we try to deploy to the new Prod server and we click the "Deploy" button nothing happens. Looking at logs it would seems that the connection between Business Central and the Kie-server gets lost right after the Server Configuration is created.
We noticed that after 5 minutes from creating the Server Configuration we have this warning in the workbench logs: Unable to get list of containers from remote server at url http://10.11.12.13:8080/kie-server/services/rest/server due to Service response not received. After that there are several connection time out exception.
The strange thing is that if we try to do a request from the business central to the /kie-server/services/rest/server endpoint, we correctly receive a response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response type="SUCCESS" msg="Kie Server info">
<kie-server-info>
<capabilities>KieServer</capabilities>
<capabilities>BRM</capabilities>
<capabilities>BPM</capabilities>
<capabilities>CaseMgmt</capabilities>
<capabilities>BPM-UI</capabilities>
<capabilities>BRP</capabilities>
<capabilities>DMN</capabilities>
<capabilities>Swagger</capabilities>
<location>http://10.11.12.13:8080/kie-server/services/rest/server
<messages>
<content>Server KieServerInfo{serverId='Prod', version='7.45.0.Final', name='Prod', location='http://10.11.12.13:8080/kie-server/services/rest/server', capabilities=[KieServer, BRM, BPM, CaseMgmt, BPM-UI, BRP,
DMN, Swagger]', messages=null', mode=PRODUCTION}started successfully at Thu May 06 15:36:06 UTC 2021</content>
<severity>INFO</severity>
<timestamp>2021-05-06T15:36:06.288Z</timestamp>
</messages>
<mode>PRODUCTION</mode>
<name>Prod</name>
<id>Prod</id>
<version>7.45.0.Final</version>
</kie-server-info>
</response>
I'll attach both kie-server and business central logs, the latter starts from the point where we delete the Server Configuration and restart the Kie-Server. Do you know if there is anything that could cause this problem?
Thanks a lot again.