yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50794
[Bug 1497484] Re: image-create does not respect the force_raw_images setting
Reviewed: https://review.openstack.org/226069
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8cfc8a837592c9494608d68db2bac1954c573a4b
Submitter: Jenkins
Branch: master
commit 8cfc8a837592c9494608d68db2bac1954c573a4b
Author: Nicolas Simonds <nic@xxxxxxxxxxxxx>
Date: Mon Sep 21 11:17:43 2015 -0700
Compute API: omit disk/container formats when creating images of snapshots
If making a snapshot, omit the disk and container formats from the
image API request, since the image may have been converted to another
format than what the base image uses. The driver will correctly
populate these values later when uploading the image data.
Closes-Bug: 1497484
Change-Id: I69522977631be2ae42ac504740c04247c75022eb
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1497484
Title:
image-create does not respect the force_raw_images setting
Status in OpenStack Compute (nova):
Fix Released
Bug description:
Instance snapshots of instances sourced from, e.g., QCOW2 images will
be created in the image service as "qcow2" and then switched to "raw"
in an update step.
Use case:
We decided to drop QCOW2 support from certain product configurations,
as force_raw_images is enabled by default, and the conversion overhead
made for a sub-wonderful customer experience.
After dropping QCOW2 from the acceptable list of image formats from
Glance, clients could no longer make instance snapshots from instances
that were spawned from QCOW2 images, despite the fact that the backing
store was not QCOW2.
Steps to Reproduce:
1. Upload a QCOW2 image into Glance
2. Update Nova/Glance configs to disable QCOW2 images and enable force_raw_images
3. Boot an instance against the QCOW2 image
4. Create a snapshot of the instance
Expected behavior:
A snapshot of the instance
Actual results:
ERROR (BadRequest): <html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
Invalid disk format 'qcow2' for image.<br /><br />
</body>
</html> (HTTP 400) (HTTP 400) (Request-ID: req-8e8d8d51-8e0c-4033-bb84-774d2ed1f90a)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1497484/+subscriptions
References