yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #71997
[Bug 1758062] Re: fwaas unit tests are failing on networking-midonet gate
Reviewed: https://review.openstack.org/555699
Committed: https://git.openstack.org/cgit/openstack/neutron-fwaas/commit/?id=e1231cd6eabb0992820d0c0fdc629c8a96b5f6b9
Submitter: Zuul
Branch: master
commit e1231cd6eabb0992820d0c0fdc629c8a96b5f6b9
Author: YAMAMOTO Takashi <yamamoto@xxxxxxxxxxxx>
Date: Fri Mar 23 17:40:53 2018 +0900
tests: don't rely on configuration files outside tests directory
Following the similar Neutron change. [1]
Recently, the way sibling projects are installed were changed.
It broke networking-midonet gate as neutron-fwaas was installed
under site-packages, where the etc directory is not available.
[1] If1f5ebd981cf06558d5102524211799676068889
Closes-Bug: #1758062
Change-Id: I72aeeac8cbe07f6fc6cb4acf54fb632587d890a0
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1758062
Title:
fwaas unit tests are failing on networking-midonet gate
Status in networking-midonet:
In Progress
Status in neutron:
Fix Released
Bug description:
After the recent CI changes, fwaas unit tests are broken.
ft1.16: midonet.neutron.tests.unit.test_extension_fwaas.FirewallTestCaseML2.test_delete_error_in_midonet_does_not_delete_firewall_StringException: Traceback (most recent call last):
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron_fwaas/tests/unit/services/firewall/test_fwaas_plugin.py", line 317, in setUp
super(TestFirewallPluginBase, self).setUp(fw_plugin=FW_PLUGIN_KLASS)
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron_fwaas/tests/unit/services/firewall/test_fwaas_plugin.py", line 93, in setUp
plugin=plugin, service_plugins=service_plugins, ext_mgr=ext_mgr)
File "midonet/neutron/tests/unit/test_midonet_plugin_ml2.py", line 112, in setUp
self.setup_parent(service_plugins=service_plugins, ext_mgr=ext_mgr)
File "midonet/neutron/tests/unit/test_midonet_plugin_ml2.py", line 108, in setup_parent
MidonetPluginConf.setUp(self, parent_setup)
File "midonet/neutron/tests/unit/test_midonet_plugin_ml2.py", line 81, in setUp
parent_setup()
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron/tests/unit/db/test_db_base_plugin_v2.py", line 112, in setUp
super(NeutronDbPluginV2TestCase, self).setUp()
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron/tests/unit/testlib_api.py", line 394, in setUp
super(WebTestCase, self).setUp()
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron/tests/unit/testlib_api.py", line 289, in setUp
super(BaseSqlTestCase, self).setUp()
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron/tests/base.py", line 329, in setUp
self.setup_config()
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron_fwaas/tests/base.py", line 44, in setup_config
self.config_parse(args=args)
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron/tests/base.py", line 305, in config_parse
config.init(args=args)
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron/common/config.py", line 78, in init
**kwargs)
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2498, in __call__
else sys.argv[1:])
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 3162, in _parse_cli_opts
return self._parse_config_files()
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 3198, in _parse_config_files
self._oparser.parse_args(self._args, namespace)
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2326, in parse_args
return super(_CachedArgumentParser, self).parse_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1701, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1733, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1939, in _parse_known_args
start_index = consume_optional(start_index)
File "/usr/lib/python2.7/argparse.py", line 1879, in consume_optional
take_action(action, args, option_string)
File "/usr/lib/python2.7/argparse.py", line 1807, in take_action
action(self, namespace, argument_values, option_string)
File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 1741, in __call__
raise ConfigDirNotFoundError(values)
oslo_config.cfg.ConfigDirNotFoundError: Failed to read config file directory: /home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py27/local/lib/python2.7/site-packages/neutron_fwaas/tests/./../../etc/neutron/policy.d
To manage notifications about this bug go to:
https://bugs.launchpad.net/networking-midonet/+bug/1758062/+subscriptions