'invalid literal for int' when listing a image snapshot

Bug #834030 reported by Dan Prince
10
This bug affects 2 people
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.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/openstack/images.py", line 201, in detail
(nova.api.openstack): TRACE: return dict(images=[builder(image, detail=True) for image in images])
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/openstack/views/images.py", line 128, in build
(nova.api.openstack): TRACE: image = ViewBuilder.build(self, image_obj, detail)
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/openstack/views/images.py", line 72, in build
(nova.api.openstack): TRACE: self._build_server(image, image_obj)
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/openstack/views/images.py", line 106, in _build_server
(nova.api.openstack): TRACE: "id": common.get_id_from_href(serverRef),
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/openstack/common.py", line 182, in get_id_from_href
(nova.api.openstack): TRACE: return int(urlparse.urlsplit(href).path.split('/')[-1])
(nova.api.openstack): TRACE: ValueError: invalid literal for int() with base 10: 'cb8360cb-3a41-4620-8f7f-c804539dc698'
(nova.api.openstack): TRACE:

Related branches

Revision history for this message
Dan Prince (dan-prince) wrote :

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
(nova.api.openstack): TRACE: self._build_server(image, image_obj)
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/openstack/views/images.py", line 106, in _build_server
(nova.api.openstack): TRACE: "id": common.get_id_from_href(serverRef),
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/openstack/common.py", line 182, in get_id_from_href
(nova.api.openstack): TRACE: return int(urlparse.urlsplit(href).path.split('/')[-1])
(nova.api.openstack): TRACE: ValueError: invalid literal for int() with base 10: 'cb8360cb-3a41-4620-8f7f-c804539dc698'
(nova.api.openstack): TRACE:

Changed in nova:
status: New → In Progress
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → Medium
Dan Prince (dan-prince)
Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Thierry Carrez (ttx) wrote :

Could use a backport

Changed in nova:
milestone: none → 2011.3
status: Fix Committed → In Progress
Dan Prince (dan-prince)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
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.