diff options
author | Steven Hardy <shardy@redhat.com> | 2016-12-01 10:01:42 +0000 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2017-01-12 09:51:47 +0000 |
commit | 9245880ae439ee296b83c4f3a8967bb9ac1a8ecc (patch) | |
tree | 18140c6fd0cfbfd44b4e11e55818c0afd22f8706 /puppet/services | |
parent | 3243a1ab275648a17c98f47735a4490b59478d1e (diff) |
Add glance service support for composable upgrades
Change-Id: I730abee756598c0a23209a53e52cc83e0b815a50
Partially-Implements: blueprint overcloud-upgrades-per-service
Diffstat (limited to 'puppet/services')
-rw-r--r-- | puppet/services/glance-api.yaml | 10 | ||||
-rw-r--r-- | puppet/services/glance-registry.yaml | 7 |
2 files changed, 17 insertions, 0 deletions
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 |