Add upgrade support for CephRGW service
authorGiulio Fidente <gfidente@redhat.com>
Fri, 20 Jan 2017 16:32:17 +0000 (17:32 +0100)
committerGiulio Fidente <gfidente@redhat.com>
Thu, 26 Jan 2017 16:12:42 +0000 (16:12 +0000)
Implements minor upgrade of the ceph-radosgw service.

Change-Id: I4c064bf996ec6bb7eba41ab6384bd953a8ec920f
Partially-Implements: blueprint overcloud-upgrades-per-service

puppet/services/ceph-rgw.yaml

index 9253699..83339f2 100644 (file)
@@ -77,3 +77,14 @@ outputs:
           ceph::rgw::keystone::auth::tenant: service
           ceph::rgw::keystone::auth::user: swift
           ceph::rgw::keystone::auth::password: {get_param: SwiftPassword}
+      upgrade_tasks:
+        - name: Gather RGW instance ID
+          tags: step0
+          shell: hiera -c /etc/puppet/hiera.yaml ceph::profile::params::rgw_name radosgw.gateway
+          register: rgw_id
+        - name: Check status
+          shell: /usr/bin/systemctl show ceph-radosgw@{{rgw_id.stdout}} --property ActiveState | grep '\bactive\b'
+          tags: step0,validation
+        - name: Stop RGW instance
+          tags: step1
+          service: name=ceph-radosgw@{{rgw_id.stdout}} state=stopped