[openstack-dev] [glance] need to pin jsonschema version for glance?

Matt Riedemann mriedem at us.ibm.com
Wed Jul 17 22:16:27 UTC 2013


Just FYI that there is a bug related to this now in launchpad: 
https://bugs.launchpad.net/glance/+bug/1202391 



Thanks,

MATT RIEDEMANN
Advisory Software Engineer
Cloud Solutions and OpenStack Development

Phone: 1-507-253-7622 | Mobile: 1-507-990-1889
E-mail: mriedem at us.ibm.com


3605 Hwy 52 N
Rochester, MN 55901-1407
United States




From:   Matthew Treinish <mtreinish at kortar.org>
To:     OpenStack Development Mailing List 
<openstack-dev at lists.openstack.org>, 
Date:   07/17/2013 01:49 PM
Subject:        Re: [openstack-dev] [glance] need to pin jsonschema 
version for     glance?



On Wed, Jul 17, 2013 at 11:03:53AM -0700, Mark Washenberger wrote:
> Actually, when I build out a virtual environment and install
> python-glanceclient, I get jsonschema 2.0.0. So maybe the problem is
> elsewhere? I also get python-glanceclient 0.9.0, but I notice that 
tempest
> requires python-glanceclient >0.5.0 (
> https://github.com/openstack/tempest/blob/master/requirements.txt#L11 ).
> What version of python-glanceclient do you have installed in the
> environment where there is a problem?

The glance v2 testing doesn't use glanceclient though. The glanceclient
dependency is only used for scenario testing. It makes http calls using
tempest's rest client:

https://github.com/openstack/tempest/blob/master/tempest/services/image/v2/json/image_client.py


Tempest uses jsonschema directly to verify requests before it sends them
by comparing against the schema it gets from the v2 api. I wrote it this 
way to
avoid having a broken schema pushed into glance.

I think that setting a requirement of >=1.3.0 is fine it should get us
around this.

-Matt Treinish

> 
> 
> On Wed, Jul 17, 2013 at 9:52 AM, Mark Washenberger <
> mark.washenberger at markwash.net> wrote:
> 
> >
> >
> >
> > On Wed, Jul 17, 2013 at 7:16 AM, Matt Riedemann 
<mriedem at us.ibm.com>wrote:
> >
> >> I recently synched up on the latest glance and ran tempest on my RHEL 
6.3
> >> box and the image v2 tests all started failing due to json schema
> >> validation errors:
> >>
> >> *http://paste.openstack.org/show/40684/*<
http://paste.openstack.org/show/40684/>
> >>
> >> I found that the version of jsonschema on the system is 0.7, probably
> >> because of the dependency from warlock in python-glanceclient:
> >>
> >> *
> >> 
https://github.com/openstack/python-glanceclient/blob/master/requirements.txt#L8

> >> *<
https://github.com/openstack/python-glanceclient/blob/master/requirements.txt#L8
>
> >>
> >> I started looking at what recent changes in glance might be causing 
the
> >> issue and I found this one:
> >>
> >> *https://review.openstack.org/#/c/35134/*<
https://review.openstack.org/#/c/35134/>
> >>
> >> As pointed out in the test output from that patch, since there is no
> >> version constraint on jsonschema in glance or tempest, it's getting 
the
> >> latest version from pypi (2.0.0 in this case).
> >>
> >> When I updated my test box to jsonschema 1.3.0, I got past the schema
> >> validation error.
> >>
> >> So this leads me to believe that we need to pin the jsonschema 
version in
> >> glance and tempest to >= 1.3.0.
> >>
> >> Thoughts?
> >>
> >
> > This sounds correct. Another alternative would be to switch back to 
the
> > "old" syntax and pin < 1.3.0, which sounds like its not really forward
> > progress, but might be easier.
> >
> >
> >>
> >>
> >>
> >> Thanks,
> >>
> >> *MATT RIEDEMANN*
> >> Advisory Software Engineer
> >> Cloud Solutions and OpenStack Development
> >> ------------------------------
> >>  *Phone:* 1-507-253-7622 | *Mobile:* 1-507-990-1889*
> >> E-mail:* *mriedem at us.ibm.com* <mriedem at us.ibm.com>
> >> [image: IBM]
> >>
> >> 3605 Hwy 52 N
> >> Rochester, MN 55901-1407
> >> United States
> >>
> >>
> >> _______________________________________________
> >> OpenStack-dev mailing list
> >> OpenStack-dev at lists.openstack.org
> >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >>
> >>
> >



> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130717/89550a64/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1851 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130717/89550a64/attachment.gif>


More information about the OpenStack-dev mailing list