Unable to switch to non-primary project

Bug #1079982 reported by Jake Dahn
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Undecided
Unassigned

Bug Description

Currently I am not able to switch between projects, or at least it is completely un-obvious.

I have a user who belongs to two projects. When i login with horizon I am logged into the user's default tenant. I am unable to switch between projects.

Expected: When a user who belongs to multiple projects logs into horizon, they should be able to switch between the different projects.

Actual: When a user who belongs to multiple projects logs into horizon, they are stuck in context of their default tenant.

note: I'm pretty sure this used to exist as a dropdown in the place depicted by the attached screenshot.

Revision history for this message
Jake Dahn (jakedahn) wrote :
Revision history for this message
Jake Dahn (jakedahn) wrote :

Just looking at the keystone db it appears there isnt a concept of default tenant any more, but I am being logged into the first tenant my user was associated with.

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

The project switcher dropdown works for me. Can you give more information on your installation and config?

Changed in horizon:
status: New → Incomplete
Revision history for this message
Jake Dahn (jakedahn) wrote :

It is a relatively dated devstack installation

Horizon is at this commit:

commit 0e328995ec3fa8a04af8b687d2a7462fd8029f1c
Merge: 241ee81 4c88b9b
Author: Jenkins <email address hidden>
Date: Tue Nov 13 21:29:14 2012 +0000

    Merge "Added a check for volume service in quota functions"

Revision history for this message
Tomoe Sugihara (tomoe) wrote :

I have a same problem on the HEAD of stable/folsom branch(commit log below) on Ubuntu Precise.

commit 7f038bddc26e5bf8fe99f598a2a2369725da2ddc
Merge: 65c2ab8 53954a7
Author: Jenkins <email address hidden>
Date: Wed Nov 14 20:51:27 2012 +0000

    Merge "Fixes JavaScript count bug in tables." into stable/folsom

Revision history for this message
Jinuk Kim (rein) wrote :

I have a same problem. (I'm also on HEAD of stable/folsom branch)

commit da9a19c7a9aad6c57eb3540438342ca6bbada036
Author: Mark McLoughlin <email address hidden>
Date: Thu Nov 29 21:35:07 2012 +0000

user.py:User:authroized_tenants in openstack_auth fails to connect keystone, beacuase self.endpoint is not set properly.
If I set this value to proper keystone endpoint, tenant switcher operates correctly.

Revision history for this message
Jinuk Kim (rein) wrote :

It seems that problem is not in horizon but in openstack_auth.

openstack_auth uses keystone v2.0 client without 'endpoint' parameter.
And openstack_auth uses 'endpoint' parameter as management_url, which in turn used by user.endpoint and session['region_endpoint'].

Revision history for this message
Tomoe Sugihara (tomoe) wrote :

Hi Jinuk,

> user.py:User:authroized_tenants in openstack_auth fails to connect keystone, beacuase self.endpoint is not set properly.
> If I set this value to proper keystone endpoint, tenant switcher operates correctly.

Could you show me how you did this?
Thanks!

Revision history for this message
Jinuk Kim (rein) wrote :

Hi Tomoe,

Upstream maintainer updated package. (See tag 1.0.6 in https://github.com/gabrielhurley/django_openstack_auth/tags )

Cheers.

Revision history for this message
Tomoe Sugihara (tomoe) wrote :

Hi Jinuk,

Awesome! That fixed the problem. Thanks for the info.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.