Bug 915445 - jsonschema version 1.0 breaks glance
Summary: jsonschema version 1.0 breaks glance
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: snapshot5
: 2.1
Assignee: Flavio Percoco
QA Contact: Attila Fazekas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-25 18:42 UTC by Flavio Percoco
Modified: 2022-07-09 06:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-04 20:24:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 1132840 0 None None None Never
Red Hat Product Errata RHSA-2013:0707 0 normal SHIPPED_LIVE Moderate: openstack-glance security and bug fix update 2013-04-05 00:19:11 UTC

Description Flavio Percoco 2013-02-25 18:42:12 UTC
jsonschema v1.0.0 was release on 02/25/2013 this update breaks the unit tests with a failure like:

ft50.1: glance.tests.unit.v2.test_images_resource.TestImagesDeserializerWithExtendedSchema.test_create_StringException: Traceback (most recent call last):
  File "/home/jenkins/workspace/gate-glance-python27/glance/tests/unit/v2/test_images_resource.py", line 1237, in test_create
    output = self.deserializer.create(request)
  File "/home/jenkins/workspace/gate-glance-python27/glance/api/v2/images.py", line 206, in create
    self.schema.validate(body)
  File "/home/jenkins/workspace/gate-glance-python27/glance/schema.py", line 32, in validate
    jsonschema.validate(obj, self.raw())
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/jsonschema.py", line 1239, in validate
    cls.check_schema(schema)
  File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/jsonschema.py", line 141, in check_schema
    error.message, validator=error.validator, path=error.path,
SchemaError: True is not of type u'array'

Comment 7 errata-xmlrpc 2013-04-04 20:24:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0707.html


Note You need to log in before you can comment on or make changes to this bug.