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

Duplicated deployments when using OpenshiftStartupStrategy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.13.2.GA
    • Cloud, Deployment
    • None
    • False
    • None
    • False
    • ---
    • ---

      • Business Automation Operator 7.13.2 
      • OCP 4.10 
      • one BC pod;
      • two replicas of kie-server pods;
      • environment is setup to use the default OpenshiftStartupStrategy;
         
        When a new deployment is done, there are two visible deployments with the same name - it is possible to click on one of them but it shows up as unavailable while the second one is not clickable:
         

         
        The log file shows:
         
        *******************************************
        [0m [0m11:47:14,906 INFO [org.kie.server.services.impl.ContainerManager] (ServerService Thread Pool – 87) About to install containers on kie server KieServer {id='default-kieserver'name='default-kieserver'version='7.67.0.Final-redhat-00019'location='[https://default-kieserver-bkramer-rhpam.apps.cndsno1.cee.ral3.lab.eng.rdu2.redhat.com:443/services/rest/server'|https://default-kieserver-bkramer-rhpam.apps.cndsno1.cee.ral3.lab.eng.rdu2.redhat.com/services/rest/server']}

        : KieContainerResource [containerId=evaluation_1.0.2-SNAPSHOT, releaseId=evaluation:evaluation:1.0.2-SNAPSHOT, resolvedReleaseId=null, status=STOPPED] KieContainerResource [containerId=evaluation_1.0.12-SNAPSHOT, releaseId=evaluation:evaluation:1.0.12-SNAPSHOT, resolvedReleaseId=null, status=STARTED] ... KieContainerResource [containerId=evaluation_1.0.12-SNAPSHOT, releaseId=evaluation:evaluation:1.0.12-SNAPSHOT, resolvedReleaseId=evaluation:evaluation:1.0.12-SNAPSHOT, status=STARTED] ... [0m [0m11:47:17,485 INFO [org.drools.compiler.kie.builder.impl.InternalKieModuleProvider] (ServerService Thread Pool – 87) Creating KieModule for artifact evaluation:evaluation:1.0.12-SNAPSHOT [0m [0m11:47:17,493 INFO [org.drools.modelcompiler.CanonicalKieModuleProvider] (ServerService Thread Pool – 87) No executable model found for artifact evaluation:evaluation:1.0.12-SNAPSHOT. Falling back to resources parsing. ... [0m [0m11:47:20,098 INFO [org.jbpm.runtime.manager.impl.AbstractRuntimeManager] (ServerService Thread Pool – 87) SingletonRuntimeManager is created for evaluation_1.0.12-SNAPSHOT [0m [33m11:47:20,098 WARN [org.jbpm.runtime.manager.impl.SingletonRuntimeManager] (ServerService Thread Pool – 87) Singleton with EJB Timer Service is not recommended as it's not stable under load [0m [0m11:47:20,678 INFO [org.kie.server.services.impl.KieServerImpl] (ServerService Thread Pool – 87) Container evaluation_1.0.12-SNAPSHOT (for release id evaluation:evaluation:1.0.12-SNAPSHOT) successfully started
        *******************************************
         
        When a new version of the project is deployed - 1.0.13 - previously failed 1.0.12 is properly deployed and 1.0.13 is duplicated... the log file from the new kie server pod shows:
        *******************************************
        [0m [0m13:15:02,472 INFO [org.kie.server.services.impl.ContainerManager] (ServerService Thread Pool – 78) About to install containers on kie server KieServer

        {id='default-kieserver'name='default-kieserver'version='7.67.0.Final-redhat-00019'location='[https://default-kieserver-bkramer-rhpam.apps.cndsno1.cee.ral3.lab.eng.rdu2.redhat.com:443/services/rest/server'|https://default-kieserver-bkramer-rhpam.apps.cndsno1.cee.ral3.lab.eng.rdu2.redhat.com/services/rest/server']}

        : KieContainerResource [containerId=evaluation_1.0.12-SNAPSHOT, releaseId=evaluation:evaluation:1.0.12-SNAPSHOT, resolvedReleaseId=null, status=STARTED] ... KieContainerResource [containerId=evaluation_1.0.13-SNAPSHOT, releaseId=evaluation:evaluation:1.0.13-SNAPSHOT, resolvedReleaseId=null, status=STARTED] ... KieContainerResource [containerId=evaluation_1.0.13-SNAPSHOT, releaseId=evaluation:evaluation:1.0.13-SNAPSHOT, resolvedReleaseId=evaluation:evaluation:1.0.13-SNAPSHOT, status=STARTED]
        *******************************************
         
        As a result there is a default-kieserver config map that contains the following:
         
        *************************************************************
        kind: ConfigMap
        apiVersion: v1
        metadata:
          name: default-kieserver
        ...

              <container>
                <containerId>evaluation_1.0.13-SNAPSHOT</containerId>
                <releaseId>
                  <groupId>evaluation</groupId>
                  <artifactId>evaluation</artifactId>
                  <version>1.0.13-SNAPSHOT</version>
                </releaseId>
                <resolvedReleaseId>
                  <groupId>evaluation</groupId>
                  <artifactId>evaluation</artifactId>
                  <version>1.0.13-SNAPSHOT</version>
                </resolvedReleaseId>
                <status>STARTED</status>
                <scanner>
                  <status>STOPPED</status>
                </scanner>
                <configItems>
                  <config-item>
                    <name>KBase</name>
                    <value></value>
                    <type>BPM</type>
                  </config-item>
                  <config-item>
                    <name>KSession</name>
                    <value></value>
                    <type>BPM</type>
                  </config-item>
                  <config-item>
                    <name>MergeMode</name>
                    <value>MERGE_COLLECTIONS</value>
                    <type>BPM</type>
                  </config-item>
                  <config-item>
                    <name>RuntimeStrategy</name>
                    <value>SINGLETON</value>
                    <type>BPM</type>
                  </config-item>
                </configItems>
                <messages/>
                <containerAlias>evaluation</containerAlias>
              </container>

      ...

              <container>
                <containerId>evaluation_1.0.13-SNAPSHOT</containerId>
                <releaseId>
                  <groupId>evaluation</groupId>
                  <artifactId>evaluation</artifactId>
                  <version>1.0.13-SNAPSHOT</version>
                </releaseId>
                <status>STARTED</status>
                <scanner>
                  <status>STOPPED</status>
                </scanner>
                <configItems>
                  <config-item>
                    <name>KBase</name>
                    <value></value>
                    <type>BPM</type>
                  </config-item>
                  <config-item>
                    <name>KSession</name>
                    <value></value>
                    <type>BPM</type>
                  </config-item>
                  <config-item>
                    <name>MergeMode</name>
                    <value>MERGE_COLLECTIONS</value>
                    <type>BPM</type>
                  </config-item>
                  <config-item>
                    <name>RuntimeStrategy</name>
                    <value>SINGLETON</value>
                    <type>BPM</type>
                  </config-item>
                </configItems>
                <messages/>
                <containerAlias>evaluation</containerAlias>
              </container>

      ...

              <container>
                <containerId>evaluation_1.0.12-SNAPSHOT</containerId>
                <releaseId>
                  <groupId>evaluation</groupId>
                  <artifactId>evaluation</artifactId>
                  <version>1.0.12-SNAPSHOT</version>
                </releaseId>
                <status>STARTED</status>
                <scanner>
                  <status>STOPPED</status>
                </scanner>
                <configItems>
                  <config-item>
                    <name>KBase</name>
                    <value></value>
                    <type>BPM</type>
                  </config-item>
                  <config-item>
                    <name>KSession</name>
                    <value></value>
                    <type>BPM</type>
                  </config-item>
                  <config-item>
                    <name>MergeMode</name>
                    <value>MERGE_COLLECTIONS</value>
                    <type>BPM</type>
                  </config-item>
                  <config-item>
                    <name>RuntimeStrategy</name>
                    <value>SINGLETON</value>
                    <type>BPM</type>
                  </config-item>
                </configItems>
                <messages/>
                <containerAlias>evaluation</containerAlias>
              </container>       
      *************************************************************
      If RHPAM is running using ControllerBasedStartupStrategy, the issue does not happen.

            mnovotny@redhat.com Marek Novotny
            rhn-support-bkramer1 Biljana Kramer
            Jakub Schwan Jakub Schwan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: