Tempest run --config-file option ineffective
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
High
|
Matthew Treinish |
Bug Description
Tempest Version: tempest 17.0.0
When executing "tempest run --config-file ..." the --config-file option is ignored and the default config file is used.
Example:
-------
(venv) root@box:
tempest initialize_app
2017-10-23 05:45:17.272 43286 INFO tempest [-] Using tempest config file /etc/tempest/
-------
The environment variable TEMPEST_CONFIG_DIR does work:
-------
(venv) root@infra01-
tempest initialize_app
2017-10-23 06:11:38.733 43461 INFO tempest [-] Using tempest config file /root/phobos_
-------
My assessment of the probable cause:
When --config-file is supplied run.py calls CONF.set_
I added a couple of prints, and showed that getattr is indeed called before set_config_path:
-------
(venv) root@infra01-
tempest initialize_app
Setting TempestConfigProxy config 139649446298192
config_path: None
2017-10-23 06:23:00.491 43527 INFO tempest [-] Using tempest config file /etc/tempest/
Using tempest config file /etc/tempest/
Setting TempestConfigProxy path 139649446298192
-------
description: | updated |
Have you tested this on master? There was a bug in the clients class causing a gettattr on import, which I think we should have worked around in:
https:/ /review. openstack. org/#/c/ 494196/
Although we were tracking that on a different command, but it should be the same cause. So I'm thinking we've already fixed this. Can you confirm?