Merge pull request #169 from gnuoy/fix-upgrade-order

Fix order in UPGRADE_SERVICES
This commit is contained in:
Chris MacNaughton
2020-02-04 14:47:38 +01:00
committed by GitHub
2 changed files with 10 additions and 18 deletions
-13
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)
+10 -5
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
# the order they should be upgraded in. This approach 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']},
]