-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
7.13.3.GA
-
None
-
- BA Operator 7.13.3
- Inmutable deployment, replicas 2
- Oracle database
- OpenShiftStartupStrategy
-
False
-
None
-
False
-
---
-
---
-
-
An attempt to rollout kieserver pods fails with the following error in the log file:
*********************************
[0m [31m12:12:52,387 ERROR [org.jboss.msc.service.fail] (watcher-prod-amendament-kieserver) MSC000001: Failed to start service jboss.deployment.unit."ROOT.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."ROOT.war".undertow-deployment: java.lang.ExceptionInInitializerError
at org.wildfly.extension.undertow@7.4.8.GA-redhat-00002//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.lang.ExceptionInInitializerError
at deployment.ROOT.war//org.kie.server.services.impl.KieServerLocator.getInstance(KieServerLocator.java:32)
at deployment.ROOT.war//org.kie.server.remote.rest.common.Bootstrap.contextInitialized(Bootstrap.java:51)
at io.undertow.servlet@2.2.20.SP1-redhat-00001//io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet@2.2.20.SP1-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:219)
at io.undertow.servlet@2.2.20.SP1-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:187)
at io.undertow.servlet@2.2.20.SP1-redhat-00001//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet@2.2.20.SP1-redhat-00001//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow@7.4.8.GA-redhat-00002//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1555)
at org.wildfly.extension.undertow@7.4.8.GA-redhat-00002//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1555)
at org.wildfly.extension.undertow@7.4.8.GA-redhat-00002//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1555)
at org.wildfly.extension.undertow@7.4.8.GA-redhat-00002//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1555)
at io.undertow.servlet@2.2.20.SP1-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:255)
at org.wildfly.extension.undertow@7.4.8.GA-redhat-00002//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
at org.wildfly.extension.undertow@7.4.8.GA-redhat-00002//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
... 8 more
Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Operation: [delete] for kind: [ConfigMap] with name: [kieserver-rollout-in-progress-prod-amendament-kieserver] in namespace: [pam-amendament-test] failed.
at deployment.ROOT.war//io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:64)
at deployment.ROOT.war//io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:72)
at deployment.ROOT.war//io.fabric8.kubernetes.client.dsl.base.BaseOperation.deleteThis(BaseOperation.java:712)
at deployment.ROOT.war//io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:632)
at deployment.ROOT.war//io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:70)
at deployment.ROOT.war//org.kie.server.services.openshift.impl.OpenShiftStartupStrategy.clearRollout(OpenShiftStartupStrategy.java:190)
at deployment.ROOT.war//org.kie.server.services.openshift.impl.OpenShiftStartupStrategy.startup(OpenShiftStartupStrategy.java:177)
at deployment.ROOT.war//org.kie.server.services.impl.KieServerImpl.init(KieServerImpl.java:208)
at deployment.ROOT.war//org.kie.server.services.impl.KieServerImpl.init(KieServerImpl.java:142)
at deployment.ROOT.war//org.kie.server.services.impl.KieServerLocator$KieServerLocatorHelper.<clinit>(KieServerLocator.java:25)
... 22 more
Caused by: okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR
at deployment.ROOT.war//okhttp3.internal.http2.Http2Stream.checkOutNotClosed(Http2Stream.java:629)
at deployment.ROOT.war//okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.java:563)
at deployment.ROOT.war//okhttp3.internal.http2.Http2Stream$FramingSink.close(Http2Stream.java:600)
at deployment.ROOT.war//okio.ForwardingSink.close(ForwardingSink.java:47)
at deployment.ROOT.war//okio.RealBufferedSink.close(RealBufferedSink.java:248)
at deployment.ROOT.war//okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:73)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at deployment.ROOT.war//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at deployment.ROOT.war//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at deployment.ROOT.war//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at deployment.ROOT.war//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at deployment.ROOT.war//io.fabric8.kubernetes.client.utils.BackwardsCompatibilityInterceptor.intercept(BackwardsCompatibilityInterceptor.java:134)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at deployment.ROOT.war//io.fabric8.kubernetes.client.utils.ImpersonatorInterceptor.intercept(ImpersonatorInterceptor.java:68)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at deployment.ROOT.war//io.fabric8.openshift.client.internal.OpenShiftOAuthInterceptor.intercept(OpenShiftOAuthInterceptor.java:69)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at deployment.ROOT.war//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at deployment.ROOT.war//okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:254)
at deployment.ROOT.war//okhttp3.RealCall.execute(RealCall.java:92)
at deployment.ROOT.war//io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:469)
at deployment.ROOT.war//io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:430)
at deployment.ROOT.war//io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleDelete(OperationSupport.java:231)
at deployment.ROOT.war//io.fabric8.kubernetes.client.dsl.base.BaseOperation.deleteThis(BaseOperation.java:709)
... 29 more
[0m [31m12:12:52,465 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "ROOT.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"ROOT.war\".undertow-deployment" => "java.lang.ExceptionInInitializerError
Caused by: java.lang.ExceptionInInitializerError
Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Operation: [delete] for kind: [ConfigMap] with name: [kieserver-rollout-in-progress-prod-amendament-kieserver] in namespace: [pam-amendament-test] failed.
Caused by: okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR"}}
*********************************
This error happens when the OpenShiftStartupStrategy [1] is used. From OpenShiftStartupStrategy [1], method clearRollout [2] tries to delete a config-map which does not exist at all.
[1] https://github.com/kiegroup/droolsjbpm-integration/blob/main/kie-server-parent/kie-server-services/kie-server-services-openshift/src/main/java/org/kie/server/services/openshift/impl/OpenShiftStartupStrategy.java
[2] https://github.com/kiegroup/droolsjbpm-integration/blob/main/kie-server-parent/kie-server-services/kie-server-services-openshift/src/main/java/org/kie/server/services/openshift/impl/OpenShiftStartupStrategy.java#L186