Post-upgrade setup for Data Privacy
Before you begin
Ensure that you migrated the IBM Knowledge Catalog data from the previously used Db2 and CouchDB databases to the EDB Native PostgreSQL database that is used in Version 5.2 by using Post-upgrade setup for IBM Knowledge Catalog.
Migration steps
- Check the migration status for Data
Privacy,
run:
Example output:oc get pod -n ${PROJECT_CPD_INST_OPERANDS} | grep ikc-couchdb-postgres-data-migration-dpikc-couchdb-postgres-data-migration-dp-b7bbs 0/1 Completed 0 - Confirm that the migration pod logs end with the following
output:
and run:INFO: migrationStatus: COMPLETEoc logs -f ikc-couchdb-postgres-data-migration-dp-b7bbs -n ${PROJECT_CPD_INST_OPERANDS} - After the data migration is completed, one of the Data
Privacy services requires manual
scaling (down and up) of the replicas for
dp-subsetby using the following commands:dp_subset_replicas=`oc get deployment/dp-subset -o jsonpath='{.spec.replicas}'` oc scale deployment/dp-subset --replicas=0 oc scale deployment/dp-subset --replicas=$dp_subset_replicas - Confirm that the
dp-subsetpod is up and running after 3-4 minutes:
and showing the following example output:oc get pod -n ${PROJECT_CPD_INST_OPERANDS} | grep subsetdp-subset-7fbcc9dd4b-rp8zl 3/3 Running 0 4m
Troubleshooting migration failure
If Data
Privacy migration job fails when you're following IBM Knowledge Catalog
migration steps,
specifically step 4, and the state of the migration job is showing the following
output:
ikc-couchdb-postgres-data-migration-dp-b7bbs 0/1 Error 0
you
can try to continue with Masking flow service to use Cloudant database for metadata persistence.- Run:
oc patch deployment/dp-subset -n ${PROJECT_CPD_INST_OPERANDS} -p '{"spec":{"template":{"spec":{"containers":[{"name":"dp-subset-metadata","env":[{"name":"DB_TYPE","value":"CLOUDANT"}]},{"name":"dp-subset-jobhandler","env":[{"name":"DB_TYPE","value":"CLOUDANT"}]},{"name":"dp-subset-monitor","env":[{"name":"DB_TYPE","value":"CLOUDANT"}]}]}}}}' - Confirm that the
dp-subsetpod is up and running after 3-4 minutes:
and showing the expected output:oc get pod -n ${PROJECT_CPD_INST_OPERANDS} | grep subsetdp-subset-7fbcc9dd4b-rp8zl 3/3 Running 0 4m