sdnvpn.git
7 years agoMerge "Refactoring"
Jose Lausuch [Thu, 15 Sep 2016 13:04:00 +0000 (13:04 +0000)]
Merge "Refactoring"

7 years agoRefactoring 75/20875/3
Romanos Skiadas [Fri, 9 Sep 2016 12:59:16 +0000 (15:59 +0300)]
Refactoring

- Wrap common methods that use globals in a Class
 `get_ping_status` and `add_to_summary` depended on globals for
  statefulness. The easiest way to refactor them was to convert them
  into methods and the globals they used into instance variables.
- Move `generate_userdata_common` and `generate_userdata_with_ssh` to
  the utils module.
- Make flavor a kwarg in create_instance.
  Add a defaults section in config.yaml with flavor. This value is used
  if flavor is not passed via kwargs.
- Substitute some sleeps with `wait_for_instances_up` which will
  wait until a dhcp lease success message appears in the instance's log.
- Add functions that wait until router and network association is
  completed. These do not replace the sleeps but make the tests more
  deterministic.
- Remove unused ping_timeout from config.yaml

Change-Id: Ia68ebf47aaa5a58c4e20267f1476db626f015a7c
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
Co-Authored-by: George Paraskevopoulos <geopar@intracom-telecom.com>
7 years agoRemove trilling whitespace 83/21083/1
Nikolas Hermanns [Wed, 14 Sep 2016 07:14:38 +0000 (09:14 +0200)]
Remove trilling whitespace

Change-Id: I47108a141390499570677253a5cdad78ebbe9240
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
7 years agoMerge "Updating release notes for Colorado"
Nikolas Hermanns [Mon, 12 Sep 2016 08:30:54 +0000 (08:30 +0000)]
Merge "Updating release notes for Colorado"

7 years agoUse get_functest_config where appropriate 63/20763/2
Romanos Skiadas [Fri, 9 Sep 2016 11:31:47 +0000 (14:31 +0300)]
Use get_functest_config where appropriate

The latest functest enforces using `get_parameter_from_yaml` to only
get test specific parameters from the config file.
`get_functest_config` is given to get functest configuration parameters.

Change-Id: Icb6ec2ed4a9d6c278bf1c403d4d0c4f4b21e51b7
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
7 years agoUpdating release notes for Colorado 57/20757/2
Nikolas Hermanns [Fri, 9 Sep 2016 10:51:53 +0000 (12:51 +0200)]
Updating release notes for Colorado

Change-Id: Ia4abb1e64ef8643e81953b00ae7e3d5a87640cf4
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
7 years agoRefactor some common methods into utils 39/20739/3
Romanos Skiadas [Wed, 7 Sep 2016 12:35:52 +0000 (12:35 +0000)]
Refactor some common methods into utils

- generete_ping_userdata(): This method was exactly the same in two
  tests
- create_instance(): The various implementations of this method had
  almost the same signature, but not quite. This was fixed by adding
  extra arguments as needed. Also a global variable was used in the
  function, which was converted into a parameter.
- create_network(): The three implementations of create_network had
  three different signatures and returned different variables. They
  were all unified in a single create_network class and the calls to
  create_network were adjusted accordingly.

Revision 1: Fix flake8 violations
Revision 2: Rename logger in utils

Change-Id: Ib6cfe798dc561a69eb50c901e3aa71c19d465821
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
7 years agoAdapt some calls to functest_utils that don't require logger 65/20365/1
jose.lausuch [Mon, 5 Sep 2016 15:37:35 +0000 (17:37 +0200)]
Adapt some calls to functest_utils that don't require logger

Due to a small refactor of some functions in Functest,
the calls to those are outdated and fail.

Change-Id: I1fdce5d343fc55ecd1b25a837608c7172047f22e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoAdd Router Association testcase 39/20139/6
George Paraskevopoulos [Thu, 1 Sep 2016 13:09:40 +0000 (16:09 +0300)]
Add Router Association testcase

JIRA: SDNVPN-49

This functional test is a variant of testcase 1. Instead of associating
Network 1 and Network 2 to the BGP VPN, we connect Network 1 to a
router and associate that router and Network 2 to the VPN.

The testcase is disabled for now.

Test setup procedure:
- Set up VM1 and VM2 on Node1 and VM3 on Node2, all having ports in the
  same Neutron Network N1 and having 10.10.10/24 addresses in subnet
  SN1. N1/SN1 are connected to router R1.
- Set up VM4 on Node1 and VM5 on Node2, both having ports in Neutron
  Network N2 and having 10.10.11/24 addresses in subnet SN2.

