nikolauseppinger opened a new pull request, #13587: URL: https://github.com/apache/cloudstack/pull/13587
### Description Backport of #13583 to the 4.22 branch. Fixes KVM volume encryption detection on hosts with qemu-img >= 10.1.0. QEMU changed the `qemu-img --help` supported-formats header from "Supported formats:" to "Supported image formats:" in 10.1.0. The detection regex in `QemuImg.helpSupportsImageFormat()` no longer matched, so `hostSupportsVolumeEncryption()` returned false and `host.volume.encryption` was stored as false, blocking encrypted offerings on affected hosts (e.g. RHEL 9.8 shipping qemu-img 10.1.0). The regex now treats the "image" keyword as optional and is covered by unit tests for both the legacy and the new header, plus a negative case. Cherry-picked cleanly from main (commit cd1c42750a) onto 4.22, no conflicts. ### Types of changes - [x] Bug fix (non-breaking change which fixes an issue) ### Bug Severity - [x] Major -- 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]
