images from unreachable HTTP source are silently discarded

Bug #1289346 reported by Bernhard M. Wiedemann
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned

Bug Description

When trying to import an image from an HTTP URL that happens to be unresolvable or unreachable, glance reports it as queued with an exit-code of 0 (success), but a following glance image-list shows, that the new image is completely missing.

# glance image-create --name=foobar --disk-format=qcow2 --container-format=bare --copy-from http://unreachable.example.org/yourimage.qcow2

...
| size | 0 |
| status | queued |
# echo $?
0

an explicit
# glance image-show $ID
shows status killed

Erno Kuvaja (jokke)
tags: added: api task
Erno Kuvaja (jokke)
Changed in glance:
status: New → Confirmed
Revision history for this message
Kent Wang (k.wang) wrote :

Hi I tried to replicate this bug, but I just get a 400 Bad Request.

$ glance image-create --name=foobar --disk-format=qcow2 --container-format=bare --copy-from http://unreachable.example.org/yourimage.qcow2

Request returned failure status 400.
<html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  The HTTP URL is invalid.<br /><br />

 </body>
</html> (HTTP 400)

Revision history for this message
Bernhard M. Wiedemann (ubuntubmw) wrote :

It indeed looks good on Icehouse now, but the original report was probably for Havana.
Maybe a backport would be possible?

Revision history for this message
Louis Taylor (kragniz) wrote :

Havana is EOL now, so if this is good on icehouse it should be closed.

tags: added: propose-close
Revision history for this message
Ian Cordasco (icordasc) wrote :

This seems to be working on supported branches now so I'm going to close this

Changed in glance:
status: Confirmed → 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.