-
Notifications
You must be signed in to change notification settings - Fork 1.2k
kvm: fix vm deployment from RAW template #10880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kvm: fix vm deployment from RAW template #10880
Conversation
related to #9270 it fixes the smoke test failures |
@blueorangutan package |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10880 +/- ##
============================================
- Coverage 16.40% 16.39% -0.02%
+ Complexity 13630 13626 -4
============================================
Files 5705 5708 +3
Lines 503722 504063 +341
Branches 61034 61103 +69
============================================
+ Hits 82647 82651 +4
- Misses 411889 412214 +325
- Partials 9186 9198 +12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@blueorangutan package |
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13412 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch @weizhouapache !
...ns/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
Outdated
Show resolved
Hide resolved
…/storage/LibvirtStorageAdaptor.java Co-authored-by: João Jandre <[email protected]>
@blueorangutan package |
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13414 |
@blueorangutan test |
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code ltgm
@weizhouapache is this worth a smoke test? |
yes, test_network failed as it uses ubuntu 22 cloud image which is raw format. |
Hey @weizhouapache I randomly stumbled upon another bug on the convert using |
[SF] Trillian test result (tid-13331)
|
thanks @JoaoJandre |
@weizhouapache so the bug I had found was when using very old images, they would not support bitmaps and the copy process would throw me this error:
Looking at the Qemu-img source code (see https://github.com/qemu/qemu/blob/master/block/qcow2-bitmap.c#L1767), this error is thrown when the IMG version is lower then 3. So I've added a check to verify it before adding the |
@JoaoJandre |
If you want to leave both contexts separated, I'm ok with it. I'll open a PR with the patch once this PR is merged. |
the smoke test merging |
Description
This PR fixes the vm deployment if template is RAW.
RAW does not support bitmaps.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?