Skip to content

No host described in new configuration with maps to this node #1984

@dobesv

Description

@dobesv

Report

Trying to get up and running with a new cluster, it seems I have somehow gotten past the prior issue but now it complains that the replica list it is provided in invalid. I think the issue might be that the replica information it is provided has the node's IP address in it instead of the pod's.

More about the problem

{"t":{"$date":"2025-06-27T23:43:03.860+00:00"},"s":"E",  "c":"REPL",     "id":21425,   "ctx":"ReplCoord-0","msg":"replSetInitiate error while validating config","attr":{"error":{"code":74,"codeName":"NodeNotFound","errmsg":"No host described in new configuration with {version: 1, term: 0} for replica set rs-stagingdb-0 maps to this node"},"config":{"_id":"rs-stagingdb-0","version":1,"members":[{"_id":0,"host":"172.22.68.243:31623","arbiterOnly":false,"buildIndexes":true,"hidden":false,"priority":2,"tags":{"nodeName":"i-0215d5a003c7459f1","podName":"stagingdb-rs-stagingdb-0-0","serviceName":"stagingdb"},"votes":1}]}}}

Pod IP is 100.109.142.143 and node IPs are InternalIP: 172.22.68.243 ExternalIP: 18.208.207.220

Steps to reproduce

Versions

  1. Kubernetes v1.30.12
  2. Operator v1.20.1
  3. Database mongodb

Anything else?

Likely this is caused by some mistake we have made, but the operator isn't doing a good job of detecting and reporting that mistake.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions