[SERVER-11664] Fix IPv6 address parsing Created: 12/Nov/13  Updated: 10/Dec/14  Resolved: 17/Jun/14

Status: Closed
Project: Core Server
Component/s: Networking, Replication
Affects Version/s: 2.4.8
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Katrin Gersten [X] Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: ipv6
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian squeeze / Debian wheezy


Issue Links:
Duplicate
duplicates SERVER-5436 IPv6 address ambiguity in HostPort sy... Closed
Related
is related to SERVER-9612 Mongos not parsing correctly IPV6 add... Closed
Operating System: Linux
Steps To Reproduce:
  • create server, configure bind_ip to be an IPv6 address, set ipv6 = true in config
  • connect to mongo shell, create replica set configuration with ipv6 addresses and ports
Participants:

 Description   

I have clean servers that should run on ipv6 only. I have enabled ipv6 in config as follows:

ipv6 = true
bind_ip = 2a01:2a01:2a01:2a01::2
port = 63333

now I try to create a replica set as follows:

> config = {
    _id: "rs0", 
    members:[
        {_id: 0, host: "[2a01:2a01:2a01:2a01::2]:63333"}, 
        {_id: 1, host: "[2a01:2a01:2a01:2a01::3]:63333"},
        {_id: 2, host: "[2a01:2a01:2a01:2a01::4]:63333"}
]}
> rs.initiate(config)
{
        "ok" : 0,
        "errmsg" : "couldn't initiate : can't find self in the replset config my port: 63333"
}

I don't want to use DNS ans I don't want to use /etc/hosts.



 Comments   
Comment by Eric Milkie [ 17/Jun/14 ]

dup of SERVER-5436, follow that ticket for updates.

Generated at Thu Feb 08 03:26:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.