summaryrefslogtreecommitdiffstats
path: root/sdnvpn
AgeCommit message (Collapse)AuthorFilesLines
2018-12-13Conform to interface change of ODL node in Fuel Deploymentopnfv-7.1.0stable/gambiaStamatis 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> (cherry picked from commit 4c26920af6c8a2bd083395bff269ba01570590d1)
2018-11-06Add suport for fuel installerStamatis Katsaounis6-159/+199
JIRA: SDNVPN-238 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> (cherry picked from commit b17b3d80849b9c9989fb4deeb6001a6ff78261c1)
2018-11-06Fix false message instance is downStamatis Katsaounis1-1/+1
JIRA: SDNVPN-238 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> (cherry picked from commit eea8b6c296f7c9540de7f46bc9daaee9e1e14ae5)
2018-11-06Find 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. JIRA: SDNVPN-238 JIRA: SDNVPN-234 Change-Id: Iec1abfe3e0be899ab51fe52057b394a4fa15cc49 Signed-off-by: dimitris.tsiolakis <dmts@intracom-telecom.com> (cherry picked from commit 9d550e5108399bc1f85186956dabc6cbe3a3ec85)
2018-11-01Using 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-237 JIRA: SDNVPN-219 Change-Id: Ic284722e600652c9058da96d349dff9398bcacf1 Signed-off-by: nikoskarandreas <nick@intracom-telecom.com> (cherry picked from commit cfcb04c938abdcddd76bcdd2375b4a81ea28fa51)
2018-11-01Fix error on querying neutron quotaStamatis Katsaounis1-2/+3
JIRA: SDNVPN-237 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 edd6cfe15ecd4e2bf608c23c6ca4612334df044b)
2018-11-01Replace neutron client calls with openstack sdkStamatis Katsaounis13-401/+318
JIRA: SDNVPN-237 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> (cherry picked from commit ebf6885a907379083b360ae729f69151c1dd8115)
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>
2018-04-19Make sdnvpn logging properPeriyasamy Palanisamy19-119/+128
* Currently no log messages are getting written into log file due to file handler is registered for logger object created at different modules. Now corresponding handler is registered for logger objects. * Making sdnvpn Feature class to use its parent class logger object to avoid unnecessary logger object creation. Change-Id: I4ec61951ba4ac39cecc137dbb818da72f0b43b35 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-04-11Merge "testcase_10 intermittent failure"Periyasamy Palanisamy1-5/+12
2018-04-09testcase_10 intermittent failurePeriyasamy Palanisamy1-5/+12
There are vm monitor threads running incorrectly which causes this testcase to fail intermittently. It is fixed properly now. Change-Id: I61abf7e33700abdcb2e9ab7cfa72f6e3ad6c7a67 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-04-09router and network association failurePeriyasamy Palanisamy1-3/+4
comment few sub tests till ODL provides fix for BGPVPN having both router and network association: https://jira.opnfv.org/browse/SDNVPN-94. Till then let us comment required subtests in testcase_4.py and update the release note for fraser. Change-Id: I498ee95c74b525f65e40a540e0f1162d78ec5504 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-12remove extra specs for the flavorPeriyasamy Palanisamy1-7/+0
It has problem in booting up VMs which are with custom flavor configured. So removing extra specs from the flavor which anyway is not needed. Change-Id: I38fe1449ea585a3a6db95a7f21fd1d3fca0f528e Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-12testcase execution halt fixPeriyasamy Palanisamy1-7/+12
It's found that sys.exit is used in utils.py which caused testcase execution is stopped abruptly while running bgpvpn testsuite. This is now replaced with Exception. Change-Id: I69df4be705985994318f58d57b152d6db4087610 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-09workaround for bgpvpn tempest runPeriyasamy Palanisamy1-3/+10
Adding tempest.conf file in the /etc/tempest directory as it is needed for tempest run command. Change-Id: I754dca76908014dcbb17e82a2e7b561d4826bff0 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-08potential fix for custom flavor creation issuePeriyasamy Palanisamy4-9/+6
Change-Id: Ic079e6d699927a400ca5f1530b18efacf3465629 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-08Move import_modules inside try blockPeriyasamy Palanisamy1-1/+6
Its still sdnvpn testsuite is failing at testcase_8 for bgpvpn ha scenario whereas it runs fine in the local setup. There is no logs generated from the CI run, moving import_modules inside try block and added few info logs to find out what is going on CI setup. [1] http://artifacts.opnfv.org/logs/functest/lf-pod1/2018-03-03_23-12-24/bgpvpn.log [2] https://build.opnfv.org/ci/job/functest-apex-baremetal-daily-master/827//console Change-Id: Icffa48cd56222bc1063ca16704e90a899380634d Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-06remove block comment for testcase_8Periyasamy Palanisamy1-11/+9
somehow bgpvpn testsuite is not running in the bgpvpn-ha ci loop because of testcase_8. when bgpvpn tries to execute this testcase, somehow execution is stopped and no logs being generated from the setup. The only different is this testcase is having block comment with delimeter and this is being imported as a module inside run_sdnvpn_tests. Hence replacing block comment with single line comments. This issue is very sporadic even in the local setup and running fine after changing it with single line comments. Change-Id: I5d71ec2a8c532b5dd77b2136ca7e95a7838683dc Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>