warlock 1.3 breaks glanceclient metadef models
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.
ns = metadefs[
gc.metadefs_
Warlock <1.3.0 doesn't exhibit the issue.
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/
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/
2016-06-27 11:03:56.943 56346 ERROR searchlight base_class.
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/
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/
2016-06-27 11:03:56.943 56346 ERROR searchlight jsonschema.
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/
2016-06-27 11:03:56.943 56346 ERROR searchlight cls(schema, *args, **kwargs)
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/
2016-06-27 11:03:56.943 56346 ERROR searchlight for error in self.iter_
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/
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/
2016-06-27 11:03:56.943 56346 ERROR searchlight schema_
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/
2016-06-27 11:03:56.943 56346 ERROR searchlight for error in self.iter_
2016-06-27 11:03:56.943 56346 ERROR searchlight File ".venv/
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/
2016-06-27 11:03:56.943 56346 ERROR searchlight with validator.
2016-06-27 11:03:56.943 56346 ERROR searchlight AttributeError: type object 'SchemaBasedModel' has no attribute 'resolving'
Until this is resolved, searchlight indexing for metadefs will fail. To workaround, install warlock<1.3.0.