jmsperu commented on PR #12843:
URL: https://github.com/apache/cloudstack/pull/12843#issuecomment-7200148016

   Thanks @Damans227. Tested on our lab: Ubuntu 24.04.4, libvirt 10.0.0, QEMU 
8.2.2, CloudStack agent 4.22.1.1, NFS backup repository. A running VM with a 3 
GB qcow2 root disk, script run directly on the host:
   
   - **Backup that finishes:** exit 0, all files on the share (domain XMLs and 
root disk, 3222077440 bytes), size reported on the last stdout line, VM 
running, no csbackup mount left.
   - **Backup cut short:** SIGTERM while the push job was running. Exit 143, 
the job was aborted (domjobinfo: None), the partial backup directory was 
removed, the VM was running and the share was unmounted.
   - **Finished backup with a busy share at unmount:** a process held its cwd 
in the mount point. Two umount attempts failed with "device is busy", then the 
lazy unmount ran and logged "the backup is intact". Exit 0 and every file was 
kept on the share. Before 84c227c979 the EXIT trap would have deleted this 
backup.
   
   I also merged main to clear the conflict. The new pull-mode path from #14194 
cleared every trap at the end of a backup and then ran a plain umount, so a 
slow unmount failed a finished backup there. 4e763c865e hands the EXIT trap 
back to cleanup(), marks the backup complete and uses 
unmount_completed_backup(), like the other two paths. A domjobabort failure at 
the end stays a warning, because a pull job never writes into the backup 
directory. I could not lab-test the pull path itself (no LINSTOR here); it 
passes `bash -n`.
   


-- 
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]

Reply via email to