<font size=2 face="sans-serif">Just FYI that there is a bug related to
this now in launchpad: </font><a href="https://bugs.launchpad.net/glance/+bug/1202391"><font size=3 color=blue><u>https://bugs.launchpad.net/glance/+bug/1202391</u></font></a><font size=3>
</font><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=1 face="Arial">Thanks,</font>
<br>
<br><font size=3 color=#8f8f8f face="Arial"><b>MATT RIEDEMANN</b></font><font size=1 face="Arial"><br>
Advisory Software Engineer<br>
Cloud Solutions and OpenStack Development</font>
<table width=680 style="border-collapse:collapse;">
<tr height=8>
<td width=680 colspan=2 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<hr>
<tr valign=top height=8>
<td width=418 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#4181c0 face="Arial"><b>Phone:</b></font><font size=1 color=#5f5f5f face="Arial">
1-507-253-7622</font><font size=1 color=#4181c0 face="Arial"> | <b>Mobile:</b></font><font size=1 color=#5f5f5f face="Arial">
1-507-990-1889</font><font size=1 color=#4181c0 face="Arial"><b><br>
E-mail:</b></font><font size=1 color=#5f5f5f face="Arial"> </font><a href=mailto:mriedem@us.ibm.com target=_blank><font size=1 color=#5f5f5f face="Arial"><u>mriedem@us.ibm.com</u></font></a>
<td width=261 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<div align=right><img src=cid:_1_0A3E1EA00A3E190C007A523286257BAB width=83 height=30 alt=IBM><font size=1 color=#5f5f5f face="Arial"><br>
<br>
3605 Hwy 52 N<br>
Rochester, MN 55901-1407<br>
United States</font></div></table>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Matthew Treinish <mtreinish@kortar.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">OpenStack Development
Mailing List <openstack-dev@lists.openstack.org>, </font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">07/17/2013 01:49 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [openstack-dev]
[glance] need to pin jsonschema version for glance?</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On Wed, Jul 17, 2013 at 11:03:53AM -0700, Mark Washenberger
wrote:<br>
> Actually, when I build out a virtual environment and install<br>
> python-glanceclient, I get jsonschema 2.0.0. So maybe the problem
is<br>
> elsewhere? I also get python-glanceclient 0.9.0, but I notice that
tempest<br>
> requires python-glanceclient >0.5.0 (<br>
> </font></tt><a href=https://github.com/openstack/tempest/blob/master/requirements.txt#L11><tt><font size=2>https://github.com/openstack/tempest/blob/master/requirements.txt#L11</font></tt></a><tt><font size=2>
).<br>
> What version of python-glanceclient do you have installed in the<br>
> environment where there is a problem?<br>
<br>
The glance v2 testing doesn't use glanceclient though. The glanceclient<br>
dependency is only used for scenario testing. It makes http calls using<br>
tempest's rest client:<br>
<br>
</font></tt><a href=https://github.com/openstack/tempest/blob/master/tempest/services/image/v2/json/image_client.py><tt><font size=2>https://github.com/openstack/tempest/blob/master/tempest/services/image/v2/json/image_client.py</font></tt></a><tt><font size=2><br>
<br>
Tempest uses jsonschema directly to verify requests before it sends them<br>
by comparing against the schema it gets from the v2 api. I wrote it this
way to<br>
avoid having a broken schema pushed into glance.<br>
<br>
I think that setting a requirement of >=1.3.0 is fine it should get
us<br>
around this.<br>
<br>
-Matt Treinish<br>
<br>
> <br>
> <br>
> On Wed, Jul 17, 2013 at 9:52 AM, Mark Washenberger <<br>
> mark.washenberger@markwash.net> wrote:<br>
> <br>
> ><br>
> ><br>
> ><br>
> > On Wed, Jul 17, 2013 at 7:16 AM, Matt Riedemann <mriedem@us.ibm.com>wrote:<br>
> ><br>
> >> I recently synched up on the latest glance and ran tempest
on my RHEL 6.3<br>
> >> box and the image v2 tests all started failing due to json
schema<br>
> >> validation errors:<br>
> >><br>
> >> *http://paste.openstack.org/show/40684/*<</font></tt><a href=http://paste.openstack.org/show/40684/><tt><font size=2>http://paste.openstack.org/show/40684/</font></tt></a><tt><font size=2>><br>
> >><br>
> >> I found that the version of jsonschema on the system is 0.7,
probably<br>
> >> because of the dependency from warlock in python-glanceclient:<br>
> >><br>
> >> *<br>
> >> </font></tt><a href="https://github.com/openstack/python-glanceclient/blob/master/requirements.txt#L8"><tt><font size=2>https://github.com/openstack/python-glanceclient/blob/master/requirements.txt#L8</font></tt></a><tt><font size=2><br>
> >> *<</font></tt><a href="https://github.com/openstack/python-glanceclient/blob/master/requirements.txt#L8"><tt><font size=2>https://github.com/openstack/python-glanceclient/blob/master/requirements.txt#L8</font></tt></a><tt><font size=2>><br>
> >><br>
> >> I started looking at what recent changes in glance might
be causing the<br>
> >> issue and I found this one:<br>
> >><br>
> >> *https://review.openstack.org/#/c/35134/*<</font></tt><a href=https://review.openstack.org/#/c/35134/><tt><font size=2>https://review.openstack.org/#/c/35134/</font></tt></a><tt><font size=2>><br>
> >><br>
> >> As pointed out in the test output from that patch, since
there is no<br>
> >> version constraint on jsonschema in glance or tempest, it's
getting the<br>
> >> latest version from pypi (2.0.0 in this case).<br>
> >><br>
> >> When I updated my test box to jsonschema 1.3.0, I got past
the schema<br>
> >> validation error.<br>
> >><br>
> >> So this leads me to believe that we need to pin the jsonschema
version in<br>
> >> glance and tempest to >= 1.3.0.<br>
> >><br>
> >> Thoughts?<br>
> >><br>
> ><br>
> > This sounds correct. Another alternative would be to switch back
to the<br>
> > "old" syntax and pin < 1.3.0, which sounds like
its not really forward<br>
> > progress, but might be easier.<br>
> ><br>
> ><br>
> >><br>
> >><br>
> >><br>
> >> Thanks,<br>
> >><br>
> >> *MATT RIEDEMANN*<br>
> >> Advisory Software Engineer<br>
> >> Cloud Solutions and OpenStack Development<br>
> >> ------------------------------<br>
> >> *Phone:* 1-507-253-7622 | *Mobile:* 1-507-990-1889*<br>
> >> E-mail:* *mriedem@us.ibm.com* <mriedem@us.ibm.com><br>
> >> [image: IBM]<br>
> >><br>
> >> 3605 Hwy 52 N<br>
> >> Rochester, MN 55901-1407<br>
> >> United States<br>
> >><br>
> >><br>
> >> _______________________________________________<br>
> >> OpenStack-dev mailing list<br>
> >> OpenStack-dev@lists.openstack.org<br>
> >> </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br>
> >><br>
> >><br>
> ><br>
<br>
<br>
<br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br>
<br>
</font></tt>
<br>