summaryrefslogtreecommitdiffstats
path: root/sdnvpn
AgeCommit message (Collapse)AuthorFilesLines
2018-12-13Conform to interface change of ODL node in Fuel DeploymentHEADmasterStamatis Katsaounis1-1/+1
JIRA: FUEL-393 This patch changes the interface where the odl node obtains the public ip. This patch is a follow-up of [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/65705/1 Change-Id: I12c144f80a7fcffbcc5cc7d57995d0a1501538a6 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-12-11Using heat orchestrator for sdnvpn - test case 8nikoskarandreas6-9/+417
Heat orchestrator and the use of Heat Orchestrator Templates is introduced in sdnvpn test cases. The deployment of the nodes and networks under test is performed as a stack with the use of the heat api and the use of the other apis is kept to as little as possible. The scenarios that are executed are the same as in the orginal test cases. This is the implementation of sdnvpn test case 8: Test floating IP and router assoc coexistence JIRA: SDNVPN-219 Change-Id: I8a61d40e9decf4297b8714c93ce77ba05f033b66 Signed-off-by: nikoskarandreas <nick@intracom-telecom.com>
2018-11-01Using heat orchestrator for sdnvpn - test case 2nikoskarandreas3-1/+515
Heat orchestrator and the use of Heat Orchestrator Template is introduced in sdnvpn test cases. The deployment of the nodes and networks under test is performed as a stack with the use of the openstack api and the use of the other apis is kept to as little as possible. The scenarios that are executed are the same as in the orginal test cases. This is the implementation of sdnvpn test case 2: Tenant separation JIRA: SDNVPN-219 Change-Id: I20f5ed8f7d250873f0223c1cd00c6c05d00fbfa8 Signed-off-by: nikoskarandreas <nick@intracom-telecom.com>
2018-10-31Add suport for fuel installerStamatis Katsaounis6-159/+199
JIRA: FUEL-393 This patch adds support for fuel installer by modifying relevant pieces of code. Change-Id: I5245e84022dd258c96648b0985660e093ca98b52 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-31Merge "Find the ODL owner of the BGP entity in the cluster in TC 3"Nikos Karandreas1-5/+27
2018-10-31Merge "Fix false message instance is down"Nikos Karandreas1-1/+1
2018-10-22Using heat orchestrator for sdnvpn - test case 4nikoskarandreas3-0/+488
Heat orchestrator and the use of Heat Orchestrator Templates is introduced in sdnvpn test cases. The deployment of the nodes and networks under test is performed as a stack with the use of the openstack api and the use of the other apis is kept to as little as possible. The scenarios that are executed are the same as in the orginal test cases. This is the implementation of sdnvpn test case 4: VPN provides connectivity between subnets using router association JIRA: SDNVPN-219 Change-Id: If3783dd25577d22c18be5f088ab6657c38531d73 Signed-off-by: nikoskarandreas <nick@intracom-telecom.com>
2018-10-19Fix false message instance is downStamatis Katsaounis1-1/+1
JIRA: SDNVPN-232 This patch fixes the false message instance is down. The message occurs because a wrong method was used to check if instance is alive. This instance does not proceed to login so the previous method cound not find "login" regex inside its console output. Change-Id: I35733f634595a9d2eeb9148c2476444afab710a6 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-18Merge "Add flake8 and yamllint tox environments and fix tox errors"Nikos Karandreas3-15/+20
2018-10-17Find the ODL owner of the BGP entity in thedimitris.tsiolakis1-5/+27
cluster in TC 3 After new Apex release Opendaylight run in container. This fix finds the ODL owner of the BGP entity in the cluster for containerised installations. SDNVPN-234 Change-Id: Iec1abfe3e0be899ab51fe52057b394a4fa15cc49 Signed-off-by: dimitris.tsiolakis <dmts@intracom-telecom.com>
2018-10-15Replace heat client calls with openstack sdkStamatis Katsaounis3-101/+59
JIRA: SDNVPN-220 This patch replaces all calls of heat client with openstack sdk. Change-Id: I75571e8de8c06d144204af787ce240c99faea6d3 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-15Add flake8 and yamllint tox environments and fix tox errorsStamatis Katsaounis3-15/+20
JIRA: SDNVPN-231 This patch adds flake8 and yamllint tox environments. Furthermore, it fixes tox errors and applies general tox improvements. Change-Id: Id180695ef034562efb236932e6f783b0e91157c2 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-15Using heat orchestrator for sdnvpn - test case 1nikoskarandreas5-0/+637
Heat orchestrator and the use of Heat Orchestrator Templates is introduced in sdnvpn test cases. The deployment of the nodes and networks under test is performed as a stack with the use of the heat api and the use of the other apis is kept to as little as possible. The scenarios that are executed are the same as in the orginal test cases. This is the implementation of sdnvpn test case 1: VPN provides connectivity between subnets and also base functions for heat api access and some utilities. JIRA: SDNVPN-219 Change-Id: Ic284722e600652c9058da96d349dff9398bcacf1 Signed-off-by: nikoskarandreas <nick@intracom-telecom.com>
2018-10-12Fix error on querying neutron quotaStamatis Katsaounis1-2/+3
JIRA: SDNVPN-233 This patch fixes the bug which exists when trying to query neutron quota with openstacksdk. Change-Id: Iead824ca44f381ba314f38933cf48fe7932f74f3 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com> (cherry picked from commit 7e52a1809501699a6da9fda5c2613a76abe384d3)
2018-10-09Merge "Replace cinder client calls with openstack sdk"Dimitris Tsiolakis1-11/+14
2018-10-09Replace neutron client calls with openstack sdkStamatis Katsaounis13-401/+318
JIRA: SDNVPN-220 This patch replaces almost all calls of neutron client with openstack sdk. The calls regarding bgpvpn are not replaced due to lack of support from openstack sdk at the moment. Change-Id: Idf52b8c57b895f87ba6320e350bf170faa24d0a7 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-08Replace cinder client calls with openstack sdkStamatis Katsaounis1-11/+14
JIRA: SDNVPN-220 This patch replaces all calls of cinder client with openstack sdk. Change-Id: Iee73a33ee6c2d87236c6bad3ea6a4ca7b100ced0 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-08Replace nova client calls with openstack sdkStamatis Katsaounis14-257/+261
JIRA: SDNVPN-220 This patch replaces all calls of nova client with openstack sdk. Change-Id: I9e3a0fe08ba36bfb64483238cd286acad829ae90 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-08Merge "Replace glance client calls with openstack sdk"Nikos Karandreas12-68/+58
2018-10-05Merge "Fix testcase_3"Nikos Karandreas1-3/+14
2018-10-05Fix testcase_3dimitris.tsiolakis1-3/+14
After new Apex release Opendaylight run in container. This enhancement identifies the controllers where the Opendaylight runs, for both containerized and none containerized installations. Change-Id: I336176a9a74486a3f91a36508bb848a90bc6bda2 Signed-off-by: dimitris.tsiolakis <dmts@intracom-telecom.com>
2018-10-05Fix testcase_9dimitris.tsiolakis1-4/+14
After new Apex release Opendaylight run in container. This enhancement identifies the controllers where the Opendaylight runs, for both containerized and none containerized installations. Change-Id: I5821bfa7ddce40eb76d3c2cddfcbc112b058f737 Signed-off-by: dimitris.tsiolakis <dmts@intracom-telecom.com>
2018-10-03Replace glance client calls with openstack sdkStamatis Katsaounis12-68/+58
JIRA: SDNVPN-220 This patch replaces all calls of glance client with openstack sdk. Change-Id: I8bf9913e3be9615c462791a20267e4dc71ffd727 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-02Remove tempest networking bgpvpn testcasesStamatis Katsaounis2-72/+0
JIRA: SDNVPN-230 This patch removes networking bgpvpn testcases from sdnvpn project. The testcases from gambia release and up until now they run by functest project inside smoke container. There is no reason to run them inside features functest container any more. Change-Id: Iae031c17d15822358bfe21448c0d16fa14bc35de Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-01Merge "Fix run_tempest testcase"Nikos Karandreas2-97/+36
2018-09-27Merge "Wait for instance deletion"Nikos Karandreas1-1/+17
2018-09-27Wait for instance deletionStamatis Katsaounis1-1/+17
JIRA: SDNVPN-222 Confirm the deletion of instance in order to prevent its port existence when trying to delete relevant subnet in a later stage. Change-Id: Iace0fbbd90d50f05764ac09682caae59baba22fa Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-09-26Merge "Replace % operator with format method"Nikos Karandreas2-14/+14
2018-09-21Fix run_tempest testcaseStamatis Katsaounis2-97/+36
JIRA: SDNVPN-221 This patch makes run_tempest testcase functional again. Due to changes to functest codebase this tescase was failing due to an exception when trying to get verifier id, because no verifier is created from functest, as it used to happen before. Change-Id: Ia31e913b81672215f607055765cac368b8ad5412 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-09-12Fix reference-before-assignment errors when getting exceptionsStamatis Katsaounis1-4/+8
JIRA: SDNVPN-228 This patch checks that variables have been set before trying to perfom actions uppon them. Change-Id: I6e81a3e7756d3ef0aee4f436766128631439f43a Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-09-10Replace % operator with format methodStamatis Katsaounis2-14/+14
JIRA: SDNVPN-223 Running the testcase 3 with the % operator was causing an error on formating the string. This patch replace % operator with format method. Change-Id: I33d3a4539bd7e1914f8c52ea8e91ae15083ce0b1 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-07-09Detach quagga vm in the cleanup blockPeriyasamy Palanisamy1-20/+17
Change-Id: I45145dacaeec0f7b518ab61a33d3a824458e9af5 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-07-02Merge "Route exchange test with testcase3"Periyasamy Palanisamy5-64/+203
2018-06-28Clean up stale routers and gateway routers.dimitris.tsiolakis1-0/+18
During snaps_smoke test all floating IPs are allocated by routers as external IP's, as a result there are no more floating IPs left. This patch clean up stale routers and free the assigned IPs. JIRA: SNAPS-318 Change-Id: Ifbf01ce38db63315e692dca9ffa5d993dbfa4337 Signed-off-by: dimitris.tsiolakis <dmts@intracom-telecom.com>
2018-06-26Route exchange test with testcase3tomsou5-64/+203
This review brings up quagga VM installed with 6WIND quagga, configures with external ip prefix and making sure that it gets exchanged with ODL peer. Change-Id: I9ba677e74f24258f7cc59db70b013fbdbbec917a Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-06-19Use Neutron API for attaching floating ip addressPeriyasamy Palanisamy4-16/+32
The Nova API for attaching floating ip address with vm instance is removed in latest Openstack release. Hence moving to neutron API for attaching floating ip address with VM. JIRA: SDNVPN-217 Change-Id: If321191eca0915cfd816eabc8890b28ed79cefc7 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-06-15Merge "[Bug Fix] Determine the BGP entity owner in ODL Cluster"Periyasamy Palanisamy2-19/+80
2018-06-14[Bug Fix] Determine the BGP entity owner in ODL ClusterDimitrios Markou2-19/+80
In HA deployments is essential to determine which is the ODL BGP entity owner and transform that ODL to BGP speaker. This is necessary because of this bug [0] in netvirt. So we can consider this as a workaround for the testcase_3. Note: This patch is dependent on this task resolution [1] for master branch. Note: This patch works fine in stable/fraser branch. [0] https://jira.opendaylight.org/browse/NETVIRT-1308 [1] https://jira.opnfv.org/browse/SDNVPN-217 Jira: SDNVPN-214 Change-Id: I383987e650da45400a3a6437dbdaaea904db9265 Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2018-06-13Create and pass references of flavor and image to tempestnikoskarandreas2-3/+31
When invoked from SDNVPN, Tempest scenario functest test cases try to use flavor and image references from the tempest.conf file which are currently empty. This patch uses the default flavor that is created by the test suite and the creates an image using the availabe cirros image, which is deleted at the end. JIRA: SDNVPN-209 Change-Id: I6a6fd636fec2c0fa7d35981ca51d59f06a4d9d69 Signed-off-by: nikoskarandreas <nick@intracom-telecom.com>
2018-06-13Fix so that testcases run in order.dimitris.tsiolakis2-195/+209
A new key "order" was added in config.py file to prevent the testcases executed in random order. JIRA: SDNVPN-216 Change-Id: I4ee72cb98351e35bf50ecf9c6dd1506a59e34f6e Signed-off-by: dimitris.tsiolakis <dmts@intracom-telecom.com>
2018-06-07Merge "Add own logger for SdnvpnFuncTest class"Periyasamy Palanisamy1-24/+26
2018-06-07Add own logger for SdnvpnFuncTest classPeriyasamy Palanisamy1-24/+26
The functest xtesting Testcase class removed the logger instance variable, so let SdnvpnFuncTest use its own logger. JIRA: SDNVPN-215 Change-Id: I8b611273e44204d5051fad1140e6ecaddc2a4334 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-06-05[Bug Fix] Use correct image for the Quagga instanceDimitrios Markou3-2/+16
In testcase_3 the Quagga image is downloaded from the opnfv.artifacts repository to the /home/opnfv/functest/data directory. But the testcase_3 after that tries to find the image in the /home/opnfv/functest/images directory. This results in using a wrong image Jira: SDNVPN-213 Change-Id: I99539fc9a7a2d016a97ed51fca0cde81f82b3911 Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2018-05-31Fix the logging to be compatible with functestPeriyasamy Palanisamy18-57/+34
Change-Id: I62b432497175e79bcf2cd241be54d8a7f5db2799 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-05-29Re-enabling execution of tempest testsGeorg Kunz1-1/+2
My previous patch broke the execution of tempest tests, causing tempest to complain about a missing .testr.conf file. This fix adds the explicit use of the --config-file CLI flag back to the tempest test framework. Change-Id: If65c65a227f0058180e0d5bca47cce502948c4c9 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2018-05-23potential fix for attaching router with external network gatewayPeriyasamy Palanisamy1-0/+8
In the CI environment, whenever testcases attaches a router with external network gateway sometimes it throws the error "No more IP addresses available on network". This could be due to stale floating ip's exist in the deployment which is cleaned up now before executing sdnvpn testsuite. JIRA: SDNVPN-212 Change-Id: I027a833f13b1bdddd83dc8c7e7f7292e20b10bb8 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-05-11Fixing invocation of Tempest testsGeorg Kunz1-10/+1
Only 7 bgpvpn Tempest tests were run by the SDNVPN Tempest test instead of the full set of Tempest tests. This patch fixes and simplifies the invocation of bgpvpn Tempest tests. Change-Id: I1b207ea3da27dd43ab034b84f81992a5e0be2ec1 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2018-05-08SDNVPN-99 NAT doesn't seem to workPeriyasamy Palanisamy2-46/+53
Currently ODL is not able to accomodate both network and router in a BGPVPN instance (https://jira.opendaylight.org/browse/NETVIRT-932 - see the comment section). So until the fix is available, testing NAT functionality using router without bgpvpn instance across subnets. Change-Id: I6bedfc8e818ddd542036a87245caf4949152d66f Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-05-07create log file only if it doesn't existPeriyasamy Palanisamy1-1/+3
Change-Id: I97e4f0cf8f27ff719253967ac14e74bcd55b0559 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-05-07create log file during logger initializationPeriyasamy Palanisamy1-5/+2
Currently the log messages from utils and openstack_utils python modules are not logged into bgpvpn.log. This is because this file is created during SDNVPN Feature initialization. So creating this file during logger initialization itself. Change-Id: I538acdfb2119f1eaa562f61dac3b6bf7c3a58e41 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>