Put service stop at step1 and quiesce at step2.
authorSofer Athlan-Guyot <sathlang@redhat.com>
Fri, 24 Feb 2017 21:31:29 +0000 (22:31 +0100)
committerSofer Athlan-Guyot <sathlang@redhat.com>
Tue, 28 Feb 2017 18:20:13 +0000 (19:20 +0100)
In the previous release[1], the services were stopped before the
pacemaker services, so that they get a chance to send last message to
the database/rabbitmq queue:

Let's do the upgrade in the same order.

[1] https://github.com/openstack/tripleo-heat-templates/blob/stable/newton/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh#L13-L71

Change-Id: I1c4045e8b9167396c9dfa4da99973102f1af1218

49 files changed:
puppet/services/README.rst
puppet/services/aodh-api.yaml
puppet/services/aodh-evaluator.yaml
puppet/services/aodh-listener.yaml
puppet/services/aodh-notifier.yaml
puppet/services/ceilometer-agent-central.yaml
puppet/services/ceilometer-agent-compute.yaml
puppet/services/ceilometer-agent-notification.yaml
puppet/services/ceilometer-api.yaml
puppet/services/ceilometer-collector.yaml
puppet/services/cinder-api.yaml
puppet/services/cinder-scheduler.yaml
puppet/services/cinder-volume.yaml
puppet/services/congress.yaml
puppet/services/disabled/glance-registry.yaml
puppet/services/glance-api.yaml
puppet/services/gnocchi-api.yaml
puppet/services/gnocchi-metricd.yaml
puppet/services/gnocchi-statsd.yaml
puppet/services/haproxy.yaml
puppet/services/heat-api-cfn.yaml
puppet/services/heat-api-cloudwatch.yaml
puppet/services/heat-api.yaml
puppet/services/heat-engine.yaml
puppet/services/horizon.yaml
puppet/services/ironic-api.yaml
puppet/services/ironic-conductor.yaml
puppet/services/keystone.yaml
puppet/services/logging/fluentd-client.yaml
puppet/services/metrics/collectd.yaml
puppet/services/monitoring/sensu-client.yaml
puppet/services/neutron-api.yaml
puppet/services/neutron-dhcp.yaml
puppet/services/neutron-l3.yaml
puppet/services/neutron-metadata.yaml
puppet/services/neutron-ovs-agent.yaml
puppet/services/nova-compute.yaml
puppet/services/nova-conductor.yaml
puppet/services/nova-consoleauth.yaml
puppet/services/nova-placement.yaml
puppet/services/nova-scheduler.yaml
puppet/services/nova-vnc-proxy.yaml
puppet/services/pacemaker.yaml
puppet/services/sahara-api.yaml
puppet/services/sahara-engine.yaml
puppet/services/snmp.yaml
puppet/services/swift-proxy.yaml
puppet/services/swift-storage.yaml
puppet/services/tacker.yaml

index 223c3ed..f19b6cc 100644 (file)
@@ -100,9 +100,22 @@ step, "step2" for the second, etc.
 
    Steps/tages correlate to the following:
 
-   1) Quiesce the control-plane, e.g disable LoadBalancer, stop pacemaker cluster
-
-   2) Stop all control-plane services, ready for upgrade
+   1) Stop all control-plane services.
+
+   2) Quiesce the control-plane, e.g disable LoadBalancer, stop
+      pacemaker cluster: this will stop the following resource:
+      - ocata:
+        - galera
+        - rabbit
+        - redis
+        - haproxy
+        - vips
+        - cinder-volumes
+        - cinder-backup
+        - manilla-share
+        - rbd-mirror
+
+      The exact order is controlled by the cluster constraints.
 
    3) Perform a package update and install new packages: A general
       upgrade is done, and only new package should go into service
index 4bd9fc4..d7c87b6 100644 (file)
@@ -87,5 +87,5 @@ outputs:
         get_attr: [ApacheServiceBase, role_data, metadata_settings]
       upgrade_tasks:
         - name: Stop aodh_api service (running under httpd)
-          tags: step2
+          tags: step1
           service: name=httpd state=stopped
index 56dbb55..900eb68 100644 (file)
@@ -45,5 +45,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-aodh-evaluator' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop aodh_evaluator service
-          tags: step2
+          tags: step1
           service: name=openstack-aodh-evaluator state=stopped
index 76db0ca..c5dc473 100644 (file)
@@ -45,5 +45,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-aodh-listener' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop aodh_listener service
-          tags: step2
+          tags: step1
           service: name=openstack-aodh-listener state=stopped
