← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1468315] [NEW] horizon doesn't work well, when volumev2 endpoint doesn't exist

 

Public bug reported:

When volumev2 is deleted from keystone endpoint list, horizon fails,
many errors popping up:

A more detailed stacktrace is this:

2015-06-24 08:12:59,579 11778 ERROR horizon.tables.base Error while checking action permissions.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1260, in _filter_action
    return action._allowed(request, datum) and row_matched
  File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 136, in _allowed
    self.allowed(request, datum))
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 108, in allowed
    limits = api.cinder.tenant_absolute_limits(request)
  File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 90, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 547, in tenant_absolute_limits
    limits = cinderclient(request).limits.get().absolute
  File "/usr/lib/python2.7/site-packages/cinderclient/v2/limits.py", line 91, in get
    return self._get("/limits", "limits")
  File "/usr/lib/python2.7/site-packages/cinderclient/base.py", line 149, in _get
    resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 302, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 269, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 239, in request
    **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 451, in request
    prep = self.prepare_request(req)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 382, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 304, in prepare
    self.prepare_url(url, params)
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 362, in prepare_url
    to_native_string(url, 'utf8')))
MissingSchema: Invalid URL '/limits': No schema supplied. Perhaps you meant http:///limits?
2015-06-24 08:13:04,212 11777 WARNING openstack_dashboard.api.cinder Cinder v2 requested but no 'volumev2' service type available in Keystone catalog.
2015-06-24 08:13:04,213 11777 WARNING horizon.exceptions Recoverable error: Invalid URL '/snapshots/detail': No schema supplied. Perhaps you meant http:///snapshots/detail?

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
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/1468315

Title:
  horizon doesn't work well, when volumev2 endpoint doesn't exist

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  When volumev2 is deleted from keystone endpoint list, horizon fails,
  many errors popping up:

  A more detailed stacktrace is this:

  2015-06-24 08:12:59,579 11778 ERROR horizon.tables.base Error while checking action permissions.
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1260, in _filter_action
      return action._allowed(request, datum) and row_matched
    File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 136, in _allowed
      self.allowed(request, datum))
    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 108, in allowed
      limits = api.cinder.tenant_absolute_limits(request)
    File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 90, in wrapped
      value = cache[key] = func(*args, **kwargs)
    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 547, in tenant_absolute_limits
      limits = cinderclient(request).limits.get().absolute
    File "/usr/lib/python2.7/site-packages/cinderclient/v2/limits.py", line 91, in get
      return self._get("/limits", "limits")
    File "/usr/lib/python2.7/site-packages/cinderclient/base.py", line 149, in _get
      resp, body = self.api.client.get(url)
    File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 302, in get
      return self._cs_request(url, 'GET', **kwargs)
    File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 269, in _cs_request
      **kwargs)
    File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 239, in request
      **kwargs)
    File "/usr/lib/python2.7/site-packages/requests/api.py", line 50, in request
      response = session.request(method=method, url=url, **kwargs)
    File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 451, in request
      prep = self.prepare_request(req)
    File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 382, in prepare_request
      hooks=merge_hooks(request.hooks, self.hooks),
    File "/usr/lib/python2.7/site-packages/requests/models.py", line 304, in prepare
      self.prepare_url(url, params)
    File "/usr/lib/python2.7/site-packages/requests/models.py", line 362, in prepare_url
      to_native_string(url, 'utf8')))
  MissingSchema: Invalid URL '/limits': No schema supplied. Perhaps you meant http:///limits?
  2015-06-24 08:13:04,212 11777 WARNING openstack_dashboard.api.cinder Cinder v2 requested but no 'volumev2' service type available in Keystone catalog.
  2015-06-24 08:13:04,213 11777 WARNING horizon.exceptions Recoverable error: Invalid URL '/snapshots/detail': No schema supplied. Perhaps you meant http:///snapshots/detail?

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


Follow ups

References