-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow IMG extension for QCOW2 format #4013
Conversation
@nvazquez maybe i dont understand it correctly. a small question. for me a file with "img" extensions is normally in raw format and needs to be converted in qcow2. why we import a img as qcow2?
|
@svenvogel many distros host/build cloud-init enabled qcow2 images and ship as .img |
@blueorangutan package |
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✖centos7 ✔debian. JID-1284 |
@blueorangutan package |
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✔centos7 ✔debian. JID-1289 |
@blueorangutan test |
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) 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 looks ok at first sight, be it a bit of a hack. But img is now used in two formats. Extensive testing is needed (or we'll just wait and see?) we can run into trouble as raw images can be registered as qcow2 now, while actually more validation is required through deep inspection of the image itself?
img and raw are interchangeable they're using for registering raw disks/templates. |
Trillian test result (tid-1623)
|
Description
Attempts to register QCOW2 template with .img extension fails fast:
This fix allows registering a QCOW2 template with .img extension
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Register templates: https://cloud-images.ubuntu.com/minimal/releases/bionic/release/ubuntu-18.04-minimal-cloudimg-amd64.img, http://dl.openvm.eu/cloudstack/macchinina/x86_64/macchinina.img with format = QCOW2