index 30c6763..3a22575 100644 (file)
@@ -45,5 +45,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-aodh-notifier' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop aodh_notifier service
-          tags: step2
+          tags: step1
           service: name=openstack-aodh-notifier state=stopped
index 9baca14..e611e02 100644 (file)
@@ -60,5 +60,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-ceilometer-central' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop ceilometer_agent_central service
-          tags: step2
+          tags: step1
           service: name=openstack-ceilometer-central state=stopped
index 21f5ce6..75c7cb3 100644 (file)
@@ -54,5 +54,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-ceilometer-compute' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop ceilometer_agent_compute service
-          tags: step2
+          tags: step1
           service: name=openstack-ceilometer-compute state=stopped
index 760acd6..429fe22 100644 (file)
@@ -54,5 +54,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-ceilometer-notification' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop ceilometer_agent_notification service
-          tags: step2
+          tags: step1
           service: name=openstack-ceilometer-notification state=stopped
index 741f8da..f5ee9d4 100644 (file)
@@ -94,5 +94,5 @@ outputs:
         get_attr: [ApacheServiceBase, role_data, metadata_settings]
       upgrade_tasks:
         - name: Stop ceilometer_api service (running under httpd)
-          tags: step2
+          tags: step1
           service: name=httpd state=stopped
index a219f9e..3dc3340 100644 (file)
@@ -64,5 +64,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-ceilometer-collector' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop ceilometer_collector service
-          tags: step2
+          tags: step1
           service: name=openstack-ceilometer-collector state=stopped
index bde3e04..52c4656 100644 (file)
@@ -154,14 +154,14 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-cinder-api' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: check for cinder running under apache (post upgrade)
-          tags: step2
+          tags: step1
           shell: "apachectl -t -D DUMP_VHOSTS | grep -q cinder"
           register: cinder_apache
           ignore_errors: true
         - name: Stop cinder_api service (running under httpd)
-          tags: step2
+          tags: step1
           service: name=httpd state=stopped
           when: "cinder_apache.rc == 0"
         - name: Stop and disable cinder_api service (pre-upgrade not under httpd)
-          tags: step2
+          tags: step1
           service: name=openstack-cinder-api state=stopped enabled=no
index f102810..63a4f16 100644 (file)
@@ -56,5 +56,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-cinder-scheduler' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop cinder_scheduler service
-          tags: step2
+          tags: step1
           service: name=openstack-cinder-scheduler state=stopped
index 3a06afb..74efaad 100644 (file)
@@ -120,5 +120,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-cinder-volume' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop cinder_volume service
-          tags: step2
+          tags: step1
           service: name=openstack-cinder-volume state=stopped
index 6855a83..c818980 100644 (file)
@@ -93,5 +93,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-congress-server' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop congress service
-          tags: step2
+          tags: step1
           service: name=openstack-congress-server state=stopped
index 4d22bdd..7bf4a1f 100644 (file)
@@ -26,5 +26,5 @@ outputs:
       service_name: glance_registry
       upgrade_tasks:
         - name: Stop and disable glance_registry service on upgrade
-          tags: step2
+          tags: step1
           service: name=openstack-glance-registry state=stopped enabled=no
index d26d96a..89f2ee8 100644 (file)
@@ -141,8 +141,8 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-glance-api' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop glance_api service
-          tags: step2
+          tags: step1
           service: name=openstack-glance-api state=stopped
         - name: Stop and disable glance registry (removed for Ocata)
-          tags: step2
+          tags: step1
           service: name=openstack-glance-registry state=stopped enabled=no
index 22c0967..08a939a 100644 (file)
@@ -129,5 +129,5 @@ outputs:
         get_attr: [ApacheServiceBase, role_data, metadata_settings]
       upgrade_tasks:
         - name: Stop gnocchi_api service (running under httpd)
-          tags: step2
+          tags: step1
           service: name=httpd state=stopped
index 1337b0c..14fca13 100644 (file)
@@ -51,5 +51,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-gnocchi-metricd' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop gnocchi_metricd service
-          tags: step2
+          tags: step1
           service: name=openstack-gnocchi-metricd state=stopped
index 41222a7..5f24bc5 100644 (file)
@@ -50,5 +50,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-gnocchi-statsd' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop gnocchi_statsd service
-          tags: step2
+          tags: step1
           service: name=openstack-gnocchi-statsd state=stopped
index 358698d..7c7df34 100644 (file)
@@ -82,7 +82,7 @@ outputs:
           shell: /usr/bin/systemctl show 'haproxy' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop haproxy service
