Update amulet tests for mitaka
This commit is contained in:
@@ -160,6 +160,12 @@ class NeutronOVSBasicDeployment(OpenStackAmuletDeployment):
|
||||
self.neutron_api_sentry: ['neutron-server'],
|
||||
}
|
||||
|
||||
if self._get_openstack_release() >= self.trusty_mitaka:
|
||||
services[self.compute_sentry] = [
|
||||
'nova-compute',
|
||||
'neutron-openvswitch-agent'
|
||||
]
|
||||
|
||||
ret = u.validate_services_by_name(services)
|
||||
if ret:
|
||||
amulet.raise_status(amulet.FAIL, msg=ret)
|
||||
@@ -218,6 +224,9 @@ class NeutronOVSBasicDeployment(OpenStackAmuletDeployment):
|
||||
|
||||
# Needs love - test actions not clear in log
|
||||
unit = self.compute_sentry
|
||||
if self._get_openstack_release() >= self.trusty_mitaka:
|
||||
conf = "/etc/neutron/plugins/ml2/openvswitch_agent.ini"
|
||||
else:
|
||||
conf = "/etc/neutron/plugins/ml2/ml2_conf.ini"
|
||||
for value in vpair:
|
||||
self.d.configure(service, {charm_key: value})
|
||||
@@ -253,6 +262,9 @@ class NeutronOVSBasicDeployment(OpenStackAmuletDeployment):
|
||||
|
||||
# Needs love - not idempotent
|
||||
unit = self.compute_sentry
|
||||
if self._get_openstack_release() >= self.trusty_mitaka:
|
||||
conf = "/etc/neutron/plugins/ml2/openvswitch_agent.ini"
|
||||
else:
|
||||
conf = "/etc/neutron/plugins/ml2/ml2_conf.ini"
|
||||
self.d.configure('neutron-api', {'neutron-security-groups': 'True'})
|
||||
self.d.configure('neutron-openvswitch',
|
||||
|
||||
Reference in New Issue
Block a user