This commit puts the ha-test-suite under the tools directory instead of having it downloaded from the outside (originally it was available at the link https://github.com/rscarazz/tripleo-director-ha-test-suite. At code level now the suite is copied directly from the local path tools/ha-test-suite and the executable now is ha-test-suite.sh. Change-Id: I087bc28a0afa3ede9b2fb698892b8306f56790a2
14 lines
602 B
Plaintext
14 lines
602 B
Plaintext
# Recovery: Enable all systemd and core resources, cleanup failed actions
|
|
|
|
echo "$(date) * Step 1: enable all the cluster resources"
|
|
play_on_resources "enable" "$OVERCLOUD_RESOURCES"
|
|
|
|
echo "$(date) * Step 2: Cleaning up failed resources"
|
|
sudo pcs status | sed -n -e '/Failed Actions:/,/^$/p' | egrep 'OCF_TIMEOUT|not running' | awk '{print $2}' | cut -f1 -d_ | sort | uniq | while read RES; do echo "Cleaning $RES"; sudo pcs resource cleanup $RES; done
|
|
|
|
echo "$(date) * Step 3: Waiting all resources to start"
|
|
wait_cluster_start
|
|
|
|
echo "$(date) - List of cluster's failed actions:"
|
|
check_failed_actions
|