weizhouapache commented on code in PR #12822:
URL: https://github.com/apache/cloudstack/pull/12822#discussion_r3217349631
##########
scripts/vm/hypervisor/kvm/nasbackup.sh:
##########
@@ -222,6 +224,19 @@ mount_operation() {
cleanup() {
local status=0
+ # Resume the VM if it was paused during backup to prevent it from
+ # remaining indefinitely paused when the backup job fails (e.g. due
+ # to storage full or I/O errors on the backup target)
+ local vm_state
+ vm_state=$(virsh -c qemu:///system domstate "$VM" 2>/dev/null)
Review Comment:
@jmsperu
does this suggestion make sense to you ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]