DescribeImages api failing (using glance: filesytem)

Bug #742179 reported by Tushar Patil
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Unassigned

Bug Description

Tested on nova Revision No 884 and glance Revision No 96

1) Added new images using glance-upload utility.

root@ubuntu-openstack-glance-server:/home/tpatil/glance/bin# ./glance index
Found 4 public images...
ID Name Disk Format Container Format Size
---------------- ------------------------------ -------------------- -------------------- --------------
18 ipv6-kernel None None 3522336
19 ipv6-ramdisk None None 8679404
20 ipv6-image None None 0
21 ipv6-image None None 1049624576

For Id 20, the size is showing as 0 because while the uploading was in progress I purposely terminated the process due to wrong ramdisk id passed to the parameter. Will this affect euca-describe-images?

2) run euca-describe-images. But this API is failing now, it use to work in revision no 853.

nova-api.log
-----------------
2011-03-24 18:01:06,212 ERROR nova.api [87SU6TUAS6N3WHITRFCY admin admin] Unexpected error raised: unconverted data remains: .441753
(nova.api): TRACE: Traceback (most recent call last):
(nova.api): TRACE: File "/home/tpatil/nova/nova/api/ec2/__init__.py", line 324, in __call__
(nova.api): TRACE: result = api_request.invoke(context)
(nova.api): TRACE: File "/home/tpatil/nova/nova/api/ec2/apirequest.py", line 150, in invoke
(nova.api): TRACE: result = method(context, **args)
(nova.api): TRACE: File "/home/tpatil/nova/nova/api/ec2/cloud.py", line 910, in describe_images
(nova.api): TRACE: images = self.image_service.detail(context)
(nova.api): TRACE: File "/home/tpatil/nova/nova/image/s3.py", line 76, in detail
(nova.api): TRACE: images = self.service.detail(context)
(nova.api): TRACE: File "/home/tpatil/nova/nova/image/glance.py", line 81, in detail
(nova.api): TRACE: base_image_meta = self._translate_to_base(image_meta)
(nova.api): TRACE: File "/home/tpatil/nova/nova/image/glance.py", line 186, in _translate_to_base
(nova.api): TRACE: image_meta = _convert_timestamps_to_datetimes(image_meta)
(nova.api): TRACE: File "/home/tpatil/nova/nova/image/glance.py", line 225, in _convert_timestamps_to_datetimes
(nova.api): TRACE: image_meta[attr])
(nova.api): TRACE: File "/home/tpatil/nova/nova/image/glance.py", line 237, in _parse_glance_iso8601_timestamp
(nova.api): TRACE: return datetime.datetime.strptime(timestamp, GLANCE_FMT)
(nova.api): TRACE: File "/usr/lib/python2.6/_strptime.py", line 328, in _strptime
(nova.api): TRACE: data_string[found.end():])
(nova.api): TRACE: ValueError: unconverted data remains: .441753
(nova.api): TRACE:

Tushar Patil (tpatil)
description: updated
Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like the same code as bug 742204, but failing for different reasons.

Changed in nova:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

I think this should have been fixed by the recent fixes for other similar bugs. Could you check ?

Revision history for this message
Tushar Patil (tpatil) wrote :

I couldn't reproduce this bug in revision 925. It's working as expected.

Thierry Carrez (ttx)
Changed in nova:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
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.