mongolab / mongoctl

Manage MongoDB servers and replica sets using JSON configurations!
MIT License
178 stars 25 forks source link

Error when removing a node that is no longer dns-mapped #47

Closed abdulito closed 6 years ago

abdulito commented 6 years ago

Make it possible to remove a node that is no longer DNS-mapped when the node is no longer in the cluster config.

  File "/usr/local/lib/python2.7/dist-packages/mongoctl/utils.py", line 275, in is_same_address

    return (is_same_host(hostport1[0], hostport2[0]) and

  File "/usr/local/lib/python2.7/dist-packages/mongoctl/utils.py", line 263, in is_same_host

    ips2 = get_host_ips(host2)

  File "/usr/local/lib/python2.7/dist-packages/mongoctl/utils.py", line 298, in get_host_ips

    raise MongoctlException("Invalid host '%s'. Cause: %s" % (host, e))

MongoctlException: Invalid host 'foo.bar.com'. Cause: [Errno -2] Name or service not known