ValueError: Circular reference detected

Bug #1010124 reported by Johannes Erdfelt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openstack-common
Fix Released
Undecided
Johannes Erdfelt

Bug Description

jsonutils cannot properly handle the xmlrpclib.DateTime type, causing a recursive loop in the json encoder. Eventually it will fail with this exception:

ValueError: Circular reference detected

This is possible when using the xenapi driver in nova and an exception occurs during a migration. It can then send a notification which includes the arguments to the method that failed, which may include the xmlrpclib.DateTime type that was returned from the XenAPI module.

Changed in openstack-common:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-common (master)

Fix proposed to branch: master
Review: https://review.openstack.org/8316

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-common (master)

Reviewed: https://review.openstack.org/8316
Committed: http://github.com/openstack/openstack-common/commit/8dbf60c81ba89f578f035e871bde622804053f54
Submitter: Jenkins
Branch: master

commit 8dbf60c81ba89f578f035e871bde622804053f54
Author: Johannes Erdfelt <email address hidden>
Date: Thu Jun 7 23:22:17 2012 +0000

    Handle xmlrpclib.DateTime types when serializing to JSON

    Fixes bug 1010124

    Convert xmlrpclib.DateTime types to datetime so they can be serialized
    without creating an exception.

    Change-Id: Ifcab69ad81d39d7f4066df5c71c6ab6734fb1fab

Changed in openstack-common:
status: In Progress → Fix Committed
Mark McLoughlin (markmc)
Changed in openstack-common:
milestone: none → 2012.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.