yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #87819
[Bug 1523209] Re: glance image-create fails ValueError: invalid literal for int() with base 16: ''
This looks like a unicode/str encoding/decoding issue from the days of
Python2, and kilo has not been supported in a while. I'm closing this,
feel free to reopen if needed.
** Changed in: glance
Status: New => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1523209
Title:
glance image-create fails ValueError: invalid literal for int() with
base 16: ''
Status in Glance:
Won't Fix
Bug description:
I am using openstack kilo with rbd store (ceph hammer).
Command used to create/upload image:
====================
$glance image-create --progress --name cirros-0.3.2 --disk-format qcow2 --container-format bare --is-public True --file cirros-0.3.3-x86_64-disk.img
From ceph cluster, this means image has successfully uploaded to ceph cluster, right?
==================
#rbd info images/b04ba38c-5e41-4e6f-85c7-a68e2d677fab
rbd image 'b04ba38c-5e41-4e6f-85c7-a68e2d677fab':
size 12891 kB in 2 objects
order 23 (8192 kB objects)
block_name_prefix: rbd_data.2a03e445c34a7
format: 2
features: layering
flags:
From glance-api.log (Please check the lines marked with <======)
======================
2015-08-03 16:14:08.408 40309 WARNING glance.api.middleware.version_negotiation [req-117eb91a-250e-42c6-805d-ae10ed70e3d8 36b577aa0fdf4f30aee8236b2c529d88 9c57e5684dee4a99958e2b3985a9fcdb - - -] Unknown version. Returning version choices.
2015-08-03 16:14:08.411 40309 INFO eventlet.wsgi.server [req-117eb91a-250e-42c6-805d-ae10ed70e3d8 36b577aa0fdf4f30aee8236b2c529d88 9c57e5684dee4a99958e2b3985a9fcdb - - -] 127.0.0.1,127.0.0.1 - - [03/Aug/2015 16:14:08] "GET / HTTP/1.1" 300 804 0.005931
2015-08-03 16:14:08.412 40309 DEBUG glance_store._drivers.rbd [req-117eb91a-250e-42c6-805d-ae10ed70e3d8 36b577aa0fdf4f30aee8236b2c529d88 9c57e5684dee4a99958e2b3985a9fcdb - - -] creating image b04ba38c-5e41-4e6f-85c7-a68e2d677fab with order 23 and size 13200896 add /usr/lib/python2.7/dist-packages/glance_store/_drivers/rbd.py:343 <======
2015-08-03 16:14:08.530 40309 DEBUG glance_store._drivers.rbd [req-117eb91a-250e-42c6-805d-ae10ed70e3d8 36b577aa0fdf4f30aee8236b2c529d88 9c57e5684dee4a99958e2b3985a9fcdb - - -] writing chunk at offset 0 add /usr/lib/python2.7/dist-packages/glance_store/_drivers/rbd.py:379 <======
2015-08-03 16:14:10.584 40307 DEBUG glance.api.middleware.version_negotiation [req-e76e2669-f456-440e-b427-d7e5bc403bc3 d28a3add04d74ed699a9f707ce5580b6 4802e1920fd64ed9894ee99d88d20d5c - - -] Determining version of request: GET / Accept: process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:47
2015-08-03 16:14:10.585 40307 DEBUG glance.api.middleware.version_negotiation [req-e76e2669-f456-440e-b427-d7e5bc403bc3 d28a3add04d74ed699a9f707ce5580b6 4802e1920fd64ed9894ee99d88d20d5c - - -] Using url versioning process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:60
2015-08-03 16:14:10.586 40307 WARNING glance.api.middleware.version_negotiation [req-e76e2669-f456-440e-b427-d7e5bc403bc3 d28a3add04d74ed699a9f707ce5580b6 4802e1920fd64ed9894ee99d88d20d5c - - -] Unknown version. Returning version choices.
2015-08-03 16:14:10.590 40307 INFO eventlet.wsgi.server [req-e76e2669-f456-440e-b427-d7e5bc403bc3 d28a3add04d74ed699a9f707ce5580b6 4802e1920fd64ed9894ee99d88d20d5c - - -] 10.140.15.21,127.0.0.1 - - [03/Aug/2015 16:14:10] "GET / HTTP/1.1" 300 804 0.005613
2015-08-03 16:14:11.653 40309 ERROR glance.api.v1.upload_utils [req-117eb91a-250e-42c6-805d-ae10ed70e3d8 36b577aa0fdf4f30aee8236b2c529d88 9c57e5684dee4a99958e2b3985a9fcdb - - -] Failed to upload image b04ba38c-5e41-4e6f-85c7-a68e2d677fab <======
2015-08-03 16:14:11.660 40309 DEBUG glance.common.client [req-117eb91a-250e-42c6-805d-ae10ed70e3d8 36b577aa0fdf4f30aee8236b2c529d88 9c57e5684dee4a99958e2b3985a9fcdb - - -] Constructed URL: http://localhost:19191/images/b04ba38c-5e41-4e6f-85c7-a68e2d677fab _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:401 <======
2015-08-03 16:14:11.952 40309 DEBUG glance.registry.client.v1.client [req-117eb91a-250e-42c6-805d-ae10ed70e3d8 36b577aa0fdf4f30aee8236b2c529d88 9c57e5684dee4a99958e2b3985a9fcdb - - -] Registry request PUT /images/b04ba38c-5e41-4e6f-85c7-a68e2d677fab HTTP 200 request id req-cc9e0445-7a9e-4a79-9da4-e3a21fdce4b7 do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:124
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eventlet/greenpool.py", line 82, in _spawn_n_impl
func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 671, in process_request
proto.__init__(sock, address, self)
File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
self.handle()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 342, in handle
self.handle_one_request()
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 330, in handle_one_request
self.handle_one_response()
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 492, in handle_one_response
while self.environ['eventlet.input'].read(MINIMUM_CHUNK_SIZE):
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 188, in read
return self._chunked_read(self.rfile, length)
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 178, in _chunked_read
self.chunk_length = int(rfile.readline().split(b";", 1)[0], 16)
ValueError: invalid literal for int() with base 16: '' <======
2015-08-03 16:14:18.434 40307 DEBUG glance.api.middleware.version_negotiation [req-e76e2669-f456-440e-b427-d7e5bc403bc3 d28a3add04d74ed699a9f707ce5580b6 4802e1920fd64ed9894ee99d88d20d5c - - -] Determining version of request: GET / Accept: process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:47
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1523209/+subscriptions
References