Virtual private network services for OpenStack Neutron.
Go to file
Paul Michali d7f65a2dbc VPNaaS: Revise functional test hooks
This commit does several things to allow functional tests to run, using a
DevStack configuration, but without stacking.

First, the gate_hook.sh is modified to specified environment variables
needed for processing, and will call configure_vpn_for_func_testing.sh.

The new configure_for_vpn_func_testing.sh script will first call the Neutron
configure_for_func_testing.sh script (as modified in [1]) to setup DevStack.
The script then installs the IPSec package, based on the functional job, and
will create the vpn_agent.ini file, in case it is needed for tests.

Minor changes are made to the post-test_hook.sh to indicate the location for
the Neutron and VPN repos.

Lastly, tox.ini is modified to place the rootwrap related files into the
virtual environment, copy in the VPN rootwrap filter, set up the rootwrap
commands, and copy the (customized) rootwrap.conf to /etc/neutron.

This last step is needed, because the neutron-vpn-netns-wrapper script that
is (currently) used for StrongSwan, uses /etc/neutron/rootwrap.conf and
doesn't allow overriding. This copying is a simple approach that will work
when multiple functional jobs are running, as the same config is used.

As a future follow-up commit, we could look into modifying the VPN device
drivers to pass the full path to the rootwrap.conf as a argument to the
neutron-vpn-netns-wrapper script (--rootwrap_config). The setting could
be added to the vpnagent.ini config file, available via config, to allow
this to be customized to something other than /etc/neutron (for production
use), and the functional tests could override it to point to the right
virtual environment.

To configure the environment for local run of the functional test, one
can do:
    tools/configure_for_vpn_func_testing.sh <devstack-repo> [-i]

where:
   devstack-repo... Path to devstack repo (/opt/stack/new/devstack
                    when run by gate)
   -i.............. Indicates to install Neutron package dependencies

For StrongSwan, prefix the command with VENV=dsvm-functional-sswan

Ref: [1] https://review.openstack.org/#/c/176064/

Change-Id: I2243b06b3cdbb352dac7bc47d03c830efb87be3c
Closes-Bug: #1445052
Depends-On: Ie490e89c1a65e126ad0a57d062076e472762837e
2015-05-15 13:37:19 -04:00
doc/source After the services split, get neutron-vpnaas Jenkins jobs passing 2014-12-09 00:00:04 -07:00
etc Provide Fedora support for StrongSwan 2015-04-27 16:28:38 +08:00
neutron_vpnaas VPNaaS: Revise functional test hooks 2015-05-15 13:37:19 -04:00
tools VPNaaS: Revise functional test hooks 2015-05-15 13:37:19 -04:00
.coveragerc VPNaaS: Enable coverage tests 2015-02-09 14:18:23 -05:00
.gitignore Fix gitignore of egg files properly 2014-12-19 14:51:52 -07:00
.gitreview Point gitreview at correct repo 2014-12-08 14:49:55 -07:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Merge "Enable undefined-loop-variable pylint check" 2014-11-30 17:04:58 +00:00
.testr.conf After the services split, get neutron-vpnaas Jenkins jobs passing 2014-12-09 00:00:04 -07:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
CONTRIBUTING.rst Update documentation files for VPNaaS 2014-12-15 14:15:46 +00:00
HACKING.rst Update documentation files for VPNaaS 2014-12-15 14:15:46 +00:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
MANIFEST.in Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
README.rst Update documentation files for VPNaaS 2014-12-15 14:15:46 +00:00
requirements.txt Updated from global requirements 2015-04-29 19:19:10 +00:00
setup.cfg Open Liberty development 2015-04-07 15:56:11 +02:00
setup.py Updated from global requirements 2014-04-30 02:41:29 +00:00
test-requirements.txt Updated from global requirements 2015-04-29 19:19:10 +00:00
TESTING.rst Update documentation files for VPNaaS 2014-12-15 14:15:46 +00:00
tox.ini VPNaaS: Revise functional test hooks 2015-05-15 13:37:19 -04:00

Welcome!

This package contains the code for the Neutron VPN as a Service (VPNaaS) service. This includes third-party drivers. This package requires Neutron to run.

External Resources:

The homepage for Neutron is: http://launchpad.net/neutron. Use this site for asking for help, and filing bugs. We use a single Launchpad page for all Neutron projects.

Code is available on git.openstack.org at: <http://git.openstack.org/cgit/openstack/neutron-vpnaas.

Please refer to Neutron documentation for more information: Neutron README.rst