Merge "Disable VIPs before stopping cluster during version upgrade"
This commit is contained in:
commit
3c5521d2bb
@ -24,6 +24,12 @@ if [ "$(hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid)" = "$(facter hostname)
|
||||
check_resource memcached stopped 600
|
||||
pcs resource disable galera
|
||||
check_resource galera stopped 600
|
||||
# Disable all VIPs before stopping the cluster, so that pcs doesn't use one as a source address:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1330688
|
||||
for vip in $(pcs resource show | grep ocf::heartbeat:IPaddr2 | grep Started | awk '{ print $1 }'); do
|
||||
pcs resource disable $vip
|
||||
check_resource $vip stopped 60
|
||||
done
|
||||
pcs cluster stop --all
|
||||
fi
|
||||
|
||||
|
@ -24,6 +24,11 @@ if [ "$(hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid)" = "$(facter hostname)
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for vip in $(pcs resource show | grep ocf::heartbeat:IPaddr2 | grep Stopped | awk '{ print $1 }'); do
|
||||
pcs resource enable $vip
|
||||
check_resource $vip started 60
|
||||
done
|
||||
|
||||
pcs resource enable galera
|
||||
check_resource galera started 600
|
||||
pcs resource enable mongod
|
||||
|
Loading…
Reference in New Issue
Block a user