Unable to create 2 replicasets in same namespace with single operator

when we use same port 27017 for 2 replicasets in same namespace below is the error even after changing clustername / rsname / secrets

{"t":{"$date":"2021-09-08T18:04:30.533+00:00"},"s":"I",  "c":"-",        "id":20700,   "ctx":"conn74","msg":"note: not profiling because db went away for namespace","attr":{"namespace":"admin.$cmd"}}
{"t":{"$date":"2021-09-08T18:04:30.533+00:00"},"s":"D1", "c":"QUERY",    "id":22790,   "ctx":"conn74","msg":"Received interrupt request for unknown op","attr":{"opId":10539}}
{"t":{"$date":"2021-09-08T18:04:31.000+00:00"},"s":"D1", "c":"-",        "id":23074,   "ctx":"ftdc","msg":"User assertion","attr":{"error":"NotYetInitialized: no replset config has been received","file":"src/mongo/db/repl/repl_set_get_status_cmd.cpp","line":56}}
{"t":{"$date":"2021-09-08T18:04:31.033+00:00"},"s":"I",  "c":"COMMAND",  "id":51803,   "ctx":"conn74","msg":"Slow query","attr":{"type":"command","ns":"admin.$cmd","command":{"isMaster":1,"$db":"admin"},"numYields":0,"reslen":382,"locks":{"ReplicationStateTransition":{"acquireCount":{"w":2}},"Global":{"acquireCount":{"r":2}},"Database":{"acquireCount":{"r":2}},"Collection":{"acquireCount":{"r":2}},"Mutex":{"acquireCount":{"r":2}}},"protocol":"op_msg","durationMillis":0}}
{"t":{"$date":"2021-09-08T18:04:31.033+00:00"},"s":"I",  "c":"-",        "id":20700,   "ctx":"conn74","msg":"note: not profiling because db went away for namespace","attr":{"namespace":"admin.$cmd"}}
{"t":{"$date":"2021-09-08T18:04:31.033+00:00"},"s":"D1", "c":"QUERY",    "id":22790,   "ctx":"conn74","msg":"Received interrupt request for unknown op","attr":{"opId":10602}}

cdb-rs0-0                                         3/3     Running     0          51m
cdb-rs0-1                                         3/3     Running     0          176m
cdb-rs0-2                                         3/3     Running     0          166m
cdb-rs0-3                                         3/3     Running     0          152m
cdb-rs0-4                                         3/3     Running     0          131m
cdb2-rs2-0                                        3/3     Running     1          7m8s
cdb2-rs2-1                                        3/3     Running     1          6m34s
cdb2-rs2-2                                        3/3     Running     1          6m11s

@Sergey_Pronin From old community posts Single percona-server-mongodb-operator deployment watching all namespaces for CRD PerconaServerMongoDB i saw you mentioned it’s possible to run multiple clusters with single operator in single namespace. Let me know if it works with latest version of operator ? and how can we achieve it.

~Adithya

1 Like