Keystone v3 fails to authenticate the request because of the incorrect user and project domain variables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
kbaikov |
Bug Description
Steps to reproduce:
1. Create the deployment from env. (source .openrc; rally deployment create --fromenv --name=foo)
.openrc file contains: OS_USER_
2. make sure that 'rally deployment config' shows the correct OS_USER_
3. run it some rally scenario (e.g. rally --debug task start repos/rally/
The same happens if you supply the config file (--config-file rally.conf)
4. get an error: Unauthorized: The request you have made requires authentication. (HTTP 401)
Full error: http://
5. So the breakpoints in keystone/users.py shows us that uclients.nova() is called with incorrect credentials (project_
6. so obviously USER_CONTEXT_OPTS in keystone/users.py overwrites the project_domain and user_domain with "default" value. To confirm that i locally changed the default value to "foo" and all the scenarios run successfully.
7. The Fix: move DEFAULT_CONFIG on Line 141 in keystone/users.py inside the __init__ method of the same class UserGenerator
Similar bugs:
https:/
https:/
Changed in rally: | |
assignee: | nobody → kbaikov (kbaikov) |
Related fix proposed to branch: master /review. openstack. org/387998
Review: https:/