yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #12895
[Bug 1246980] Re: glance registry v2 image-list doesn't work due to bad JSON
** Changed in: glance
Status: Fix Committed => Fix Released
** Changed in: glance
Milestone: None => icehouse-rc1
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1246980
Title:
glance registry v2 image-list doesn't work due to bad JSON
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
I can't get the glance-registry v2 image-list to work
I've set up rpdb and have found the problem (due to bug 1246968 it's
really hard to debug)
When glance-api serialises the body of the request (in common.rpc
bulk_request) to send to the registry it has the following data:
[{'command': 'image_get_all', 'kwargs': {'sort_dir': 'desc',
'filters': MultiDict([('deleted', False)]), 'sort_key': 'created_at',
'admin_as_user': False, 'limit': 20, 'member_status': 'accepted',
'marker': None, 'is_public': None}}]
It runs json.dumps(data, default=self._sanitizer) on it and fails
with:
*** ValueError: Circular reference detected
The problem is it can't serialise the 'filters':
MultiDict([('deleted', False)]), part
Glance-reg v1 works fine but can't get glance-reg v2 working at all
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1246980/+subscriptions