← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1596588] Re: Metadata Defs: AttributeError: type object 'SchemaBasedModel' has no attribute 'resolving'

 

Root cause here: https://bugs.launchpad.net/horizon/+bug/1596573

** Changed in: horizon
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1596588

Title:
  Metadata Defs: AttributeError: type object 'SchemaBasedModel' has no
  attribute 'resolving'

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  Clicking the Update Metadata button in Horizon today (after updating
  from master and rebuilding the virtual-env) seems to cause the
  following error:

  [27/Jun/2016 15:55:48] "GET /api/glance/images/463e6d27-fe6e-449a-965f-6524d97add45/properties/ HTTP/1.1" 200 2
  error invoking apiclient
  Traceback (most recent call last):
    File "/Users/ttripp/dev/openstack/horizon/openstack_dashboard/api/rest/utils.py", line 126, in _wrapped
      data = function(self, request, *args, **kw)
    File "/Users/ttripp/dev/openstack/horizon/openstack_dashboard/api/rest/glance.py", line 256, in get
      request, filters=filters, **kwargs
    File "/Users/ttripp/dev/openstack/horizon/openstack_dashboard/api/glance.py", line 424, in metadefs_namespace_full_list
      for x in namespaces
    File "/Users/ttripp/dev/openstack/horizon/horizon/utils/memoized.py", line 90, in wrapped
      value = cache[key] = func(*args, **kwargs)
    File "/Users/ttripp/dev/openstack/horizon/openstack_dashboard/api/glance.py", line 319, in metadefs_namespace_get
      metadefs_namespace.get(namespace, resource_type=resource_type)
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/glanceclient/v2/metadefs.py", line 89, in get
      return self.model(**body)
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/warlock/core.py", line 35, in __init__
      base_class.__init__(self, *args, **kwargs)
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/warlock/model.py", line 34, in __init__
      self.validate(d)
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/warlock/model.py", line 141, in validate
      jsonschema.validate(obj, self.schema, resolver=self.resolver)
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/jsonschema/validators.py", line 478, in validate
      cls(schema, *args, **kwargs).validate(instance)
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/jsonschema/validators.py", line 122, in validate
      for error in self.iter_errors(*args, **kwargs):
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/jsonschema/validators.py", line 98, in iter_errors
      for error in errors:
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/jsonschema/_validators.py", line 291, in properties_draft4
      schema_path=property,
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/jsonschema/validators.py", line 114, in descend
      for error in self.iter_errors(instance, schema):
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/jsonschema/validators.py", line 98, in iter_errors
      for error in errors:
    File "/Users/ttripp/dev/openstack/horizon/.venv/lib/python2.7/site-packages/jsonschema/_validators.py", line 195, in ref
      with validator.resolver.resolving(ref) as resolved:
  AttributeError: type object 'SchemaBasedModel' has no attribute 'resolving'
  [27/Jun/2016 15:55:48] "GET /api/glance/metadefs/namespaces/?resource_type=OS::Glance::Image HTTP/1.1" 500 61

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1596588/+subscriptions


References