[Openstack] [Ocata][Fuel] The request you have made requires authentication

Waqas Riaz waqasriaz234 at gmail.com
Tue Mar 14 14:21:52 UTC 2017


Hi,

I have OpenStack Ocata with Fuel 11 on two nodes (1 Control, 1 Compute). I
am facing issues in accessing nova related panels (flavors, instances,
hypervisors etc) on dashboard. I have checked that SELINUX is disabled.

Can anyone please guide me how to solve this issue?

Details are below:

After successful installation, Horizon dashboard is giving me following
error ONLY on panels relevant to nova (flavors, instances, hypervisors ...).

"Unauthorized. Please try logging in again."

Issue is observed in both admin and Project panels.
All other panels related to networks, images et.al are accesible and CLI
based commands are also working correctly.

/var/log/horizon/horizon_error.log  shows following error when flavors
panel is clicked on dashboard.

2017-03-14 14:04:38,594 17745 WARNING novaclient.v2.client Property
`management_url` is deprecated for SessionClient. It should be set via
`endpoint_override` variable while class initialization.
2017-03-14 14:04:38,672 17745 ERROR horizon.exceptions Unauthorized: The
request you have made requires authentication. (HTTP 401) (Request-ID:
req-48640017-d7bb-4f4d-b568-03a2c7416c17)
Traceback (most recent call last):
  File
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/flavors/views.py",
line 69, in get_data
    reversed_order=reversed_order)
  File "/usr/lib/python2.7/dist-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/nova.py",
line 581, in flavor_list_paged
    sort_dir=sort_dir)
  File "/usr/lib/python2.7/dist-packages/novaclient/v2/flavors.py", line
138, in list
    return self._list("/flavors%s%s" % (detail, query_string), "flavors")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 254, in
_list
    resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line
217, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 74, in
request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line
374, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line
142, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 101,
in inner
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line
491, in request
    auth_headers = self.get_auth_headers(auth)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line
818, in get_auth_headers
    return auth.get_headers(self, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/plugin.py", line 90,
in get_headers
    token = self.get_token(session)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/identity/base.py",
line 90, in get_token
    return self.get_access(session).auth_token
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/identity/base.py",
line 136, in get_access
    self.auth_ref = self.get_auth_ref(session)
  File
"/usr/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py",
line 198, in get_auth_ref
    return self._plugin.get_auth_ref(session, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/identity/v2.py",
line 65, in get_auth_ref
    authenticated=False, log=False)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line
766, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 101,
in inner
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line
655, in request
    raise exceptions.from_response(resp, method, url)
Unauthorized: The request you have made requires authentication. (HTTP 401)
(Request-ID: req-48640017-d7bb-4f4d-b568-03a2c7416c17)


Regards,
Waqas Riaz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170314/8a6e1067/attachment.html>


More information about the Openstack mailing list