Support for resolving hostnames to IPv6 addresses
authorManuel Franceschini <livewire@google.com>
Wed, 28 Jul 2010 13:41:22 +0000 (15:41 +0200)
committerManuel Franceschini <livewire@google.com>
Wed, 18 Aug 2010 08:27:20 +0000 (10:27 +0200)
commitb705c7a61b3e3ba5d6a93c83380b66c4b1fd7890
treecb094c06a1ea5f4d56cb138d6616b1f4b563a5ab
parenteb202c13c90f61903edd8aba8e237d9500e58ae5
Support for resolving hostnames to IPv6 addresses

This patch enables IPv6 name resolution by using socket.getaddrinfo
instead of socket.gethostbyname_ex.

It renames the HostInfo class to Hostname and unifies its use throughout
the code. This is achieved by using static calls where no object is
needed and removes some obsolete code.

For now, we just resolve to IPv4 addresses, but this will change once it
is needed.

Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
20 files changed:
daemons/ganeti-masterd
daemons/ganeti-watcher
daemons/import-export
lib/backend.py
lib/bootstrap.py
lib/cli.py
lib/cmdlib.py
lib/config.py
lib/jqueue.py
lib/masterd/instance.py
lib/netutils.py
lib/rpc.py
lib/ssconf.py
lib/utils.py
scripts/gnt-node
test/ganeti.backend_unittest.py
test/ganeti.config_unittest.py
test/ganeti.netutils_unittest.py
test/ganeti.rpc_unittest.py
test/mocks.py