summaryrefslogtreecommitdiffstats
path: root/puppet/services
diff options
context:
space:
mode:
authorOliver Walsh <owalsh@redhat.com>2017-02-20 14:10:45 -0500
committerOliver Walsh <owalsh@redhat.com>2017-02-20 14:14:22 -0500
commit10ba1fa6068978d5779da4b3c6966d73e893a7e5 (patch)
tree92d3b605a2b680391f92e82b5f4e12df5fc9fc2f /puppet/services
parent435d2709860bf7044be860354d7d31cf6d43af6c (diff)
Stop nova-api before upgrading package
If the service is running then the rpm upgrade will attempt to restart. Ensuring the service is stopped before upgrade should resolve this. Change-Id: I4179cb773616721640490d26082eacac45f92dff Closes-Bug: 1665717
Diffstat (limited to 'puppet/services')
-rw-r--r--puppet/services/nova-api.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/puppet/services/nova-api.yaml b/puppet/services/nova-api.yaml
index d18b5b48..0adefecd 100644
--- a/puppet/services/nova-api.yaml
+++ b/puppet/services/nova-api.yaml
@@ -194,12 +194,12 @@ outputs:
tags: step0,pre-upgrade
when: is_bootstrap_node
command: nova-manage db online_data_migrations
- - name: update nova api
- tags: step2
- yum: name=openstack-nova-api state=latest
- name: Stop and disable nova_api service (pre-upgrade not under httpd)
tags: step2
service: name=openstack-nova-api state=stopped enabled=no
+ - name: update nova api
+ tags: step2
+ yum: name=openstack-nova-api state=latest
- name: Create puppet manifest to set transport_url in nova.conf
tags: step5
when: is_bootstrap_node