User <user_id> is unauthorized for tenant <tenant_id> from keystone during rally test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
Medium
|
Alexander Makarov | ||
8.0.x |
Fix Released
|
Medium
|
Alexander Makarov |
Bug Description
* Create user with name XXX, Create tenant with name YYY
* Do authentication of this user
* Delete recently create user & tenant
* Create user and tenant with the same name as in first step
* Try to authenticate multiple times in parallel
* Some of iterations will fail with error message "Unauthorized: User ...."
Simplest way to reproduce bug:
rally task start <task_file.yaml> --task-args '{"c": 10, "t": 300}'
---
Authenticate.
-
args:
runner:
type: "constant"
times: {{t}}
context:
users:
tenants: 1
* During the task validation (we are creating and deleting user & tenant):
2015-09-09 06:10:26.751 14888 DEBUG keystoneclient.
* During the load we are using pre-created user & tenant. And one of iteration failed like:
2015-09-09 06:10:27.774 15091 ERROR rally.benchmark
In other words we are referring during load and validation to the same tenant_id which is impossible If we take into account 3 facts:
- Tenant & User during validation & load are different
- Tenant & User during validation & load have the same name
- Keystone authentication is done via user name and tenant name
It becomes clear that this bug is not related to our testing tool & scripts.
We have some issues in keystone or it's configuration.
Related bug from rally project: https:/
no longer affects: | mos/7.0.x |
This bug hasn't been reproduced with 7.0-182 and has been reproduced with 7.0-259