diff options
author | Steven Hardy <shardy@redhat.com> | 2016-12-01 10:02:56 +0000 |
---|---|---|
committer | Oliver Walsh <owalsh@redhat.com> | 2017-02-14 23:23:33 +0000 |
commit | 5353f1c7c9cd4408d10745206165aa4950ad76c6 (patch) | |
tree | 33491049097ce6ecc2538ea2499a045c324a2153 /puppet/services/nova-compute.yaml | |
parent | be6a66042e14abfc3a1b649ed144bb755c750424 (diff) |
Add nova service support for composable upgrades
Co-Authored-By: Mathieu Bultel <mbultel@redhat.com>
Co-Authored-By: Oliver Walsh <owalsh@redhat.com>
Change-Id: Iafad800a6819d7e75fdaab60d328999d3d3c037f
Partially-Implements: blueprint overcloud-upgrades-per-service
Related-Bug: #1662344
Diffstat (limited to 'puppet/services/nova-compute.yaml')
-rw-r--r-- | puppet/services/nova-compute.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/puppet/services/nova-compute.yaml b/puppet/services/nova-compute.yaml index f7484da2..9923e833 100644 --- a/puppet/services/nova-compute.yaml +++ b/puppet/services/nova-compute.yaml @@ -75,6 +75,10 @@ parameters: default: tag: openstack.nova.compute path: /var/log/nova/nova-compute.log + UpgradeLevelNovaCompute: + type: string + description: Nova Compute upgrade level + default: auto resources: NovaBase: @@ -146,3 +150,19 @@ outputs: tripleo.collectd.plugins.nova_compute: - virt collectd::plugins::virt::connection: "qemu:///system" + upgrade_tasks: + - name: Stop nova-compute service + tags: step2 + service: name=openstack-nova-compute state=stopped + # If not already set by puppet (e.g a pre-ocata version), set the + # upgrade_level for compute to "auto" + - name: Set compute upgrade level to auto + tags: step3 + ini_file: + str_replace: + template: "dest=/etc/nova/nova.conf section=upgrade_levels option=compute value=LEVEL" + params: + LEVEL: {get_param: UpgradeLevelNovaCompute} + - name: Start nova-compute service + tags: step6 + service: name=openstack-nova-compute state=started |