[gnuoy, r=james-page] Set os release on configs after upgrade to ensure the correct templates are used. Fix unrelated amulet test
This commit is contained in:
commit
a9bf26be2f
@ -747,6 +747,7 @@ def do_openstack_upgrade(configs):
|
||||
fatal=True, dist=True)
|
||||
apt_install(get_early_packages(), fatal=True)
|
||||
apt_install(get_packages(), fatal=True)
|
||||
configs.set_release(openstack_release=new_os_rel)
|
||||
configs.write_all()
|
||||
|
||||
|
||||
|
@ -421,20 +421,19 @@ class NeutronGatewayBasicDeployment(OpenStackAmuletDeployment):
|
||||
expected = {
|
||||
'db_host': u.valid_ip,
|
||||
'private-address': u.valid_ip,
|
||||
'password': u.not_null
|
||||
'password': u.not_null,
|
||||
'allowed_units': u.not_null,
|
||||
}
|
||||
|
||||
if self._get_openstack_release() == self.precise_icehouse:
|
||||
# Precise
|
||||
expected['allowed_units'] = 'nova-cloud-controller/0 neutron-api/0'
|
||||
else:
|
||||
# Not Precise
|
||||
expected['allowed_units'] = 'neutron-api/0'
|
||||
|
||||
ret = u.validate_relation_data(unit, relation, expected)
|
||||
if ret:
|
||||
message = u.relation_error('mysql shared-db', ret)
|
||||
amulet.raise_status(amulet.FAIL, msg=message)
|
||||
relation_data = unit.relation(relation[0], relation[1])
|
||||
allowed_units = relation_data['allowed_units'].split()
|
||||
if 'neutron-api/0' not in allowed_units:
|
||||
message = 'neutron-api/0 not found in allowed_units'
|
||||
amulet.raise_status(amulet.FAIL, msg=message)
|
||||
|
||||
def test_208_neutron_api_amqp_relation(self):
|
||||
"""Verify the neutron-api to rabbitmq-server amqp relation data"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user