images from unreachable HTTP source are silently discarded
Bug #1289346 reported by
Bernhard M. Wiedemann
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-
...
| size | 0 |
| status | queued |
# echo $?
0
an explicit
# glance image-show $ID
shows status killed
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)