Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11664

Fix IPv6 address parsing

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.8
    • Component/s: Networking, Replication
    • Labels:
    • Environment:
      Debian squeeze / Debian wheezy
    • Linux
      • 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

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            KatrinGersten Katrin Gersten [X]
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: