Bug 1259626 - Horizon: Can not switch project from project selector
Summary: Horizon: Can not switch project from project selector
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-openstack-auth
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Matthias Runge
QA Contact: Ido Ovadia
URL:
Whiteboard:
: 1316600 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-03 08:33 UTC by Ido Ovadia
Modified: 2016-11-14 19:58 UTC (History)
7 users (show)

Fixed In Version: python-django-openstack-auth-2.0.1-3.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-14 19:58:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1487372 0 None None None 2016-01-11 09:30:05 UTC
Red Hat Product Errata RHBA-2016:2710 0 normal SHIPPED_LIVE python-django-horizon bug fix advisory 2016-11-15 00:54:47 UTC

Description Ido Ovadia 2015-09-03 08:33:43 UTC
Description of problem:
=======================
When configuring token providers to pki 
provider = keystone.token.providers.pki.Provider
Switching between projects requires relogin

Version-Release number of selected component (if applicable):
=============================================================
python-django-openstack-auth-1.2.0-4.el7ost.noarch

How reproducible:
=================
100%

Steps to Reproduce:
===================
1. Create a user members of TWO projects.
2. Switch keystone to use pki tokens
   /etc/keystone/keystone.conf
   set:
   provider = keystone.token.providers.pki.Provider
   where provider was 
   provider = keystone.token.providers.uuid.Provider

3. Restart keystone or httpd (depending on deployment method)
4. Log that user from 1. into horizon
5. Switch project on project selector on upper corner. 

Actual results:
===============
Selector appears but switching works only after relogin

Expected results:
=================
Switching works immediately (without relogin)  

Additional info:
================
When keystone use uuid switching works without relogin

Comment 3 Matthias Runge 2015-12-17 14:50:00 UTC
under the light of keystone recommending to use uuid or even fernet tokens rather than pki tokens, should we just document not to use them?

And there is:
http://lists.openstack.org/pipermail/openstack-dev/2015-December/082368.html

Comment 4 Matthias Runge 2016-01-11 09:29:29 UTC
This patch might be related here;
https://review.openstack.org/#/c/264755/

Unfortunately, it didn't work in my tests.

Comment 5 Itxaka 2016-04-19 09:08:24 UTC
Matthias seems to be rigth. I did a backport of the patch posted to kilo django_openstack_auth and changing projects seems to work perfectly with pki tokens now.

Comment 6 Itxaka 2016-06-10 11:44:42 UTC
The backport seems to be a bit difficult to do against 7.0 as a lot has changed and requires a big change downstream. Would be better to target 8.0 instead as the backport is much cleaner.

Comment 7 Itxaka 2016-06-10 11:52:20 UTC
Done the patch against 8.0

Comment 8 Matthias Runge 2016-06-22 09:51:22 UTC
*** Bug 1316600 has been marked as a duplicate of this bug. ***

Comment 10 Lon Hohberger 2016-11-07 21:16:06 UTC
Created a user with two projects on OSP8 with PKI tokens as noted in comment #0 and was able to switch between them using dropbox in upper right of screen.

[root@rhel7 ~(keystone_admin)]# rpm -q openstack-dashboard
openstack-dashboard-8.0.1-6.el7ost.noarch
[root@rhel7 ~(keystone_admin)]# rpm -q python-django-openstack-auth
python-django-openstack-auth-2.0.1-3.el7ost.noarch

Comment 12 errata-xmlrpc 2016-11-14 19:58:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2710.html


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