'invalid literal for int' when listing a image snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Dan Prince |
Bug Description
Using nova trunk bzr 1492. I'm getting the following error in nova-api.log when listing images (with an image snapshot):
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
Related branches
- Brian Waldon (community): Approve
- Brian Lamar (community): Approve
-
Diff: 313 lines (+73/-57)4 files modifiednova/api/openstack/common.py (+5/-19)
nova/api/openstack/views/images.py (+10/-0)
nova/tests/api/openstack/test_common.py (+33/-13)
nova/tests/api/openstack/test_images.py (+25/-25)
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
status: | Fix Committed → Fix Released |
I get a similar error message when using the v1.1 OSAPI and trying to boot a snapshotted image:
(nova.api. openstack) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ api/openstack/ views/images. py", line 72, in build openstack) : TRACE: self._build_ server( image, image_obj) openstack) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ api/openstack/ views/images. py", line 106, in _build_server openstack) : TRACE: "id": common. get_id_ from_href( serverRef) , openstack) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ api/openstack/ common. py", line 182, in get_id_from_href openstack) : TRACE: return int(urlparse. urlsplit( href).path. split(' /')[-1] ) openstack) : TRACE: ValueError: invalid literal for int() with base 10: 'cb8360cb- 3a41-4620- 8f7f-c804539dc6 98' openstack) : TRACE:
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.