Merge "Fix OpendaylightApiNetwork key naming"
[apex-tripleo-heat-templates.git] / extraconfig / tasks / major_upgrade_controller_pacemaker_3.sh
1 #!/bin/bash
2
3 set -eu
4
5 start_or_enable_service rabbitmq
6 check_resource rabbitmq started 600
7 start_or_enable_service redis
8 check_resource redis started 600
9 start_or_enable_service openstack-cinder-volume
10 check_resource openstack-cinder-volume started 600
11
12
13 # Swift isn't controled by pacemaker
14 systemctl_swift start
15
16 # We need to start the systemd services we explicitely stopped at step _1.sh
17 # FIXME: Should we let puppet during the convergence step do the service enabling or
18 # should we add it here?
19 services=$(services_to_migrate)
20 if [[ ${keep_sahara_services_on_upgrade} =~ [Ff]alse ]] ; then
21     services=${services%%openstack-sahara*}
22 fi
23 for service in $(services); do
24     manage_systemd_service start "${service%%-clone}"
25     check_resource_systemd "${service%%-clone}" started 600
26 done