summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavid martin <dmartls1@gmail.com>2013-05-02 16:33:22 -0500
committerdavid martin <dmartls1@gmail.com>2013-05-02 16:33:22 -0500
commit3922da72b2569976f25183c476cedcc17d32fa13 (patch)
tree59f7ee9dfb45b56cb3e8708d5cdc077425c1669d
parent8bb1cc2f82b0d1dcfb08777537584e5f574ae439 (diff)
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
-rw-r--r--nova/network/linux_net.py2
1 files changed, 1 insertions, 1 deletions
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: