copr-backend: more verbose machine termination

This commit is contained in:
Pavel Raiskup
2026-02-07 21:08:10 +01:00
parent a9acbd4c0e
commit 30c0defe44

View File

@@ -2,6 +2,8 @@
die(){ echo >&2 "!! $*"; exit 1; }
set -x
test -z "$RESALLOC_NAME" && die "no vm specified, empty \$RESALLOC_NAME variable"
# Detect the IP we should be talking to.
@@ -31,6 +33,7 @@ case $RESALLOC_POOL_ID in
;;
copr_osuosl_*)
# Delegate the rest of this task to an OpenStack specific script.
set +x
. "{{ provision_directory }}/.rc-osuosl.sh"
exec resalloc-openstack-delete --delete-everything "$RESALLOC_NAME"
exit 1