Validating the restored Cloud Pak for Data instance
After you restore a Cloud Pak for Data instance, validate the instance to ensure that the restore was successful.
Procedure
- Log in to Red Hat®
OpenShift® Container Platform as an instance
administrator.
${OC_LOGIN}
Remember:OC_LOGIN
is an alias for theoc login
command. -
Validate operator visibility:
oc get nss -n ${PROJECT_CPD_INST_OPERATORS} common-service -o jsonpath='{.status.validatedMembers} {"\n"}'
Check that the output of the command is like in the following example:
["cpd-operators","cpd-instance"]
- Validate CommonService custom resources by running the following commands:
oc get commonservice -n ${PROJECT_CPD_INST_OPERANDS} common-service -o yaml
Check that the output of the command is like in the following example:
apiVersion: operator.ibm.com/v3 kind: CommonService metadata: name: common-service namespace: cpd-instance spec: license: accept: false operatorNamespace: cpd-operator ... servicesNamespace: cpd-instance size: small status: phase: Succeeded
oc get commonservice -n ${PROJECT_CPD_INST_OPERATORS} common-service -o yaml
Check that the output of the command is like in the following example:
apiVersion: operator.ibm.com/v3 kind: CommonService metadata: name: common-service namespace: cpd-operator spec: license: accept: false operatorNamespace: cpd-operator ... servicesNamespace: cpd-instance size: small status: phase: Succeeded
- Validate EDB Postgres:
oc get clusters.postgresql.k8s.enterprisedb.io -n ${PROJECT_CPD_INST_OPERANDS}
Check that the output of the command is like in the following example:NAME AGE INSTANCES READY STATUS PRIMARY common-service-db 30s 2 2 Cluster in healthy state common-service-db-2 zen-metastore-edb 30s 2 2 Cluster in healthy state zen-metastore-edb-1