Test execution:
1. Create VPN1 with eRT<>iRT and associate R1 to it
 - Ping from VM1 to VM2 should work
 - Ping from VM1 to VM3 should work
- Ping from VM1 to VM4 should not work
2. Associate SN2 to VPN1
 - Ping from VM4 to VM5 should work
 - Ping from VM1 to VM4 should not work
 - Ping from VM1 to VM5 should not work
3. Change VPN1 so that iRT=eRT
 - Ping from VM1 to VM4 should work
 - Ping from VM1 to VM5 should work

Jira task in SDNVPN: https://jira.opnfv.org/browse/SDNVPN-49

Change-Id: I0e805b042eb645e923f1639179c4c2c37be17835
Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
7 years agoSmall final improvements in userguide. 39/19339/1
Tim Irnich [Mon, 22 Aug 2016 18:12:52 +0000 (20:12 +0200)]
Small final improvements in userguide.

Change-Id: I065d96cf9692155c336476ec3ad4f4bc92287740
Signed-off-by: Tim Irnich <tim.irnich@ericsson.com>
7 years agoAdd more information how to manually configure 81/19181/1
Nikolas Hermanns [Mon, 22 Aug 2016 10:29:48 +0000 (12:29 +0200)]
Add more information how to manually configure

Change-Id: I143346d5268ad53eafcb8d2f5420173440f4c2a3
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
7 years agoadding example to the userguide 57/19057/1
Nikolas Hermanns [Fri, 19 Aug 2016 13:57:05 +0000 (15:57 +0200)]
adding example to the userguide

Change-Id: I501845e5200f6df638842dff93ee12346a75ec03
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
7 years agoMoving documentation content into new template 57/18657/4
Tim Irnich [Mon, 15 Aug 2016 06:56:08 +0000 (08:56 +0200)]
Moving documentation content into new template

JIRA: DOCS-103, DOCS-134, SDNVPN-40

Moving documentation content into new feature description and user guide template.

Change-Id: I2c1549b44ef43e28961f1a0d2885adc0dd161910
Signed-off-by: Tim Irnich <tim.irnich@ericsson.com>
7 years agoMerge "Applying the userguide template for the SDN VPN userguide documentation."
Tim Irnich [Fri, 12 Aug 2016 11:56:07 +0000 (11:56 +0000)]
Merge "Applying the userguide template for the SDN VPN userguide documentation."

7 years agoApplying the userguide template for the SDN VPN userguide documentation. 85/18385/4
ChristopherPrice [Thu, 11 Aug 2016 06:25:14 +0000 (08:25 +0200)]
Applying the userguide template for the SDN VPN userguide documentation.

Added a draft of the scenario description template for consideration and review.
This is a draft migrating the existing userguide text into the proposed
feature project userguide format for Colorado.  Please review and comment,
correct and merge as needed.  (this is the prototype)

Change-Id: Ia82a0c3ba0f654efc2892aac3a3b2d217ed2ad27
Signed-off-by: ChristopherPrice <christopher.price@ericsson.com>
7 years ago[DOC] Automatic Installation 67/18167/5
Nikolas Hermanns [Mon, 8 Aug 2016 16:17:55 +0000 (18:17 +0200)]
[DOC] Automatic Installation

Change-Id: I067046949d9cd4a764c279c053a2f54b30645fda
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
7 years agoAdding New Comitters 63/18163/1
Aric Gardner [Mon, 8 Aug 2016 16:15:27 +0000 (12:15 -0400)]
Adding New Comitters

Change-Id: Ia237ab7347c789761e36bec1cf28372f8fbcefbc
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
7 years agoColorado documentation: scenario install procedure 81/17981/10
Tim Irnich [Wed, 3 Aug 2016 19:08:40 +0000 (21:08 +0200)]
Colorado documentation: scenario install procedure

JIRA: DOCS-134

Adding structure of docs for installation
procedure for virtual deployment.

Introducing a scenario-specific directory level.

Change-Id: I01de7d3b876ba9d5f7b71b91c857842fd3badeef
signed-off-by: Tim Irnich <tim.irnich@ericsson.com>

7 years agoReturn -1 if the tests fail 01/17601/2
jose.lausuch [Wed, 27 Jul 2016 08:29:07 +0000 (10:29 +0200)]
Return -1 if the tests fail

Change-Id: I19c3e8b979376a38b8a5838b7a41a3915f90b57f
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoRemove logger from openstack_utils function calls 55/17455/1
jose.lausuch [Sat, 23 Jul 2016 09:44:49 +0000 (11:44 +0200)]
Remove logger from openstack_utils function calls

