Horizon does not use the default tenant
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Won't Fix
|
Undecided
|
Unassigned | ||
OpenStack Identity (keystone) |
Fix Released
|
High
|
Dolph Mathews |
Bug Description
If a user is part of multiple tenants and logs into the dashboard, the user will not be placed into their default tenant. It appears that they get placed into the tenant that corresponds with the last row in the user_tenant_
Steps to reproduce:
Create user and place into two or more tenants.
Log into the dashboard and confirm which tenant the user logs into.
If you get dropped into a tenant that is not your default, compare with the database rows.
If you are dropped into the default tenant, try creating more tenants and changing your default tenant.
Example database entries:
mysql -B -e "select * from user where user.name=\"ryan\"" keystone -h localhost;
id name extra
05274bc19e414c2
mysql -B -e "select * from tenant where tenant.
id name extra
2925dc74c18a420
id name extra
4da033cf8df7471
mysql -B -e "select * from user_tenant_
user_id tenant_id
05274bc19e414c2
05274bc19e414c2
05274bc19e414c2
I will always get dropped in the demo tenant which is the last row in the database even though my "default" tenant is set to test2.
Changed in keystone: | |
status: | New → Confirmed |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | grizzly-rc1 → 2013.1 |
Changed in horizon: | |
assignee: | Gabriel Hurley (gabriel-hurley) → nobody |
importance: | Wishlist → Medium |
milestone: | none → havana-1 |
assignee: | nobody → Lin Hua Cheng (lin-hua-cheng) |
Changed in horizon: | |
milestone: | havana-1 → havana-2 |
Changed in horizon: | |
status: | Confirmed → In Progress |
I'd like to point out that in the extra column, the test2 "enabled" key is set to true, while the demo enabled key is set to "true". Yet another reason why putting serialized structured relational data into a BLOB/TEXT field is not a good idea.