Description:
I’m trying to restore a backup of a non-sharded MongoDB cluster to a sharded one.
To do this, I first start the cluster with one replica set in a non-sharded state, restore the data, and everything is fine.
But when I switch to a sharded state and add the replica set rs1, the operator can’t start and configure the cluster.
Steps to Reproduce:
replsets:
- name: rs0
#start cluster with
sharding:
enabled: false
apply cr.yaml
when change to
replsets:
- name: rs0
...
- name: rs1
...
sharding:
enabled: true
Logs:
psmdb
Message: Error: delete psmdb pods: is pod primary: failed to create standalone client: ping mongo: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate │
│ using mechanism “SCRAM-SHA-1”: (AuthenticationFailed) Authentication failed.
Expected Result:
cluster with 2 shards
Actual Result:
The cluster won’t start
Partial replica sets won’t start
PSMDB is in error state
Additional Information:
I’d like a manual if I’m doing something wrong. Maybe I need to do this procedure through Unmanage?
