yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #52861
[Bug 1596598] [NEW] warlock 1.3 breaks glanceclient metadef models
Public bug reported:
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'
** Affects: glance
Importance: Undecided
Status: New
** Affects: searchlight
Importance: High
Status: New
** Also affects: searchlight
Importance: Undecided
Status: New
** Changed in: searchlight
Importance: Undecided => High
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1596598
Title:
warlock 1.3 breaks glanceclient metadef models
Status in Glance:
New
Status in OpenStack Search (Searchlight):
New
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'
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1596598/+subscriptions