-          tags: step1
+          tags: step2
           service: name=haproxy state=stopped
         - name: Start haproxy service
           tags: step4 # Needed at step 4 for mysql
index 3ae4cc7..7908baa 100644 (file)
@@ -89,5 +89,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-heat-api-cfn' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop heat_api_cfn service
-          tags: step2
+          tags: step1
           service: name=openstack-heat-api-cfn state=stopped
index 5618353..bc21fd3 100644 (file)
@@ -71,5 +71,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-heat-api-cloudwatch' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop heat_api_cloudwatch service
-          tags: step2
+          tags: step1
           service: name=openstack-heat-api-cloudwatch state=stopped
index 38c5b47..7eb4739 100644 (file)
@@ -89,5 +89,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-heat-api' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop heat_api service
-          tags: step2
+          tags: step1
           service: name=openstack-heat-api state=stopped
index 7787d0a..4197432 100644 (file)
@@ -141,5 +141,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-heat-engine' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop heat_engine service
-          tags: step2
+          tags: step1
           service: name=openstack-heat-engine state=stopped
index 7798385..9fa72a3 100644 (file)
@@ -110,5 +110,5 @@ outputs:
           when: httpd_enabled.rc == 0
           tags: step0,validation
         - name: Stop Horizon (under httpd)
-          tags: step2
+          tags: step1
           service: name=httpd state=stopped
index a84df53..7aab6f8 100644 (file)
@@ -88,5 +88,5 @@ outputs:
             - "%{hiera('mysql_bind_host')}"
       upgrade_tasks:
         - name: Stop ironic_api service
-          tags: step2
+          tags: step1
           service: name=openstack-ironic-api state=stopped
index 739db13..f9547be 100644 (file)
@@ -109,5 +109,5 @@ outputs:
         include ::tripleo::profile::base::ironic::conductor
       upgrade_tasks:
         - name: Stop ironic_conductor service
-          tags: step2
+          tags: step1
           service: name=openstack-ironic-conductor state=stopped
index 5ac8436..f40c8d9 100644 (file)
@@ -308,7 +308,7 @@ outputs:
       # Ansible tasks to handle upgrade
       upgrade_tasks:
         - name: Stop keystone service (running under httpd)
-          tags: step2
+          tags: step1
           service: name=httpd state=stopped
       metadata_settings:
         get_attr: [ApacheServiceBase, role_data, metadata_settings]
index 94c63d3..490ccbe 100644 (file)
@@ -69,5 +69,5 @@ outputs:
             grep '\bactive\b'
           tags: step0,validation
         - name: Stop fluentd service
-          tags: step2
+          tags: step1
           service: name=fluentd state=stopped
index a3e3b84..da59665 100644 (file)
@@ -116,5 +116,5 @@ outputs:
             grep '\bactive\b'
           tags: step0,validation
         - name: Stop collectd service
-          tags: step2
+          tags: step1
           service: name=collectd state=stopped
index d74a68a..c082654 100644 (file)
@@ -69,5 +69,5 @@ outputs:
             grep '\bactive\b'
           tags: step0,validation
         - name: Stop sensu-client service
-          tags: step2
+          tags: step1
           service: name=sensu-client state=stopped
index 4d671e1..cb6317d 100644 (file)
@@ -193,5 +193,5 @@ outputs:
           shell: /usr/bin/systemctl show 'neutron-server' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop neutron_api service
-          tags: step2
+          tags: step1
           service: name=neutron-server state=stopped
index 062edaa..b31933f 100644 (file)
@@ -84,5 +84,5 @@ outputs:
           shell: /usr/bin/systemctl show 'neutron-dhcp-agent' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop neutron_dhcp service
-          tags: step2
+          tags: step1
           service: name=neutron-dhcp-agent state=stopped
index 4fa4927..572c89a 100644 (file)
@@ -89,5 +89,5 @@ outputs:
           shell: /usr/bin/systemctl show 'neutron-l3-agent' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop neutron_l3 service
-          tags: step2
+          tags: step1
           service: name=neutron-l3-agent state=stopped
index 6f5debd..f936ecd 100644 (file)
@@ -80,5 +80,5 @@ outputs:
           shell: /usr/bin/systemctl show 'neutron-metadata-agent' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop neutron_metadata service
-          tags: step2
+          tags: step1
           service: name=neutron-metadata-agent state=stopped
index c27bb90..25bd5b5 100644 (file)
@@ -125,5 +125,5 @@ outputs:
           shell: /usr/bin/systemctl show 'neutron-openvswitch-agent' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop neutron_ovs_agent service
