Merge "load interface_driver using a symbolic name"

This commit is contained in:
Zuul 2018-07-16 16:01:04 +00:00 committed by Gerrit Code Review
commit 0749639bc7
3 changed files with 26 additions and 3 deletions

View File

@ -7,7 +7,7 @@
[DEFAULT]
state_path = /var/lib/neutron
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
interface_driver = openvswitch
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

View File

@ -0,0 +1,13 @@
###############################################################################
# [ WARNING ]
# Configuration file maintained by Juju. Local changes may be overwritten.
# {{ restart_trigger_l3agent }}
###############################################################################
[DEFAULT]
interface_driver = openvswitch
agent_mode = {{ agent_mode }}
{% if external_configuration_new -%}
gateway_external_network_id =
external_network_bridge =
{% endif %}

View File

@ -268,7 +268,7 @@ class NeutronOVSBasicDeployment(OpenStackAmuletDeployment):
conf = "/etc/neutron/plugins/ml2/ml2_conf.ini"
for value in vpair:
self.d.configure(service, {charm_key: value})
self._wait_and_check()
self._wait_and_check(sleep=60)
ret = u.validate_config_data(unit, conf, section,
{config_file_key: value})
msg = "Propagation error, expected %s=%s" % (config_file_key,
@ -365,11 +365,21 @@ class NeutronOVSBasicDeployment(OpenStackAmuletDeployment):
set_alternate = {'enable-qos': 'True'}
self.d.configure('neutron-api', set_alternate)
self._wait_and_check()
qos_plugin = 'qos'
config = u._get_config(
self.neutron_api_sentry, '/etc/neutron/neutron.conf')
service_plugins = config.get(
'DEFAULT',
'service_plugins').split(',')
if qos_plugin not in service_plugins:
message = "{} not in service_plugins".format(qos_plugin)
amulet.raise_status(amulet.FAIL, msg=message)
config = u._get_config(
unit,
'/etc/neutron/plugins/ml2/openvswitch_agent.ini')
extensions = config.get('agent', 'extensions').split(',')
if 'qos' not in extensions:
if qos_plugin not in extensions:
message = "qos not in extensions"
amulet.raise_status(amulet.FAIL, msg=message)