5 cluster_sync_timeout=600
7 if pcs status 2>&1 | grep -E '(cluster is not currently running)|(OFFLINE:)'; then
8 echo_error "ERROR: upgrade cannot start with some cluster nodes being offline"
12 if [ "$(hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid)" = "$(facter hostname)" ]; then
13 pcs resource disable httpd
14 check_resource httpd stopped 1800
15 if pcs status | grep openstack-keystone; then
16 pcs resource disable openstack-keystone
17 check_resource openstack-keystone stopped 1800
19 pcs resource disable redis
20 check_resource redis stopped 600
21 pcs resource disable mongod
22 check_resource mongod stopped 600
23 pcs resource disable rabbitmq
24 check_resource rabbitmq stopped 600
25 pcs resource disable memcached
26 check_resource memcached stopped 600
27 pcs resource disable galera
28 check_resource galera stopped 600
29 pcs cluster stop --all
32 # Swift isn't controled by pacemaker
36 while systemctl is-active pacemaker; do
39 if (( tnow-tstart > cluster_sync_timeout )) ; then
40 echo_error "ERROR: cluster shutdown timed out"
45 yum -y install python-zaqarclient # needed for os-collect-config
48 # Pin messages sent to compute nodes to kilo, these will be upgraded later
49 crudini --set /etc/nova/nova.conf upgrade_levels compute "$upgrade_level_nova_compute"
50 # https://bugzilla.redhat.com/show_bug.cgi?id=1284047
51 # Change-Id: Ib3f6c12ff5471e1f017f28b16b1e6496a4a4b435
52 crudini --set /etc/ceilometer/ceilometer.conf DEFAULT rpc_backend rabbit
53 # https://bugzilla.redhat.com/show_bug.cgi?id=1284058
54 # Ifd1861e3df46fad0e44ff9b5cbd58711bbc87c97 Swift Ceilometer middleware no longer exists
55 crudini --set /etc/swift/proxy-server.conf pipeline:main pipeline "catch_errors healthcheck cache ratelimit tempurl formpost authtoken keystone staticweb proxy-logging proxy-server"