tripleo-heat-templates/extraconfig/tasks/major_upgrade_controller_pa...

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