From 9245880ae439ee296b83c4f3a8967bb9ac1a8ecc Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Thu, 1 Dec 2016 10:01:42 +0000 Subject: Add glance service support for composable upgrades Change-Id: I730abee756598c0a23209a53e52cc83e0b815a50 Partially-Implements: blueprint overcloud-upgrades-per-service --- puppet/services/glance-api.yaml | 10 ++++++++++ puppet/services/glance-registry.yaml | 7 +++++++ 2 files changed, 17 insertions(+) (limited to 'puppet') diff --git a/puppet/services/glance-api.yaml b/puppet/services/glance-api.yaml index 36df724b..0a7c90e1 100644 --- a/puppet/services/glance-api.yaml +++ b/puppet/services/glance-api.yaml @@ -109,3 +109,13 @@ outputs: include ::tripleo::profile::base::glance::api service_config_settings: get_attr: [GlanceBase, role_data, service_config_settings] + upgrade_tasks: + - name: Stop glance_api service + tags: step2 + service: name=openstack-glance-api state=stopped + - name: Sync glance_api DB + tags: step5 + command: glance-manage --config-file=/etc/glance/glance-api.conf db_sync + - name: Start glance_api service + tags: step6 + service: name=openstack-glance-api state=started diff --git a/puppet/services/glance-registry.yaml b/puppet/services/glance-registry.yaml index 1f7e6e3d..914c1584 100644 --- a/puppet/services/glance-registry.yaml +++ b/puppet/services/glance-registry.yaml @@ -100,3 +100,10 @@ outputs: include ::tripleo::profile::base::glance::registry service_config_settings: get_attr: [GlanceBase, role_data, config_settings] + upgrade_tasks: + - name: Stop glance_registry service + tags: step2 + service: name=openstack-glance-registry state=stopped + - name: Start glance_registry service + tags: step6 + service: name=openstack-glance-registry state=started -- cgit 1.2.3-korg