-
Bug
-
Resolution: Done
-
Minor
-
7.9.0.GA
-
OCP 4.6
BA Operator 7.9.0
RHPAM Kie Server image 7.9.0
-
False
-
False
-
GA
-
-
-
-
-
-
CR1
-
?
-
Undefined
-
Workaround Exists
-
-
-
---
-
---
-
-
2022 Week 29-31 (from Jul 18), 2022 Week 32-34 (from Aug 8), 2022 Week 35-37 (from Aug 29), 2022 Week 38-40 (from Sept 19)
When I updated Kie Container in BC, on a Kie Server with OpenShift startup strategy. The update was done, but was not triggered DeploymentConfig redeployment. ConfigMap with Kie Server state is updated and also there is an annotation for rollout `services.server.kie.org/openshift-startup-strategy.rolloutRequired: 'true'`.
So after this update Kie Server is not restarted with a new state.
ConfigMap before update:
kind: ConfigMap apiVersion: v1 metadata: annotations: services.server.kie.org/kie-server-state.changeTimestamp: '2020-11-30T17:28:31.404572Z' selfLink: /api/v1/namespaces/kie-operator-pam-f126/configmaps/myapp-kieserver resourceVersion: '3756060' name: myapp-kieserver uid: 42475183-0ceb-438e-b6fb-94423499705d creationTimestamp: '2020-11-30T17:10:07Z' namespace: kie-operator-pam-f126 ownerReferences: - apiVersion: apps.openshift.io/v1 kind: DeploymentConfig name: myapp-kieserver uid: 57d634a5-fc92-4f4e-aecf-28a12414c864 labels: application: myapp services.server.kie.org/kie-server-id: myapp-kieserver services.server.kie.org/kie-server-state: USED
ConfigMap after update:
kind: ConfigMap apiVersion: v1 metadata: annotations: services.server.kie.org/kie-server-state.changeTimestamp: '2020-12-02T13:42:27.431110Z' services.server.kie.org/openshift-startup-strategy.rolloutRequired: 'true' selfLink: /api/v1/namespaces/kie-operator-pam-f126/configmaps/myapp-kieserver resourceVersion: '4743192' name: myapp-kieserver uid: 42475183-0ceb-438e-b6fb-94423499705d creationTimestamp: '2020-11-30T17:10:07Z' namespace: kie-operator-pam-f126 ownerReferences: - apiVersion: apps.openshift.io/v1 kind: DeploymentConfig name: myapp-kieserver uid: 57d634a5-fc92-4f4e-aecf-28a12414c864 labels: application: myapp services.server.kie.org/kie-server-id: myapp-kieserver services.server.kie.org/kie-server-state: USED
Update of Kie Server was not triggered, because on the Kie Server pod was closed OpenShift startup strategy watcher:
�[0m�[0m19:18:35,307 INFO [org.kie.server.services.openshift.impl.OpenShiftStartupStrategy] (OkHttp https://172.30.0.1/...) Watcher closed. �[0m�[0m19:18:35,308 INFO [org.kie.server.services.openshift.impl.OpenShiftStartupStrategy] (OkHttp https://172.30.0.1/...) too old resource version: 3756060 (3818674)
In attachment is full log for the Kie Server.
We should make sure that when watcher is closed a new one is started and Kie Server is updated if needed.
I was able to start the watcher by restarting the Kie Server pod and updating the ConfigMap again (removed and add back annotation for rollout). After this update a new deployment was created.
- incorporates
-
JBPM-8588 Gracefully handle the generic KubernetesClientException on OpenShiftStartUpStrategy
- Resolved
- relates to
-
RHPAM-4519 Set KubernetesClientException in Kie Server's OpenShift Startup Strategy to warning
- Closed