Description:
[Detailed description of the issue or question]
I am using Percona operator for mongodb (1.15.0) (Mongodb 6) . I was trying to set a custom replicaset tag on one of the members . However , when i check rs.conf() , i do not see the new tags .
One of other the strange behaviour we witness is that after setting the replica set tag to null (which works sometimes) , the rs.conf shows the original tag.
Original replica set tag is as follows:
tags: {
podName: ‘my-cluster-name-rs0-3’,
serviceName: ‘my-cluster-name’
}
I tried setting the replicaset tag on my local (which is not on k8s) and it worked fine . My guess is Percona operator is resetting the tags .
Steps to Reproduce:
[Step-by-step instructions on how to reproduce the issue, including any specific settings or configurations]
- Login to database via an admin user (on primary)
- load config to a variable
conf = rs.conf() - Add tag to one of the members
conf.members[2].tags = {“tag_testing” : “test”} - Add the tag to the config
rs.reconfig(conf,{force: true}); - Verify the replicaset tag
rs.conf()
Version:
Mongodb version 6
Percona operator for Mongodb : 1.15.0
Logs:
[If applicable, include any relevant log files or error messages]
Expected Result:
[What the user expected to see or happen before the issue occurred]
Actual Result:
[What actually happened when the user encountered the issue]
Additional Information:
[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]