After https://review.openstack.org/#/c/524406/ is merged, neutron-vpnaas unit test is broken.
http://logs.openstack.org/94/543394/12/check/openstack-tox-py27/61b9f31/
example failure:
ft5.41: neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_ipsec.TestOpenSwanProcess.test_sync_StringException: Traceback (most recent call last):
File "neutron_vpnaas/tests/unit/services/vpn/device_drivers/test_ipsec.py", line 1117, in setUp
super(TestOpenSwanProcess, self).setUp(driver, ipsec_process)
File "neutron_vpnaas/tests/unit/services/vpn/device_drivers/test_ipsec.py", line 419, in setUp
self._make_router_info_for_test()
File "neutron_vpnaas/tests/unit/services/vpn/device_drivers/test_ipsec.py", line 424, in _make_router_info_for_test
**self.ri_kwargs)
File "/home/zuul/src/git.openstack.org/openstack/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 77, in __init__
self.initialize_metadata_iptables()
File "/home/zuul/src/git.openstack.org/openstack/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 1006, in initialize_metadata_iptables
'value': self.agent_conf.metadata_access_mark,
File "/home/zuul/src/git.openstack.org/openstack/neutron-vpnaas/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2519, in __getattr__
raise NoSuchOptError(name)
oslo_config.cfg.NoSuchOptError: no such option metadata_access_mark in group [DEFAULT]
It is one example that we need more efforts to decouple unit tests from neutron repo. neutron-vpnaas unit test initializes a router info per router type. Perhaps we need to avoid initializing router info directly in neutron-vpnaas tests, but it will take more time to address it. Short term solution to fix this bug would be to register related L3 opts in neutron-vpnaas code.