creating an image uploads data, and afterwards checks for metadata validity
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Alex Meade |
Bug Description
For example, if you leave out --container-format, you get:
$ echo 'test' > testfile
$ glance -v image-create --name test --disk-format raw --file testfile
Request returned failure status.
None
HTTPBadRequest (HTTP 400)
From glance-api, you can see the actual error is:
2012-08-12 16:17:21 ERROR glance.
However, all data has been uploaded for the image before this error is hit. This is particularly annoying with larger image files, which may take a long time to upload before reporting an error like this.
This occurs with the latest glance and python-
Changed in glance: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Jay Pipes (jaypipes) |
milestone: | none → folsom-3 |
Changed in glance: | |
milestone: | folsom-3 → folsom-rc1 |
Changed in glance: | |
assignee: | Jay Pipes (jaypipes) → Alex Meade (alex-meade) |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | folsom-rc1 → 2012.2 |
It looks like recent changes that made it possible to add an image with a size of 0 messed up the early warning system previously in Glance. :(