-          tags: step2
+          tags: step1
           service: name=neutron-openvswitch-agent state=stopped
index 9923e83..d208bed 100644 (file)
@@ -152,7 +152,7 @@ outputs:
           collectd::plugins::virt::connection: "qemu:///system"
       upgrade_tasks:
         - name: Stop nova-compute service
-          tags: step2
+          tags: step1
           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"
index a19d0f8..4574cae 100644 (file)
@@ -67,12 +67,12 @@ outputs:
         include tripleo::profile::base::nova::conductor
       upgrade_tasks:
         - name: Stop nova_conductor service
-          tags: step2
+          tags: step1
           service: name=openstack-nova-conductor 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: step2
+          tags: step1
           ini_file:
             str_replace:
               template: "dest=/etc/nova/nova.conf section=upgrade_levels option=compute value=LEVEL"
index b5a1312..82f329b 100644 (file)
@@ -50,5 +50,5 @@ outputs:
         include tripleo::profile::base::nova::consoleauth
       upgrade_tasks:
         - name: Stop nova_consoleauth service
-          tags: step2
+          tags: step1
           service: name=openstack-nova-consoleauth state=stopped
index 3ae19a6..b59e2fc 100644 (file)
@@ -124,7 +124,7 @@ outputs:
               - "%{hiera('mysql_bind_host')}"
       upgrade_tasks:
         - name: Stop nova_placement service (running under httpd)
-          tags: step2
+          tags: step1
           service: name=httpd state=stopped
         # The nova placement API isn't installed in newton images, so install
         # it on upgrade
index e08bf18..e4b6bb4 100644 (file)
@@ -65,5 +65,5 @@ outputs:
         include tripleo::profile::base::nova::scheduler
       upgrade_tasks:
         - name: Stop nova_scheduler service
-          tags: step2
+          tags: step1
           service: name=openstack-nova-scheduler state=stopped
index f6cf964..42335ad 100644 (file)
@@ -66,5 +66,5 @@ outputs:
         include tripleo::profile::base::nova::vncproxy
       upgrade_tasks:
         - name: Stop nova_vnc_proxy service
-          tags: step2
+          tags: step1
           service: name=openstack-nova-consoleauth state=stopped
index 9398d6b..5be58c1 100644 (file)
@@ -136,7 +136,7 @@ outputs:
           tags: step0,validation
           pacemaker_cluster: state=online check_and_fail=true
         - name: Stop pacemaker cluster
-          tags: step1
+          tags: step2
           pacemaker_cluster: state=offline
         - name: Start pacemaker cluster
           tags: step4
index 8573ea8..96b3d6e 100644 (file)
@@ -92,5 +92,5 @@ outputs:
             - "%{hiera('mysql_bind_host')}"
       upgrade_tasks:
         - name: Stop sahara_api service
-          tags: step2
+          tags: step1
           service: name=openstack-sahara-api state=stopped
index 176514e..c0b6b3e 100644 (file)
@@ -51,5 +51,5 @@ outputs:
         include ::tripleo::profile::base::sahara::engine
       upgrade_tasks:
         - name: Stop sahara_engine service
-          tags: step2
+          tags: step1
           service: name=openstack-sahara-engine state=stopped
index fd6ed81..80c29f9 100644 (file)
@@ -45,5 +45,5 @@ outputs:
         include ::tripleo::profile::base::snmp
       upgrade_tasks:
         - name: Stop snmp service
-          tags: step2
+          tags: step1
           service: name=snmpd state=stopped
index c941b59..9b0d2de 100644 (file)
@@ -167,5 +167,5 @@ outputs:
             - ResellerAdmin
       upgrade_tasks:
         - name: Stop swift_proxy service
-          tags: step2
+          tags: step1
           service: name=openstack-swift-proxy state=stopped
index 247b23f..261aade 100644 (file)
@@ -103,7 +103,7 @@ outputs:
         include ::tripleo::profile::base::swift::storage
       upgrade_tasks:
         - name: Stop swift storage services
-          tags: step2
+          tags: step1
           service: name={{ item }} state=stopped
           with_items:
             - openstack-swift-account-auditor
index 6ceb9f1..a690a31 100644 (file)
@@ -93,5 +93,5 @@ outputs:
           shell: /usr/bin/systemctl show 'openstack-tacker-server' --property ActiveState | grep '\bactive\b'
           tags: step0,validation
         - name: Stop tacker service
-          tags: step2
+          tags: step1
           service: name=openstack-tacker-server state=stopped