oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some config files: /etc/neutron/neutron.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Ihar Hrachyshka | ||
Kilo |
New
|
Undecided
|
Unassigned |
Bug Description
When running lbaas unit tests on a system where neutron.conf is installed into /etc/neutron, and if the file does not have read permissions for the user running unit tests, I get the following error:
{0} neutron_
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "neutron_
File "neutron_
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "neutron_
File "neutron_
File "/home/
**kwargs)
File "/home/
oslo_
File "/home/
**kwargs)
File "/home/
oslo_
This is because oslo.config tries to autodiscover config files, and read them, in case they exist. Unit tests should be isolated from those files.
Changed in neutron: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-1 → 7.0.0 |
Fix proposed to branch: master /review. openstack. org/172354
Review: https:/