IBM Sterling Connect:Direct : Solving CrashLoopBackOff problems when deploying in Kubernetes/OpenShift: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
= Get Information on Kubernetes/OpenShift = | |||
===== Get Pods ===== | ===== Get Pods ===== | ||
Line 35: | Line 37: | ||
== | = Checking container information = | ||
If you want to investigate container, you can download to your machine and check the scripts inside. | |||
1) First do a login on IBM Registry | |||
export ENTITLED_REGISTRY_KEY=<IBM Entitlement Key> | |||
export ENTITLED_REGISTRY=cp.icr.io | |||
export ENTITLED_REGISTRY_USER=cp | |||
podman login "$ENTITLED_REGISTRY" -u "$ENTITLED_REGISTRY_USER" -p "$ENTITLED_REGISTRY_KEY" | |||
2) Pull the container | |||
podmn pull cp.icr.io/cp/ibm-connectdirect/cdu6.3_certified_container_<VERSION>:<TAG> | |||
3) Run container overriding entrypoint | |||
podman run --entrypoint="sleep" -d cp.icr.io/cp/ibm-connectdirect/cdu6.3_certified_container_<VERSION>:<TAG> infinity | |||
check that container is running | |||
podman ps | |||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |||
''703a22e4b211'' cp...ainer_<VERSION>:<TAG> infinity 10 minutes ago Up 10 minutes brave_shaw | |||
4) Access the container | |||
podman exec -it ''703a22e4b211'' /bin/bash | |||
you must run exit to quit container | |||
5) Get files from container | |||
podman cp ''703a22e4b211'':/cdinstall/CDStartup.sh . | |||
= Ver também = | = Ver também = |
Revision as of 17:22, 14 March 2024
Get Information on Kubernetes/OpenShift
Get Pods
oc get pod
the output
NAME READY STATUS RESTARTS AGE mycd-ibm-connect-direct-0 0/1 CrashLoopBackOff 19 (55s ago) 74m
Check logs in Pod
oc logs mycd-ibm-connect-direct-0
the output
[2024/03/13 16:31:07.38 ] | [INFO] | Running entry script [2024/03/13 16:31:07.44 ] | [INFO] | Initializing deployemnt [2024/03/13 16:31:07.46 ] | [INFO] | Populating configuration parameters [2024/03/13 16:31:08.18 ] | [INFO] | SUM enabled is set to true [2024/03/13 16:31:08.19 ] | [INFO] | New deployment detected [2024/03/13 16:31:08.25 ] | [INFO] | Applying default configuration [2024/03/13 16:31:08.28 ] | [ERROR] | The certificate/password for secure plus configuration is not provided. Line no: 135 [2024/03/13 16:31:08.35 ] | [INFO] | Exiting
Verifying Pod definitions
oc describe pod/mycd-ibm-connect-direct-0
get the output and check
I suggest to you open a case on IBM
Checking container information
If you want to investigate container, you can download to your machine and check the scripts inside.
1) First do a login on IBM Registry
export ENTITLED_REGISTRY_KEY=<IBM Entitlement Key> export ENTITLED_REGISTRY=cp.icr.io export ENTITLED_REGISTRY_USER=cp podman login "$ENTITLED_REGISTRY" -u "$ENTITLED_REGISTRY_USER" -p "$ENTITLED_REGISTRY_KEY"
2) Pull the container
podmn pull cp.icr.io/cp/ibm-connectdirect/cdu6.3_certified_container_<VERSION>:<TAG>
3) Run container overriding entrypoint
podman run --entrypoint="sleep" -d cp.icr.io/cp/ibm-connectdirect/cdu6.3_certified_container_<VERSION>:<TAG> infinity
check that container is running
podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 703a22e4b211 cp...ainer_<VERSION>:<TAG> infinity 10 minutes ago Up 10 minutes brave_shaw
4) Access the container
podman exec -it 703a22e4b211 /bin/bash
you must run exit to quit container
5) Get files from container
podman cp 703a22e4b211:/cdinstall/CDStartup.sh .