diff --git a/packstack/plugins/neutron_350.py b/packstack/plugins/neutron_350.py index e82e85009..f13fa9d78 100644 --- a/packstack/plugins/neutron_350.py +++ b/packstack/plugins/neutron_350.py @@ -414,7 +414,7 @@ def get_values(val): return [x.strip() for x in val.split(',')] if val else [] def createL2AgentManifests(config): - global compute_hosts, dhcp_host, l3_hosts + global api_hosts, compute_hosts, dhcp_host, l3_hosts if controller.CONF["CONFIG_NEUTRON_L2_PLUGIN"] == "openvswitch": host_var = 'CONFIG_NEUTRON_OVS_HOST' @@ -440,7 +440,7 @@ def createL2AgentManifests(config): # Install l2 agents on every compute host in addition to any hosts listed # specifically for the l2 agent - for host in compute_hosts | dhcp_hosts | l3_hosts: + for host in api_hosts | compute_hosts | dhcp_hosts | l3_hosts: controller.CONF[host_var] = host manifestfile = "%s_neutron.pp" % (host,) manifestdata = getManifestTemplate(template_name)