Dear Percona Team,
I am facing an issue while using the Percona MongoDB Operator 1.14.0. I have installed the operator in cluster-wide mode in OpenShift according to cluster-wide and openshift documentation. Installed by updating namespace
, WATCH_NAMESPACE
values and applying oc create -f cw-bundle.yaml
.
- name: WATCH_NAMESPACE
value: 'test-psmdb-ns1,test-psmdb-ns2'
However, the pods that the operator is bringing up in the watched namespace are unable to transition into the ready state:
NAME READY STATUS RESTARTS AGE
minimal-cluster-cfg-0 1/1 Running 122 (7m21s ago) 10h
minimal-cluster-mongos-0 0/1 Running 2 (10h ago) 10h
minimal-cluster-rs0-0 1/1 Running 122 (7m21s ago) 10h
mongo-dev-cfg-0 0/1 CrashLoopBackOff 111 (108s ago) 9h
mongo-dev-mongos-0 0/1 Running 0 9h
mongo-dev-rs0-0 0/1 CrashLoopBackOff 111 (108s ago) 9h
and within the following error:
{"t":{"$date":"2023-04-06T23:25:37.100+00:00"},"s":"I", "c":"-", "id":4333222, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM received error response","attr":{"host":"minimal-cluster-cfg-0.minimal-cluster-cfg.test-psmdb-ns1.svc.cluster.local:27017","error":"HostUnreachable: Error connecting to minimal-cluster-cfg-0.minimal-cluster-cfg.test-psmdb-ns1.svc.cluster.local:27017 :: caused by :: Could not find address for minimal-cluster-cfg-0.minimal-cluster-cfg.test-psmdb-ns1.svc.cluster.local:27017: SocketException: Host not found (authoritative)","replicaSet":"cfg","response":{}}}
{"t":{"$date":"2023-04-06T23:25:37.100+00:00"},"s":"I", "c":"NETWORK", "id":4712102, "ctx":"ReplicaSetMonitor-TaskExecutor","msg":"Host failed in replica set","attr":{"replicaSet":"cfg","host":"minimal-cluster-cfg-0.minimal-cluster-cfg.test-psmdb-ns1.svc.cluster.local:27017","error":{"code":6,"codeName":"HostUnreachable","errmsg":"Error connecting to minimal-cluster-cfg-0.minimal-cluster-cfg.test-psmdb-ns1.svc.cluster.local:27017 :: caused by :: Could not find address for minimal-cluster-cfg-0.minimal-cluster-cfg.test-psmdb-ns1.svc.cluster.local:27017: SocketException: Host not found (authoritative)"},"action":{"dropConnections":true,"requestImmediateCheck":false,"outcome":{"host":"minimal-cluster-cfg-0.minimal-cluster-cfg.test-psmdb-ns1.svc.cluster.local:27017","success":false,"errorMessage":"HostUnreachable: Error connecting to minimal-cluster-cfg-0.minimal-cluster-cfg.test-psmdb-ns1.svc.cluster.local:27017 :: caused by :: Could not find address for minimal-cluster-cfg-0.minimal-cluster-cfg.test-psmdb-ns1.svc.cluster.local:27017: SocketException: Host not found (authoritative)"}}}}
In the operator’s namespace, MongoDB is launching successfully and transitioning into the ready state.
NAME READY STATUS RESTARTS AGE
mongo-dev-cfg-0 1/1 Running 0 10h
mongo-dev-mongos-0 1/1 Running 0 10h
mongo-dev-rs0-0 1/1 Running 0 10h
percona-server-mongodb-operator-5445fd995f-5ldc8 1/1 Running 0 11h
Additional log files --tail=20
operator-ns.txt (27.0 KB)
user-ns.txt (15.3 KB)
Could you please help me to investigate this?
Thanks in advance!