Change-Id: Iebaa6f15b16f91e451662e13e0542f863f93da52
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoReport overall status of the test results to DB 31/17231/2
jose.lausuch [Wed, 20 Jul 2016 14:22:11 +0000 (16:22 +0200)]
Report overall status of the test results to DB

The reporting Dashboard looks for the test case called
'bgpvpn'. Now, we report the overall status of the tests
into that test case and also each one separatelly.

http://testresults.opnfv.org/test/api/v1/results?case=bgpvpn

Also, fix the 3 flake8 violations

Change-Id: I5b0d816894bf16d3d11085437f1556b5d0446d81
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoCreate a blacklist of Tempest test cases 77/16977/1
jose.lausuch [Fri, 15 Jul 2016 12:02:52 +0000 (14:02 +0200)]
Create a blacklist of Tempest test cases

JIRA: FUNCTEST-369

Change-Id: Ib8bd3dca7c5653e282f7c58023db6bb743db9c6d
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoAdd support to push the results to the DB 07/16907/8
jose.lausuch [Thu, 14 Jul 2016 11:40:35 +0000 (13:40 +0200)]
Add support to push the results to the DB

JIRA: SDNVPN-19

The test scripts now return a json object with
the following format:

{"status": criteria, "details": results}

where
criteria: "PASS"|"FAILED" (result of the test case)
details: free output that will be printed to the console
and pushed to the DB

Change-Id: I9e5e0c3b6cb5f4b060929b71a06f6e4f95f814fb
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Fix testcase2"
Tim Irnich [Thu, 14 Jul 2016 09:14:31 +0000 (09:14 +0000)]
Merge "Fix testcase2"

7 years agoAdd tempest wrapper to enable the bgpvpn plugin for tempest 95/16895/1
jose.lausuch [Thu, 14 Jul 2016 08:58:33 +0000 (10:58 +0200)]
Add tempest wrapper to enable the bgpvpn plugin for tempest

The tempest.conf is copied to bgpvpn_tempest.conf to be updated
with the needed parameters, in this case, only adding
bgpvpn=True.
The way to execute this module only is with the option -C.
For example:

run_tempest.sh -C bgpvpn_tempest.conf -t
  -N -- networking_bgpvpn_tempest

Change-Id: I465961bc619f59355be964eb94f916cb877b2273
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoFix testcase2 71/16771/3
jose.lausuch [Tue, 12 Jul 2016 16:25:30 +0000 (18:25 +0200)]
Fix testcase2

JIRA: SDNVPN-31

It seems due to the merge conflict, some of the lines got
reordered and the script failed.

Also, added the private key for the instances.

Change-Id: I58c3dfe5ba2d43e0749ca5cd08b3a87221a68b66
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoBugfix run_tests fails to run python scripts 63/16763/2
jose.lausuch [Tue, 12 Jul 2016 15:28:31 +0000 (17:28 +0200)]
Bugfix run_tests fails to run python scripts

Change-Id: Ibd97de79eb8d824120eb2a1b80017ff1f9f99f14
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoAdding test case 2 69/16769/1
Tim Irnich [Fri, 8 Jul 2016 15:59:03 +0000 (17:59 +0200)]
Adding test case 2

JIRA: SDNVPN-31

Test case 2 checks tenant IP address space separation.

Now done with this change.

Change-Id: I07ef04de4195b2892c837ac87e53146d133755c6

Signed-off-by: Tim Irnich <tim.irnich@ericsson.com>
7 years agoAdd config for testcase 2 35/16635/2
jose.lausuch [Sat, 9 Jul 2016 08:45:47 +0000 (10:45 +0200)]
Add config for testcase 2

JIRA:SDNVPN-31

Change-Id: I0e15afa737e4cc65fb6235ed4400ea6b1523a327
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoAdd testcase1 implementation 33/16333/11
jose.lausuch [Mon, 4 Jul 2016 16:06:59 +0000 (18:06 +0200)]
Add testcase1 implementation

JIRA: SDNVPN-30

Change-Id: I4d31e9c4dc683c031d6a3d44e0d2bf4d80332281
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoAdded directory structure for the tests and script templates. 39/16039/3
jose.lausuch [Tue, 28 Jun 2016 11:35:21 +0000 (13:35 +0200)]
Added directory structure for the tests and script templates.

JIRA: SDNVPN-19

Change-Id: I358efcb377211182a93b2db43f248ca82c14fb36
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoRemoving whitespace to remove build error messages when pulling sdnvpn docs. 05/14305/1
ChristopherPrice [Wed, 18 May 2016 11:24:37 +0000 (13:24 +0200)]
Removing whitespace to remove build error messages when pulling sdnvpn docs.

