Stop nova-api before upgrading package
authorOliver Walsh <owalsh@redhat.com>
Mon, 20 Feb 2017 19:10:45 +0000 (14:10 -0500)
committerOliver Walsh <owalsh@redhat.com>
Mon, 20 Feb 2017 19:14:22 +0000 (14:14 -0500)
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

puppet/services/nova-api.yaml

index d18b5b4..0adefec 100644 (file)
@@ -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