[SERVER-40956] rs.initiate it failed with HostUnreachable Created: 02/May/19  Updated: 07/May/19  Resolved: 07/May/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 3.4.9
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: systemk8 Assignee: Danny Hatcher (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File mongo-replication-replica.yaml    
Operating System: ALL
Participants:

 Description   

I have executed the mongo as statefulset with 3 replicaset and created successfully in ICP environment

When I exected the rs.initiate it failed with HostUnreachable

Please find my attached docker file 

rs.initiate(
...

{ ... _id: "rs0", ... version: 1, ... members: [ ... \{ _id: 0, host : "mongo-0:27017" }

,
... { _id: 1, host : "mongo-1:27017" },
... { _id: 2, host : "mongo-2:27017" }
... ]
... }
... )
{
"ok" : 0,
"errmsg" : "replSetInitiate quorum check failed because not all proposed set members responded affirmatively: mongo-1:27017 failed with HostUnreachable, mongo-2:27017 failed with HostUnreachable",
"code" : 74,
"codeName" : "NodeNotFound"



 Comments   
Comment by Danny Hatcher (Inactive) [ 07/May/19 ]

Please note that the SERVER project is for bugs and feature requests. This appears to be an issue either with your Docker or Kubernetes environments and we are not experts on those technologies. If you need assistance troubleshooting, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag.

Comment by systemk8 [ 05/May/19 ]

can we get any update pls

Comment by systemk8 [ 02/May/19 ]

ICP environment is kubernetes 

And try with adding but no luck 

command:

  • mongod
  • "--replSet"
  • rs0
  • "--bind_ip"
  • 0.0.0.0
  • "--smallfiles"
  • "--noprealloc"
Generated at Thu Feb 08 04:56:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.