cloudstack/scripts/vm
jmsperu d64286b52b fix(nas-backup): fail fast on failure + don't delete successful backups (#12843)
Address review feedback on #12843 (verified with a stubbed self-test):
- domjobinfo 'Failed' branch: exit after cleanup instead of looping until
  BACKUP_TIMEOUT (the loop never broke on a failed virsh job).
- backup_stopped_vm qemu-img convert failure: exit after cleanup so a partial
  backup is not treated as success; append to the agent log instead of truncating.
- backup_stopped_vm success: unmount before returning, mirroring backup_running_vm/
  delete_backup. Without this the 'trap cleanup EXIT' fired on success and ran
  'rm -rf $dest', deleting the just-completed backup.
- mount_operation: test mount's own exit in an if-condition so 'set -eo pipefail'
  no longer aborts before the check and a piped tee can't mask a mount failure.
- cleanup: only umount when the path is actually a mount, so a non-mount umount
  error doesn't wrongly report EXIT_CLEANUP_FAILED via the EXIT trap.
2026-06-21 21:12:23 +03:00
..
hypervisor fix(nas-backup): fail fast on failure + don't delete successful backups (#12843) 2026-06-21 21:12:23 +03:00
network Replace deprecated 'egrep' commands with 'grep -E'. (#12306) 2025-12-22 14:27:41 +01:00
systemvm pre-commit: add hook to trim trailing whitespace (#8205) 2024-05-28 09:01:30 +02:00
pingtest.sh pre-commit: add hook to trim trailing whitespace (#8205) 2024-05-28 09:01:30 +02:00