[openstack-dev] [neutron] Need guidance - functional tests and rootwrap

Ihar Hrachyshka ihrachys at redhat.com
Fri Apr 24 14:02:16 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 04/24/2015 03:48 PM, Paul Michali wrote:
> Hi, I'm floundering a bit, and could use some guidance on this...
> 
> For the neutron-vpnaas repo, I am trying to modify the functional
> jobs (dsvm-functional and dsvm-functional-sswan) to act in a
> similar manner to neutron, where devstack is configured, but no
> stacking is performed.
> 
> I'm trying to do the same thing and have the jobs doing the 
> configuration only. Side note: there are two jobs, because there
> are currently two reference implementations of VPN drivers, each of
> which require a different IPSec package installed.
> 
> As part of this setup, in tox.ini, the neutron deploy_rootwrap.sh
> script is called which places the rootwrap filters and config file
> in the repo's .tox/dsvm-functional/etc/neutron/ area (or 
> ./tox/dsvm-functional-sswan/etc/neutron/).
> 
> Now, the issue I see is that tests trying to run "ip" commands,
> are failing saying that the config file is invalid:
> 
> ERROR neutron_vpnaas.services.vpn.common.netns_wrapper [-]
> Incorrect configuration file: /etc/neutron/rootwrap.conf
> 
> As you can see, this is trying to access the rootwrap.conf in 
> /etc/neutron and not the one in 
> /opt/stack/new/neutron-vpnaas/.tox/dsvm-functioanl-sswan/etc/neutron/.
>
>  For Neutron, how is the dsvm-functional job directing the
> rootwrap daemon to use the files in the repo's .tox area?

It may be the case that oslo_config.cfg.find_config_files is involved,
doing its dirty config file autodiscovery job. May I ask you to try
out [1] that is designed to avoid it, and report back with the result?

[1]: https://review.openstack.org/#/c/172354/1/neutron/tests/base.py

Ihar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVOkzoAAoJEC5aWaUY1u57FCMIAJbC3lykBHbEvH//ptsFk5EZ
dCaO3HCvc1vucE1H16gQZMa0NIiaMPz6qo+iWMGpUVMhNh1Eh3NUcXThIemXt2jc
zEvN0Tj1pihWAjOawMhzUMm1lQljj8xpIhXwSTV9fLrXdYlqKgqTiixyTmX3Ef/X
P/cyV3SMs25GwtGDe1cU04+CftCtVZCrNx0WkiPw1r+ES82wwghpzpKu+o0q0eyN
mu6Y6AtrE14rRVg5JCXjtQNih8hcPGMQQseRyr4mBqLC3Ja1qqR/TIut+fMjsM2U
q27VyF89TrjGOSOdqFbxcYEv6r7NHDpKTBGVUJM4sHAPdzO20Cn3Hu1mJ2b0D4s=
=ymLu
-----END PGP SIGNATURE-----



More information about the OpenStack-dev mailing list