Bug 1186833 - Removing self from a tenant causes projects and user lists to be empty
Summary: Removing self from a tenant causes projects and user lists to be empty
Keywords:
Status: CLOSED DUPLICATE of bug 1119386
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 6.0 (Juno)
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: 6.0 (Juno)
Assignee: Matthias Runge
QA Contact: Ido Ovadia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-28 16:20 UTC by Timothy Williams
Modified: 2015-02-11 10:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-11 10:24:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1252341 0 None None None Never

Description Timothy Williams 2015-01-28 16:20:16 UTC
Description of problem:
As an admin user, the project and user list fail to propagate if the user removes himself from a tenant.

For example, the user 'admin' is an admin user for the 'test' tenant. Logged in as the 'admin' user, I use the 'modify users' button to remove the admin user from the 'test' tenant. Afterwards, the below error is reported in the horizoon log and the project and user lists do not propagate with the projects and users:

2015-01-28 16:14:59,432 20377 ERROR horizon.exceptions Unauthorized: The request you have made requires authentication. (Disable debug mode to suppress these details.) (HTTP 401)
Traceback (most recent call last):
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/identity/projects/views.py", line 86, in get_data
    marker=marker)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/keystone.py", line 267, in tenant_list
    tenants = manager.list(limit, marker)
  File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/tenants.py", line 123, in list
    tenant_list = self._list('/tenants%s' % query, 'tenants')
  File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 112, in _list
    resp, body = self.client.get(url, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 629, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 621, in _cs_request
    return self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 596, in request
    resp = super(HTTPClient, self).request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/baseclient.py", line 21, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 346, 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)

Signing out and logging back into horizon resolves the issue.

Version-Release number of selected component (if applicable):
python-django-horizon-2014.2.1-5.el7ost.noarch

How reproducible:
Always

Steps to Reproduce:
1. Log into horizon as an admin user and add yourself to a project through the identity panel.
2. Remove yourself from the project
3.

Actual results:
Project and user lists do not show projects and users until signing out and logging back in again. The user is successfully removed from the tenant.

Expected results:
User removed from tenant, project and user lists propagate

Comment 2 Matthias Runge 2015-02-04 11:55:54 UTC
this looks like: https://bugs.launchpad.net/horizon/+bug/1252341

Comment 4 Matthias Runge 2015-02-11 10:24:35 UTC

*** This bug has been marked as a duplicate of bug 1119386 ***


Note You need to log in before you can comment on or make changes to this bug.