Comment #1 on issue 267 by simon.de...@gmail.com: ganeti-noded binds to
0.0.0.0 after re-adding a node in the cluster even if told otherwise
http://code.google.com/p/ganeti/issues/detail?id=267
The problematic function appears to be SetupNodeDaemon() from
/usr/share/pyshared/ganeti/bootstrap.py:
def SetupNodeDaemon(cluster_name, node, ssh_key_check):
...
family = ssconf.SimpleStore().GetPrimaryIPFamily()
sshrunner = ssh.SshRunner(cluster_name,
ipv6=(family == netutils.IP6Address.family))
bind_address = constants.IP4_ADDRESS_ANY
if family == netutils.IP6Address.family:
bind_address = constants.IP6_ADDRESS_ANY
# set up inter-node password and certificate and restarts the node daemon
# and then connect with ssh to set password and start ganeti-noded
# note that all the below variables are sanitized at this point,
# either by being constants or by the checks above
sshrunner.CopyFileToNode(node, constants.NODED_CERT_FILE)
sshrunner.CopyFileToNode(node, constants.RAPI_CERT_FILE)
sshrunner.CopyFileToNode(node, constants.CONFD_HMAC_KEY)
mycommand = ("%s stop-all; %s start %s -b %s" %
(constants.DAEMON_UTIL, constants.DAEMON_UTIL,
constants.NODED,
utils.ShellQuote(bind_address)))
...