diff --git a/ocf/NovaEvacuate b/ocf/NovaEvacuate index 810f30a..596f520 100644 --- a/ocf/NovaEvacuate +++ b/ocf/NovaEvacuate @@ -125,6 +125,15 @@ Enable extra logging from the evacuation process + + +Allows delaying the nova evacuate API call, e.g. to give a storage array time to clean +up eventual locks/leases. + +Nova evacuate delay + + + @@ -216,6 +225,11 @@ handle_evacuations() { fence_agent="fence_evacuate" fi + if [ ${OCF_RESKEY_evacuate_delay} != 0 ]; then + ocf_log info "Delaying nova evacuate by $OCF_RESKEY_evacuate_delay seconds" + sleep ${OCF_RESKEY_evacuate_delay} + fi + ocf_log notice "Initiating evacuation of $node with $fence_agent" $fence_agent ${fence_options} -o status -n ${node} if [ $? = 1 ]; then