Description:
I have created a new cluster using the percona mongodb operator. I am trying to create users and import a database into the cluster but it failing with the error that it’s saying that I have no permission to execute command db.createUser() or not authorized on admin to execute command { enableSharding: “vpsie”, lsid:
I have used the clusterAdmin user, the databaseAdmin user and also tried with userAdmin user they are fail.
Steps to Reproduce:
create a new cluster with 3 replicasets and 1 shard then try to create a user on it.
Version:
percona/percona-server-mongodb:6.0.9-7
Logs:
[If applicable, include any relevant log files or error messages]
Expected Result:
user to be created and assigned to the database.
Actual Result:
an error has been occured saying that I have no permission