warlock 1.3 breaks glanceclient metadef models

Bug #1596598 reported by Steve McLellan
This bug report is a duplicate of:  Bug #1596573: warlock 1.3.0 breaks a few gates. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Unassigned
OpenStack Searchlight
New
High
Unassigned

Bug Description

Warlock 1.3 was released June 25 2016 and appears to break metadef handling via the v2 API in glanceclient. Partial stacktrace below; you can reproduce it with:

 # gc is a glance client instance
 metadefs = list(gc.metadefs_namespace.list())
 ns = metadefs[0]['namespace']
 gc.metadefs_namespace.get(ns)

Warlock <1.3.0 doesn't exhibit the issue.

2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/glanceclient/v2/metadefs.py", line 89, in get
2016-06-27 11:03:56.943 56346 ERROR searchlight return self.model(**body)
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/warlock/core.py", line 35, in __init__
2016-06-27 11:03:56.943 56346 ERROR searchlight base_class.__init__(self, *args, **kwargs)
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/warlock/model.py", line 34, in __init__
2016-06-27 11:03:56.943 56346 ERROR searchlight self.validate(d)
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/warlock/model.py", line 141, in validate
2016-06-27 11:03:56.943 56346 ERROR searchlight jsonschema.validate(obj, self.schema, resolver=self.resolver)
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/jsonschema/validators.py", line 478, in validate
2016-06-27 11:03:56.943 56346 ERROR searchlight cls(schema, *args, **kwargs).validate(instance)
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/jsonschema/validators.py", line 122, in validate
2016-06-27 11:03:56.943 56346 ERROR searchlight for error in self.iter_errors(*args, **kwargs):
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/jsonschema/validators.py", line 98, in iter_errors
2016-06-27 11:03:56.943 56346 ERROR searchlight for error in errors:
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/jsonschema/_validators.py", line 291, in properties_draft4
2016-06-27 11:03:56.943 56346 ERROR searchlight schema_path=property,
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/jsonschema/validators.py", line 114, in descend
2016-06-27 11:03:56.943 56346 ERROR searchlight for error in self.iter_errors(instance, schema):
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/jsonschema/validators.py", line 98, in iter_errors
2016-06-27 11:03:56.943 56346 ERROR searchlight for error in errors:
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/lib/python2.7/site-packages/jsonschema/_validators.py", line 195, in ref
2016-06-27 11:03:56.943 56346 ERROR searchlight with validator.resolver.resolving(ref) as resolved:
2016-06-27 11:03:56.943 56346 ERROR searchlight AttributeError: type object 'SchemaBasedModel' has no attribute 'resolving'

Revision history for this message
Steve McLellan (sjmc7) wrote :

Until this is resolved, searchlight indexing for metadefs will fail. To workaround, install warlock<1.3.0.

Changed in searchlight:
importance: Undecided → High
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :
Revision history for this message
Alan Pevec (apevec) wrote :

Should this be moved to bug 1596573 to keep it all in one place?

Revision history for this message
Travis Tripp (travis-tripp) wrote :

Done for searchlight.

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.