Migrating OpenShift Data Foundation from HPCS to Key Protect
Migrate your Hyper Protect Crypto Services (HPCS) encryption for OpenShift Data Foundation (ODF) to use IBM Key Protect (Key Protect) instead.
Before you begin
Before you begin the migration, complete the following steps to determine if your cluster requires migration and to prepare your environment.
- Access your Red Hat OpenShift cluster.
- Ensure you have the following tools installed:
ocorocCLI with access to your ODF clusterjqfor JSON processingcurlfor API requests
- If you have not already done so, Create a Key Protect instance or use an existing IBM Key Protect instance in the same region as your cluster.
- Verify that the Ceph toolbox pod is enabled in your cluster. Set
storagecluster.spec.enableCephTools: truein your StorageCluster configuration if it is not already enabled. - Download the ODF HPCS to Key Protect migration scripts to use for migrating your volumes. The scripts are
migrate-odf.sh(the main script that invokes the other three),migrate-osd.sh,migrate-csi.sh, andmigrate-noobaa.sh, and are included in thehpcs-2-kp-k8s.zipfile when you request tool access. See step 1 of the migration overview for more information.
Migration steps
-
Use the following script to determine if the cluster is using HPCS keys that need to be migrated.
./migrate-odf.sh detect -
Create a
.envfile in the current directory and fill in your Key Protect details.$ cat .env KP_INSTANCE_ID=XXX KP_IAM_API_KEY=XXX KP_KEY_ID=XXX KP_URL=https://XXX.api.us-south.kms.appdomain.cloud -
Run the migration script.
./migrate-odf.sh migrate -
After the migration is complete, verify that your resources are accessible and use Key Protect as the key management service (KMS).