How to down-grade metadata version for Percona MongoDB

Hello there,

I cloned Percona MongDB code (v1.12.0) from master of GitHub - percona/percona-server-mongodb-operator: Percona Distribution for MongoDB Operator, and created Operator and DB Cluster. then delete all resources created, i.e. crd, rbac, secrets, operator.

git clone https://github.com/percona/percona-server-mongodb-operator

Now I want to create the operator and cluster with version v1.11.0 by cloning code as below:

git clone -b v1.11.0 https://github.com/percona/percona-server-mongodb-operator

Follow the instructions to create crd, rbac, secrets, operator, but cannot create db cluster. It seems some metadata of v1.12.0 left in my k8s environment. what should be done to get rid of it?

error message:

Unable to continue with install: could not get information about the resource: request to convert CR from an invalid group/version: psmdb.percona.com/v1-12-0

thanks,
Arthur

1 Like

I found the reason:

Root Cause:
Some resources left in Cluster namespace when the cluster and its namespace were destroyed.

Solution:

  1. Recreate the namespace with old name
  2. Install Percona Operator and Cluster
    3, Delete the Cluster, Operator and the namespace
  3. Re-install the Operator and Cluster with the specific version.
1 Like