yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01738
[Bug 1023502] Re: Horizon does not use the default tenant
** Changed in: keystone
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1023502
Title:
Horizon does not use the default tenant
Status in OpenStack Dashboard (Horizon):
Confirmed
Status in OpenStack Identity (Keystone):
Fix Released
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_membership table for their user.
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
05274bc19e414c2281166f512a2cf707 ryan {"password": "<SANITIZED>", "enabled": true, "email": "ryanrichard07@xxxxxxxxx", "tenantId": "2925dc74c18a4201a6e1e44f123e077d"}
mysql -B -e "select * from tenant where tenant.id=\"2925dc74c18a4201a6e1e44f123e077d\"" keystone -h localhost;
id name extra
2925dc74c18a4201a6e1e44f123e077d test2 {"enabled": true, "description": "test2"}
id name extra
4da033cf8df747148ddbe77799539188 demo {"enabled": "true", "description": null}
mysql -B -e "select * from user_tenant_membership where user_tenant_membership.user_id=\"05274bc19e414c2281166f512a2cf707\"" keystone -h localhost;
user_id tenant_id
05274bc19e414c2281166f512a2cf707 2925dc74c18a4201a6e1e44f123e077d
05274bc19e414c2281166f512a2cf707 305bddfe0fc7417d9e54245326f26b4f
05274bc19e414c2281166f512a2cf707 4da033cf8df747148ddbe77799539188
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1023502/+subscriptions