IBM / cp4d-deployment

The repo provides instructions on deploying CloudPakforData on the public cloud.
Apache License 2.0
48 stars 92 forks source link

[managed-openshift/ibmcloud] Error installing wkc #81

Closed LuitasV closed 2 years ago

LuitasV commented 3 years ago

When you deploy the WKC, looks like the pod c-db2oltp-wkc-db2u-0 never get ready, and restart again and again.

Connecting to the pod, could see that the script db2u_entrypoint.sh is registering the db2, applying licence, but the command never ends. db2inst1 944 1 0 22:48 pts/0 00:00:00 /bin/bash -x /db2u/db2u_entrypoint.sh db2inst1 1381 944 0 22:48 pts/0 00:00:00 /mnt/blumeta0/home/db2inst1/sqllib/adm/db2licm -a /db2u/license/db2u-lic

I have tried to do it manually with the command db2licm, but the same behavior

Any idea why?

praveshcompiles commented 3 years ago

investigating on this issue..

LuitasV commented 3 years ago

Have you been able to see anything about this issue, are you able to reproduce it? If you need any configuration or log, I will send it to you.

Thanks

praveshcompiles commented 3 years ago

Hi Luitsav, we are still working on it as it is a known issue.. for now we have a workaround patch- after creating the WKC-CR please run this -

NAMESPACE=<zen_namespace> while [ "$(oc get sts -n ${NAMESPACE} | grep c-db2oltp-wkc-db2u)" = "" ]; do echo "waiting for c-db2oltp-wkc-db2u statefulset."; sleep 60; done oc patch sts c-db2oltp-wkc-db2u -p='{"spec":{"template":{"spec":{"containers":[{"name":"db2u","tty":false}]}}}}}'; echo "patch for c-db2oltp-wkc-db2u is appied."

and then after creating IIS-CR, run this -

while [ "$(oc get sts -n ${NAMESPACE} | grep c-db2oltp-iis-db2u)" = "" ]; do echo "waiting for c-db2oltp-iis-db2u statefulset."; sleep 60; done oc patch sts c-db2oltp-iis-db2u -p='{"spec":{"template":{"spec":{"containers":[{"name":"db2u","tty":false}]}}}}}'; echo "patch for c-db2oltp-iis-db2u is appied." then it should be able to complete the WKC install.

LuitasV commented 3 years ago

The workaround patch worked just fine. Thanks a lot

prsahoo commented 2 years ago

Closing the issue.