a7e6dcdb55
During the "major-upgrade-pacemaker" step we basically do the following: 1) For all the OSP9-mitaka pacemaker services we first delete any constraints and then disable and then delete the pacemaker resource from the cluster CIB https://github.com/openstack/tripleo-heat-templates/blob/stable/newton/extraconfig/tasks/major_upgrade_pacemaker_migrations.sh#L67-L99 2) We then update all packages via yum 3) Then we start all the services. In 3) we do this: for service in $services; do manage_systemd_service start "${service%%-clone}" check_resource_systemd "${service%%-clone}" started 600 done We also want to explicitly enable the service so that if a reboot happens before the convergence step the controller node will come up with the services being enabled. Change-Id: Ie163e5f1d24b23b46092a9a3cb844fcb4e810f7b Closes-Bug: #1677346
18 lines
668 B
Bash
Executable File
18 lines
668 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
# We need to start the systemd services we explicitely stopped at step _1.sh
|
|
# We add the enablement of the systemd services here because if a node gets rebooted
|
|
# before the convergence step for whatever reason the migrated services will
|
|
# not be enabled and we potentially have a bigger disruption.
|
|
services=$(services_to_migrate)
|
|
if [[ ${keep_sahara_services_on_upgrade} =~ [Ff]alse ]] ; then
|
|
services=${services%%openstack-sahara*}
|
|
fi
|
|
for service in $services; do
|
|
manage_systemd_service start "${service%%-clone}"
|
|
manage_systemd_service enable "${service%%-clone}"
|
|
check_resource_systemd "${service%%-clone}" started 600
|
|
done
|