Add heat service support for composable upgrades
authorSteven Hardy <shardy@redhat.com>
Thu, 1 Dec 2016 10:04:09 +0000 (10:04 +0000)
committerSteven Hardy <shardy@redhat.com>
Fri, 13 Jan 2017 14:10:55 +0000 (14:10 +0000)
Change-Id: Idbbff1e7b3947a8a381ddae172006d724a98a344
Partially-Implements: blueprint overcloud-upgrades-per-service

puppet/services/heat-api-cfn.yaml
puppet/services/heat-api-cloudwatch.yaml
puppet/services/heat-api.yaml
puppet/services/heat-engine.yaml

index 10a7780..f4d3cad 100644 (file)
@@ -84,3 +84,11 @@ outputs:
               heat::keystone::auth_cfn::admin_url: {get_param: [EndpointMap, HeatCfnAdmin, uri]}
               heat::keystone::auth_cfn::password: {get_param: HeatPassword}
               heat::keystone::auth_cfn::region: {get_param: KeystoneRegion}
+      upgrade_tasks:
+        - name: Stop heat_api_cfn service
+          tags: step2
+          service: name=openstack-heat-api-cfn state=stopped
+        - name: Start heat_api_cfn service
+          tags: step6
+          service: name=openstack-heat-api-cfn state=started
+
index 1178d62..ba4a287 100644 (file)
@@ -66,3 +66,10 @@ outputs:
             heat::api_cloudwatch::bind_host: {get_param: [ServiceNetMap, HeatApiNetwork]}
       step_config: |
         include ::tripleo::profile::base::heat::api_cloudwatch
+      upgrade_tasks:
+        - name: Stop heat_api_cloudwatch service
+          tags: step2
+          service: name=openstack-heat-api-cloudwatch state=stopped
+        - name: Start heat_api_cloudwatch service
+          tags: step6
+          service: name=openstack-heat-api state=started
index a32521c..7ec9d6d 100644 (file)
@@ -84,3 +84,10 @@ outputs:
               heat::keystone::auth::admin_url: {get_param: [EndpointMap, HeatAdmin, uri]}
               heat::keystone::auth::password: {get_param: HeatPassword}
               heat::keystone::auth::region: {get_param: KeystoneRegion}
+      upgrade_tasks:
+        - name: Stop heat_api service
+          tags: step2
+          service: name=openstack-heat-api state=stopped
+        - name: Start heat_api service
+          tags: step6
+          service: name=openstack-heat-api state=started
index 8faccd2..6efb065 100644 (file)
@@ -137,3 +137,13 @@ outputs:
         keystone:
             # This is needed because the keystone profile handles creating the domain
             tripleo::profile::base::keystone::heat_admin_password: {get_param: HeatStackDomainAdminPassword}
+      upgrade_tasks:
+        - name: Stop heat_engine service
+          tags: step2
+          service: name=openstack-heat-engine state=stopped
+        - name: Sync heat_engine DB
+          tags: step5
+          command: heat-manage --config-file /etc/heat/heat.conf db_sync
+        - name: Start heat_engine service
+          tags: step6
+          service: name=openstack-heat-engine state=started