Bug 1093383
| Summary: | glance: creating an image with --size reports the image created as qcow2 but creates it as raw | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Dafna Ron <dron> | ||||
| Component: | openstack-glance | Assignee: | RHOS Maint <rhos-maint> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Dafna Ron <dron> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 4.0 | CC: | dron, eglynn, fpercoco, scohen, yeylon | ||||
| Target Milestone: | z6 | Keywords: | Reopened | ||||
| Target Release: | 5.0 (RHEL 7) | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | storage | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-05-07 12:35:42 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Dafna Ron
2014-05-01 14:56:32 UTC
Glance doesn't do any image conversion nor inspection. If the user specified the --disk-format as qcow2 but the image is raw, then it's an user's error. Flavio, 1. reporting a wrong image format (even if it's a user error in creating the image) is a bug. 2. if I can create the a different format image when not creating the --size I don't see what --size should have any effect. 3. even if we decide that something is not supported we need to block it with a clear error message for the user. (In reply to Dafna Ron from comment #2) > 2. if I can create the a different format image when not creating the --size > I don't see what --size should have any effect. I don't follow this point. What did you mean? What happens when you don't pass --size ? > 1. reporting a wrong image format (even if it's a user error in creating the > image) is a bug. > 3. even if we decide that something is not supported we need to block it > with a clear error message for the user. We *don't have* a way to know if it is wrong or not! Without inspecting the image - which we don't do now - we can't know whether the image is valid, the format is correct whatsoever. you're right on the --size - it happens without the --size as well. can we have a check run once the image is downloaded to see that the image reported format fits with the actual image format and if not do one or more of the following: 1. report error in log + cli output. 2. change the format reported in the db We can't as of now but I believe some time in the future. The reason is that Glance, since its inception, has been an image registry. That is, a place to have a catalog of images. It has never been a *real* image service capable of doing operations on images. This may/may not change in the future, what will happen has yet to be discussed. Checking the image extension is certainly not a valid option. |