diff options
author | Oliver Walsh <owalsh@redhat.com> | 2017-02-20 14:10:45 -0500 |
---|---|---|
committer | Emilien Macchi <emilien@redhat.com> | 2017-02-20 17:14:32 -0500 |
commit | 9014197a7a1af563fcee81e45b547747c6cea492 (patch) | |
tree | aa1f1bf6a066f703d96e6f1677e4fdeaf3ac0d08 /puppet | |
parent | 0d348d1777ef9cfcba74d0767790ea7f5cdeeed7 (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
(cherry picked from commit 10ba1fa6068978d5779da4b3c6966d73e893a7e5)
Diffstat (limited to 'puppet')
-rw-r--r-- | puppet/services/nova-api.yaml | 6 |
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 |