Public bug reported:
version: mitaka
When uploading an image, the ID is checked after the image is uploaded.
This is not much of an issue for small images like cirros but for larger images
like rhel, it takes up lot of network.
Ideally, the ID of the image should be checked before the upload takes
place.
Log below:--
glance --debug image-upload --file ubuntu-14.04-desktop-amd64.iso --progress
4a525188-2e6f-4e49-88cd-311ca215535y
[=============================>] 100%
Request returned failure status 404.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 595, in
main
args.func(client, args)
File "/usr/lib/python2.7/site-packages/glanceclient/v2/shell.py", line 322,
in do_image_upload
gc.images.upload(args.id, image_data, args.size)
File "/usr/lib/python2.7/site-packages/glanceclient/v2/images.py", line 217,
in upload
self.http_client.put(url, headers=hdrs, data=body)
File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 185,
in put
return self.request(url, 'PUT', **kwargs)
File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line
332, in request
return self._handle_response(resp)
File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 83,
in _handle_response
raise exc.from_response(resp, resp.content)
HTTPNotFound: 404 Not Found: No image found with ID
4a525188-2e6f-4e49-88cd-311ca215535y (HTTP 404)
404 Not Found: No image found with ID 4a525188-2e6f-4e49-88cd-311ca215535y
(HTTP 404)
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1674886
Title:
image id is checked after uploading image
Status in Glance:
New
Bug description:
version: mitaka
When uploading an image, the ID is checked after the image is uploaded.
This is not much of an issue for small images like cirros but for larger
images like rhel, it takes up lot of network.
Ideally, the ID of the image should be checked before the upload takes
place.
Log below:--
glance --debug image-upload --file ubuntu-14.04-desktop-amd64.iso --progress
4a525188-2e6f-4e49-88cd-311ca215535y
[=============================>] 100%
Request returned failure status 404.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 595, in
main
args.func(client, args)
File "/usr/lib/python2.7/site-packages/glanceclient/v2/shell.py", line 322,
in do_image_upload
gc.images.upload(args.id, image_data, args.size)
File "/usr/lib/python2.7/site-packages/glanceclient/v2/images.py", line
217, in upload
self.http_client.put(url, headers=hdrs, data=body)
File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line
185, in put
return self.request(url, 'PUT', **kwargs)
File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line
332, in request
return self._handle_response(resp)
File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line
83, in _handle_response
raise exc.from_response(resp, resp.content)
HTTPNotFound: 404 Not Found: No image found with ID
4a525188-2e6f-4e49-88cd-311ca215535y (HTTP 404)
404 Not Found: No image found with ID 4a525188-2e6f-4e49-88cd-311ca215535y
(HTTP 404)
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1674886/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp