jmsperu opened a new pull request, #14816: URL: https://github.com/apache/cloudstack/pull/14816
### Description Long volume copies (snapshot backup, volume migration, template copy) give no sign of life in the Agent log: one line when qemu-img convert starts and nothing until it ends, which can be hours later. Operators cannot tell a slow copy from a hung one. This PR runs qemu-img convert with -p and logs the progress at INFO each time it advances by 10 percent, and at least every 5 minutes while the copy is running. If the command fails, the error text of qemu-img is kept as before. Fixes #9779 ### Types of changes - [x] Enhancement (improves an existing feature and functionality) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [x] Minor ### How Has This Been Tested? Unit tests added (QemuImgProgressLoggerTest). Manual test on 4.22.1.1, Ubuntu 24.04, QEMU 8.2.2, NFS primary and secondary: snapshot of a 3 GB data volume. Before: no progress line. After: ``` 16:29:08,151 INFO [utils.qemu.QemuImgProgressLogger] Progress of qemu-img convert from [...] to [...]: 0.00%. 16:29:21,798 INFO ... 10.42%. 16:29:38,160 INFO ... 20.83%. ... 16:31:24,395 INFO ... 90.62%. 16:31:38,710 INFO ... 100.00%. ``` https://claude.ai/code/session_01CUwgtFEPLkr62vbUayjCDZ -- 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]
