OSAPI: glance image errors: 'ValueError: unconverted data remains: .736549'

Bug #744384 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Brian Lamar

Bug Description

Using the most recent version of Glance (rev 98) with nova trunk (rev 894).

I'm getting the following stack trace in nova-api.log when trying to create servers:

---
(nova.api.openstack): TRACE: base_image_meta = self._translate_to_base(image_meta)
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/image/glance.py", line 186, in _translate_to_base
(nova.api.openstack): TRACE: image_meta = _convert_timestamps_to_datetimes(image_meta)
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/image/glance.py", line 225, in _convert_timestamps_to_datetimes
(nova.api.openstack): TRACE: image_meta[attr])
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/image/glance.py", line 237, in _parse_glance_iso8601_timestamp
(nova.api.openstack): TRACE: return datetime.datetime.strptime(timestamp, GLANCE_FMT)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/_strptime.py", line 328, in _strptime
(nova.api.openstack): TRACE: data_string[found.end():])
(nova.api.openstack): TRACE: ValueError: unconverted data remains: .736549
(nova.api.openstack): TRACE:
---

Looking around I saw some other Glance related image errors on trunk. None of them seemed to be exactly this same issue.

The issue seems to be that Glance trunk returns dates with an extra .736549 on the end of them.

The attached x.diff patch resolves the issue functionally but will likely break a slew of unit tests.

Related branches

Revision history for this message
Dan Prince (dan-prince) wrote :
Brian Lamar (blamar)
Changed in nova:
assignee: nobody → Brian Lamar (blamar)
Brian Lamar (blamar)
Changed in nova:
status: New → In Progress
Changed in nova:
status: In Progress → 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

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.