image-create does not respect the force_raw_images setting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Nicolas Simonds | ||
Mitaka |
Fix Released
|
Medium
|
Lee Yarwood |
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-
tags: | added: config-options snapshots |
tags: | added: glance |
tags: |
added: snapshot removed: snapshots |
tags: |
added: images removed: glance |
tags: | added: liberty-backport-potential |
Changed in nova: | |
importance: | Undecided → Medium |
Addendum on the reproduction steps:
Step 2 involves configuring Nova as:
[DEFAULT] raw_images = True
force_
use_cow_images = False
...and Glance as:
[DEFAULT]
disk_formats = ami,ari,aki,raw,iso