users@openstack raises user unfriendly error message while trying to create tmp users without admin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Triaged
|
Low
|
Unassigned |
Bug Description
`users@openstack` context is designed to manage (create&delete) temporary users for workloads.
The attempt to create new users will be processed when the plugin configuration looks like:
{"tenants": 1, "users_per_tenant": 1}
If there is no `admin` user configured for the environment the following error is raised that is not user-friendly at all:
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine During handling of the above exception, another exception occurred:
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine Traceback (most recent call last):
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine File "/Users/
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine with ctx_manager:
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine File "/Users/
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine self.cleanup()
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine File "/Users/
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine ctxlst = self._visited or self._get_
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine File "/Users/
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine return [c(self.
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine File "/Users/
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine return [c(self.
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine File "/Users/
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine self.credential = context[
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine KeyError: 'admin'
2020-11-05 13:01:26.066 44142 ERROR rally.task.engine
description: | updated |
description: | updated |
The following part of Rally task triggers users context to try create temporary users. If you remove it, the existing users should be used:
``` users_per_ tenant" : 1
"contexts": {
"users": {
"tenants": 1,
"
}
},
```