From 3922da72b2569976f25183c476cedcc17d32fa13 Mon Sep 17 00:00:00 2001 From: david martin Date: Thu, 2 May 2013 16:33:22 -0500 Subject: Adds --addn-hosts to the dnsmasq arg list When using multi_host=True and update_dns_entries=True, dns records from other compute hosts were not able to be resolved. The --addn-host arg was constructed but not appended to the cmd list. Change-Id: I9cafb59256e92bdad0df3e9166e0afd079ae0c09 Fixes: bug #1170529 --- nova/network/linux_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py index 2daaacc7c..fad51dbe1 100644 --- a/nova/network/linux_net.py +++ b/nova/network/linux_net.py @@ -1054,7 +1054,7 @@ def restart_dhcp(context, dev, network_ref): if network_ref['multi_host'] or dns_servers: cmd.append('--no-hosts') if network_ref['multi_host']: - '--addn-hosts=%s' % _dhcp_file(dev, 'hosts') + cmd.append('--addn-hosts=%s' % _dhcp_file(dev, 'hosts')) if dns_servers: cmd.append('--no-resolv') for dns_server in dns_servers: -- cgit