Bug 1186833

Summary: Removing self from a tenant causes projects and user lists to be empty
Product: Red Hat OpenStack Reporter: Timothy Williams <tiwillia>
Component: python-django-horizonAssignee: Matthias Runge <mrunge>
Status: CLOSED DUPLICATE QA Contact: Ido Ovadia <iovadia>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0 (Juno)CC: aberezin, aortega, jpichon, mrunge, yeylon
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 6.0 (Juno)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-11 10:24:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***