- sleep 30;
- STACK_SHOW=$(openstack stack show "$STACK_NAME")
- echo "$j: $STACK_SHOW"
- if [[ $STACK_SHOW == *"DELETE_FAILED"* ]]; then
- echo "stack delete failed. trying to stack abandon now"
- # stack abandon does not work on RS, therefore requires acquiring a token
- # and using http delete method to abondon DELETE_FAILED stacks
- # Todo: remove the change once RS fixes the issue upstream
+ sleep 30
+ delete_status=$(openstack stack show "$STACK_NAME" -f value -c stack_status)
+ echo "$j: $delete_status"
+ if [[ $delete_status == "DELETE_FAILED" ]]; then
+ reason=$(openstack stack show "$STACK_NAME" -f value -c stack_status_reason)
+ echo "ERROR: Failed to delete $STACK_NAME. Reason: $reason"
+
+ # Abandon is not supported in Vexxhost so let's keep trying to
+ # delete for now...
+ # echo "Stack delete failed, trying to stack abandon now."