admin user is not logged into Primary Project by default

Bug #1455976 reported by Amogh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Medium
Unassigned

Bug Description

1. Login to Horizon with admin user
2. Grant admin role for admin user to demo project
3. Navigate to Identity->Users-> Edit admin user
Make sure "admin" tenant is the primary project for "admin" user.

4. Log out and login, observe that admin user is logged in to demo tenant by default.

Go to Identity Panel->Users->Edit admin user and set the "admin" tenant as primary project again and save the settings.
Observe that this does not take effect after Log out and login to horizon as admin user to Horizon.

However, If we switch the project to "admin", logout and login as "admin" user, user will be logged in to "admin" Project.

Tags: keystone
Revision history for this message
Amogh (amogh-r-mavinagidad) wrote :
description: updated
Revision history for this message
Amogh (amogh-r-mavinagidad) wrote :

Primary_Project: Screenshot attached

Revision history for this message
Amogh (amogh-r-mavinagidad) wrote :
description: updated
description: updated
Changed in horizon:
assignee: nobody → Canh Truong (canh-v-truong)
status: New → In Progress
affects: horizon → keystone
affects: keystone → horizon
tags: added: keystone
Revision history for this message
Canh Truong (canh-v-truong) wrote :

I try to produce again this bug. but I can not get bug because following your steps I find new bug at: https://bugs.launchpad.net/horizon/+bug/1459065. This seems that the new bug happen before your bug.

Revision history for this message
Mark Vanderwiel (vanderwl) wrote :

A closely related issue is how the initial project is chosen. Looks to be which project works first, and the user default project is ignored.
https://github.com/openstack/django_openstack_auth/blob/master/openstack_auth/backend.py#L193

This shows up in the default non-admin demo user in devstack. The devstack demo user usually has 2 projects, demo and invisible_to_admin, and it's ugly to have to change this back to demo project.

There should be a way to get the default project and at least try that one first if it's been set.

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Unassigning due to inactivity

Changed in horizon:
assignee: Canh Truong (canh-v-truong) → nobody
status: In Progress → New
importance: Undecided → Medium
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.