Change-Id: Ie9728bafed45dbff444102c85ba10501130521ce
Signed-off-by: ChristopherPrice <christopher.price@ericsson.com>
8 years agoMerge "Reverify"
timirnich [Wed, 27 Apr 2016 16:46:41 +0000 (16:46 +0000)]
Merge "Reverify"

8 years agoReverify 27/10827/5
timirnich [Thu, 25 Feb 2016 14:07:54 +0000 (06:07 -0800)]
Reverify

Adding release notes for Brahmaputra.3.0.

Change-Id: I262f4e0ab7ec785088601b48557555e07e03f870

8 years agoSmall update to configuration guide. 05/12705/1
timirnich [Wed, 27 Apr 2016 08:24:13 +0000 (01:24 -0700)]
Small update to configuration guide.

Change-Id: Ibb7efe2c6a476e205f806e99afdfd041f3740f36

8 years agoChanging filenames to match convention and update index.rst. 61/10761/5
timirnich [Thu, 25 Feb 2016 10:08:07 +0000 (02:08 -0800)]
Changing filenames to match convention and update index.rst.

Some additional content for feature config guide.

Fixing a typo in userguide.

Change-Id: I1f3056535052e74ec893b9f3264a154a145c2350

8 years agoAdding link to BGPVPN user guide. 55/10755/2
timirnich [Thu, 25 Feb 2016 09:06:26 +0000 (01:06 -0800)]
Adding link to BGPVPN user guide.

Change-Id: Id0d67c804d721baf41828b5aff01990b729f3406

8 years agoAdding SDNVPN release documentation. 79/10579/3
ChristopherPrice [Wed, 24 Feb 2016 11:43:52 +0000 (12:43 +0100)]
Adding SDNVPN release documentation.

Change-Id: Iff53422b5e609a21e7165946d776e66fdfdbe431
Signed-off-by: ChristopherPrice <christopher.price@ericsson.com>
8 years agofix configguide filename 99/4299/3
Ryota MIBU [Fri, 11 Dec 2015 06:30:46 +0000 (15:30 +0900)]
fix configguide filename

This patch also add .gitignore file.

Change-Id: I46f2aaa3c5b057a37ba58c4ad9c2993e50f339b4
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agoMerge "Created a template for the User Guide"
Tim Irnich [Mon, 1 Feb 2016 08:35:05 +0000 (08:35 +0000)]
Merge "Created a template for the User Guide"

8 years agoCreated a template for the User Guide 45/7445/2
Sofia Wallin [Wed, 20 Jan 2016 10:22:49 +0000 (11:22 +0100)]
Created a template for the User Guide

Please use the userguide.rst to desribce the <Feature> capabilities and
usage. This information will be part of the OPNFV user guide.
Feel free to use this as a good example,
https://gerrit.opnfv.org/gerrit/#/c/7397/

Renamed config-overview.rst to userguide.rst

Change-Id: I2ae80920dd4b61837813d379b5b2f0284ef41204
Signed-off-by: Sofia Wallin <sofia.wallin@ericsson.com>
8 years agoRemove outdated doc files from sdnvpn 15/5515/1
Fatih Degirmenci [Mon, 4 Jan 2016 16:31:11 +0000 (17:31 +0100)]
Remove outdated doc files from sdnvpn

Change-Id: I17e98446ec87cae8adf8d5701fae9c3a4af4fd0f
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
8 years agoJIRA: DOCS64 63/3563/1
ChristopherPrice [Tue, 24 Nov 2015 09:58:54 +0000 (10:58 +0100)]
JIRA: DOCS64
Adding test files in sdnvpn for the compilation of composite release documents.  These files are to be referred to in the opnfvdocs release documentation and form components of the overall document.
Refer to https://gerrit.opnfv.org/gerrit/#/c/3561/ for the associated opnfvdocs patch.

Change-Id: I1505b695476cc1296b5842d265778b61fcc597c7
Signed-off-by: ChristopherPrice <christopher.price@ericsson.com>
8 years agoAdding INFO and LICENSE for review 29/1829/1
Aric Gardner [Mon, 21 Sep 2015 16:15:40 +0000 (12:15 -0400)]
Adding INFO and LICENSE for review

Change-Id: Ib49fda8acf8d81a4497ff0331c8b589d53524a16
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
8 years agoInitial empty repository
Aric Gardner [Mon, 21 Sep 2015 16:15:32 +0000 (16:15 +0000)]
Initial empty repository