when switching project, the dashboard show error "Error: Unauthorized: Unable to retrieve project list." , but we can still list project list by command. if we logout and login again, the dashboard works nomarly.
Traceback (most recent call last):
File "/opt/stack/horizon/openstack_dashboard/dashboards/identity/projects/views.py", line 89, in get_data
marker=marker)
File "/opt/stack/horizon/openstack_dashboard/api/keystone.py", line 290, in tenant_list
tenants = manager.list(**kwargs)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/utils.py", line 336, in inner
return func(*args, **kwargs)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/v3/projects.py", line 106, in list
**kwargs)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/base.py", line 73, in func
return f(*args, **new_kwargs)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/base.py", line 366, in list
self.collection_key)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/base.py", line 113, in _list
resp, body = self.client.get(url, **kwargs)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get
return self.request(url, 'GET', **kwargs)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 206, in request
resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 95, in request
return self.session.request(url, method, **kwargs)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/utils.py", line 336, in inner
return func(*args, **kwargs)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/keystoneclient/session.py", line 397, in request
raise exceptions.from_response(resp, method, url)
Unauthorized: The request you have made requires authentication. (Disable debug mode to suppress these details.) (HTTP 401) (Request-ID: req-70ac41d3-7b89-4017-8617-447358e6dc91)
When running Horizon with keystone v3, the session backend must be switch from cookie-based to a database.
If cookie backend is used, this is one of the symptoms.
Can you try it again using a DB backend?