Create image --location <invalid_URL> image status active

Bug #1313369 reported by Tzach Shefi
This bug report is a duplicate of:  Bug #1257273: Glance download fails when size is 0. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
In Progress
High
Feilong Wang

Bug Description

Description of problem: Upload image --location <invalid_URL> -> image status active, should fail alerting user.

Version-Release number of selected component (if applicable):
RHEL6.5
openstack-glance-2013.2.3-2.el6ost.noarch

How reproducible:
Every time

Steps to Reproduce:
1. upload image using --location <invalid_URL>
2. glance image-list, images's status is active

Actual results:
Glance image-list, image's status is: active.

Users may try to boot instances from this image (it's active), booting an instance from this "active" image does indeed boot successfully without error, but has nothing to boot, no boot device.

Expected results:

Alert should notify user that URL is invalid.

Additional info:
When using --copy-from image status is queued, which should also return an alert about invalid URL.

Tzach Shefi (tshefi)
summary: - Create image --location <invalid_URLl> image status active
+ Create image --location <invalid_URL> image status active
Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :

May I know what the invalid URL is in your case?

Feilong Wang (flwang)
Changed in glance:
assignee: nobody → Fei Long Wang (flwang)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Flavio Percoco (flaper87) wrote :

I think this is kind of a duplicate of #1257273

Basically, non (or at least most of) the store backend don't have a good way to check if the location is valid. We fetch the size but, in most of the cases, when an error occurs it's caught and never re-raised. The fix for the aforementioned bug raises an HTTP error when the HTTP location is invalid.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.