Fix order in UPGRADE_SERVICES

This commit is contained in:
Liam Young
2020-02-04 13:33:28 +00:00
parent 501c26bf94
commit ee21886a8c
2 changed files with 10 additions and 18 deletions

13
test.py
View File

@@ -1,13 +0,0 @@
#!/usr/bin/env python3
from zaza.openstack.utilities import (
cli as cli_utils,
openstack as openstack_utils,
openstack_upgrade as upgrade_utils,
)
applications = []
for group in ['Core Identity', 'Storage', 'Control Plane', 'Compute']:
applications.extend(upgrade_utils.SERVICE_GROUPS[group])
print(applications)

View File

@@ -108,18 +108,23 @@ CHARM_TYPES = {
'origin_setting': 'openstack-origin'
},
}
# Older tests use the order the services appear in the list to imply
# they shoould be upgraded in. This approache has been superceded and
# zaza.openstack.utilities.openstack_upgrade.get_upgrade_groups should be used
# instead
UPGRADE_SERVICES = [
{'name': 'keystone', 'type': CHARM_TYPES['keystone']},
{'name': 'nova-cloud-controller', 'type': CHARM_TYPES['nova']},
{'name': 'nova-compute', 'type': CHARM_TYPES['nova']},
{'name': 'neutron-api', 'type': CHARM_TYPES['neutron']},
{'name': 'neutron-gateway', 'type': CHARM_TYPES['neutron']},
{'name': 'nova-cloud-controller', 'type': CHARM_TYPES['nova']},
{'name': 'glance', 'type': CHARM_TYPES['glance']},
{'name': 'cinder', 'type': CHARM_TYPES['cinder']},
{'name': 'openstack-dashboard',
'type': CHARM_TYPES['openstack-dashboard']},
{'name': 'neutron-gateway', 'type': CHARM_TYPES['neutron']},
{'name': 'ceilometer', 'type': CHARM_TYPES['ceilometer']},
{'name': 'designate', 'type': CHARM_TYPES['designate']},
{'name': 'nova-compute', 'type': CHARM_TYPES['nova']},
{'name': 'openstack-dashboard',
'type': CHARM_TYPES['openstack-dashboard']},
]