Data Gate pod fails to initialize
Data Gate pod fails to initialize with Init:CrashLoopBackOff state.
About this task
Starting from Data Gate 5.2 the target Db2 or Db2 Warehouse configuration changes are checked for invalid values.
Procedure
-
Check whether the pod is initialized:
oc get po | grep dg- dg-xx-data-gate-xx-xx 0/5 Init:CrashLoopBackOff 5 (94s ago) 4m25sCheck the logs of the Db2 init container:
If the logs show:oc logs dg-xx-data-gate-xx-xx -c config-db2u
Check for which variable the value is invalid inside the logs. Example:Values in the datagate target cm configmap are invalid. Exiting. exit 1ERROR: Invalid value for key 'DB2_STATISTICS': xxx - You need to check the values entered in
dg-{{ zenServiceInstanceId }}-target-db2-variables-cmconfig map and change the wrong value of the target Db2 or Db2 Warehouse:
Change the value of the variable mentioned in step 1. After you apply the change, save the config mapoc get cm | grep target-db2-variables dg-xxx-target-db2-variables-cm 1 xxd oc edit cm dg-xxx-target-db2-variables-cmdg-{{ zenServiceInstanceId }}-target-db2-variables-cmand restart the Data Gate pod. - If the problem persists, and you are sure that the values you entered in the
dg-{{ zenServiceInstanceId }}-target-db2-variables-cmare correct, you can disable the validation of the target Db2 or Db2 Warehouse configuration variables. Edit thedg-{{ zenServiceInstanceId }}-target-db2-variables-cm:
Change theoc get cm | grep target-db2-variables dg-xxx-target-db2-variables-cm 1 xxd oc edit cm dg-xxx-target-db2-variables-cmdb2_check_values:truetofalse:
Save the config map and restart the Data Gate pod.db2_check_values: "false" - Check whether the Data Gate pod has applied successfully the target Db2 or Db2 Warehouse
configuration variables by inspecting the logs of the datagate db2 init container:
oc get po | grep dg- dg-xx-data-gate-xx-xx 5/5 Running 0 5m oc logs dg-xx-data-gate-xx-xx -c config-db2u