Comment 2 for bug 1489053

Revision history for this message
Matt Rae (mattrae) wrote :

The patch for this bug appears to be related to this problem:
https://bugs.launchpad.net/charms/+source/rabbitmq-server/+bug/1378263

18 + ip_addr = get_host_ip(unit_get('private-address'))
19 + try:
20 + nodename = get_hostname(ip_addr, fqdn=False)
21 + except:
22 + log('Cannot resolve hostname for %s using DNS servers' % ip_addr)
23 + log('Falling back to use socket.gethostname()')
24 + #If the private-address is not resolvable using DNS
25 + # then use the current hostname
26 + nodename = socket.gethostname()