summaryrefslogtreecommitdiffstats
path: root/sdnvpn
AgeCommit message (Collapse)AuthorFilesLines
2018-10-09Wait for instance deletionstable/fraserStamatis 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> (cherry picked from commit ea48239f99fdddd703bebb1727575f844c097702)
2018-10-02Fix 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> (cherry picked from commit b36f480f90b9c4a930d584e72534d18bb306d6b4)
2018-06-29Clean up stale routers and gateway routers.opnfv-6.2.0dimitris.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> (cherry picked from commit 71737f23f718791a554edf374ee0c28bb77c9773)
2018-06-19Merge "Create and pass references of flavor and image to tempest" into ↵Periyasamy Palanisamy2-3/+31
stable/fraser
2018-06-15[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-14Create 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> (cherry picked from commit c6fbfb9651f5293c544351d3c9c549dfa24fafc6)
2018-06-07Merge "Re-enabling execution of tempest tests" into stable/fraserPeriyasamy Palanisamy1-1/+2
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> (cherry picked from commit 6491326ffadcc143a64723169038cad58620f117)
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-06-04Fix the logging to be compatible with functestPeriyasamy Palanisamy18-57/+34
Change-Id: I62b432497175e79bcf2cd241be54d8a7f5db2799 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com> (cherry picked from commit e08e7c43c85fa04dc78a1fcf8a11ab877a78dfb9)
2018-05-30Re-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> (cherry picked from commit 1fc59dc868766cc845ecf2a2b7f1fef853d2d7e5)
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> (cherry picked from commit 1bf65fd6d92cdf2c0ad694662cbc12b7764e3364)
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> (cherry picked from commit 2b8d01a7f79b0d3903964827be56347dc83d5591)
2018-05-09SDNVPN-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> (cherry picked from commit 8ed9f216d4bee43cc214d73377b5d8291bfb9e8c)
2018-05-08create log file only if it doesn't existPeriyasamy Palanisamy1-1/+3
Change-Id: I97e4f0cf8f27ff719253967ac14e74bcd55b0559 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com> (cherry picked from commit 9df57f96b44d41c98a556a790dfa7f96b8dc9808)
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> (cherry picked from commit c1e5aafd5b5984b995d3ac6c74703e6a8be6e38b)
2018-04-20Make 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> (cherry picked from commit 303268d0464127c52f11443404fb1baae03d615f)
2018-04-12router 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> (cherry picked from commit 682a35757b7b46ade55e0548c7df9d3c1c4274a9)
2018-04-12testcase_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> (cherry picked from commit 592c41bd3f46da98162999a3aaf1a8456036ecf7)
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>
2018-03-02Switch to XtestingCédric Ollivier1-4/+4
It inherits from xtesting.core.feature [1]. [1] http://xtesting.readthedocs.io/en/latest/apidoc/xtesting.core.feature.html Change-Id: I3d64bce859de7132384b3cf0a6383348cc20b3b1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-01update python modules shebang line for python intrepreter directivePeriyasamy Palanisamy17-14/+27
Change-Id: I1929a5b86a89a96fbf5c21b3bc419c9237034aba Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-01fix for sdnvpn testsuite execution stops abruptlyPeriyasamy Palanisamy1-1/+1
* updated the recommended shebang line for python intrepreter directive Change-Id: Icd3023f03c8b5524afcb5d600a9d03749496acea Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-02-27Merge "Update the way of running tempest"Periyasamy Palanisamy2-7/+18
2018-02-27Update the way of running tempestLinda Wang2-7/+18
Use 'tempest run' instead of 'run_tempest.sh', which has been removed by tempest 16.0.0 Also, 'tempest.py' has been renamed to 'run_tempest.py', to avoid package importing conflict Change-Id: I61e802e0381d1f33281610e98d05813c9b96faf9 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-02-26Stop relying on internal Functest utilsCédric Ollivier2-6/+22
It switches from functest_utils.get_functest_config() to config.CONF(). download_url is now hosted in sfc as it's unused by Functest. The next functions will be considered as part of Functest framework (then it must be well covered and documented): - ft_utils.execute_command_raise() - ft_utils.execute_command() - ft_utils.get_parameter_from_yaml() Change-Id: I076c6ced430df8387de8eaeac6f3a94d93201b19 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-26Host openstack utils in SDNVPNCédric Ollivier13-13/+1499
SDNVPN is the last project using the deprecated openstack utils which are being removed from Functest tree. All methods unused by SDNVPN could be safely removed in a second change. This patch aims at publishing them asis. Change-Id: I4e479e6def2c691799c9bd86ba325e3d1544ef0d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-23Merge "Fixing return value in tempest test suite"Periyasamy Palanisamy1-1/+1
2018-02-23Fixing return value in tempest test suiteGeorg Kunz1-1/+1
The result processing framework of the SDNVPN project expects "FAIL" as value for failed sub-tests to determine the overall result. The value returned by the tempest sub-tests was "FAILED", causing incorrect reporting to Functest. Change-Id: I320e6f1fb1fc7ee540813e454484b11bd5b227b2 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2018-02-22Switch from CONST to CONFCédric Ollivier2-11/+13
CONST is not the right Functest object to get config data. Change-Id: I764a0a2a24447c941d1e726f3116593b29dd1c1e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-19resync and ecmp testcase failurePeriyasamy Palanisamy2-27/+32
This provide fix for resync and ecmp test case failures at the CI master runs. Please have a look at the comments in each testcase for more details. Change-Id: I26c40da144e34a48ad44897988675db8d37c062a Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-02-15Merge "fix for sdnvpn CI test failure"Periyasamy Palanisamy3-1/+11
2018-02-15Use bgvpn-delete and create instead of updatetomsou2-10/+84
Testcases 1 and 4 fail because of netvirt bug [1] The same functionality is now achieved by using bgvpn-delete and bgpvpn-create cli commands instead of bgpvpn-update [1] https://jira.opendaylight.org/browse/NETVIRT-1067 Change-Id: Iaba6e06d0f39e356bf364b0640c707b0a83470d7 Signed-off-by: tomsou <soth@intracom-telecom.com> Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-02-15fix for sdnvpn CI test failurePeriyasamy Palanisamy3-1/+11
Change-Id: Ie55ccbe68f57a9bb03efc8b6eebf23a0018a0bca Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-01-18Set unlimited router quotastomsou3-9/+16
Update router quotas to fix bgpvpn scenario in CIq JIRA:SDNVPN-208 Change-Id: I25353229d119459c8e961b0f3f6264f715533d13 Signed-off-by: tomsou <soth@intracom-telecom.com>
2018-01-09Intra-Data Center ECMP testcasePeriyasamy Palanisamy4-9/+365
This testcase add a scenario in which one extra route can be reachable through two VMs which are in a same network attached to a router which is later associated to a BGPVPN instance. This extra route ip address is different from subnet of VMs. After the extra route is configured with VM ips as nexthops, then when third VM is trying to reach extra route, traffic would split between two VMs. The traffic split can happen only in heavy loaded scenario, so this testcase would test only reachability. JIRA: SDNVPN-23 Change-Id: I4bb4e94f5c98c0f3c22bff7a6998af2a7a919f16 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-11-16Merge "add resync testcase"Tim Irnich3-0/+253
2017-11-10add resync testcasePeriyasamy Palanisamy3-0/+253
It is an extention of testcase_11.py to check resync happens properly between ODL and OVS when there is no changes from northbound JIRA: SDNVPN-175 Change-Id: I63bd17f5e5fdab7d5ab90a2be2836e02e7dd54fa Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-11-09Adapt bgp daemon to run properly for testcase3tomsou1-3/+11
Since apex includes a new version of zrpcd compatible with Carbon and Nitrogen [0], an adaptation is needed for bgp daemon enabling and running within testcase3 Note that zrpcd run now as a process and not as a service JIRA: SDNVPN-172 [0] https://jira.opnfv.org/projects/APEX/issues/APEX-508 Change-Id: Ia0ec4ab0f15ecf3d5c76c5fa541fe8338762ecaf Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-11-09Merge "remove flavor at the end of the test"Tim Irnich2-4/+11
2017-11-09Merge "Fix instance boot when metadata exists"Tim Irnich7-42/+48
2017-11-08remove flavor at the end of the testPeriyasamy Palanisamy2-4/+11
JIRA: SDNVPN-122 Change-Id: I89f457e0d5a7c7c98bab223e722a5eb5a23387b6 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-11-08use glance_client for image cleanupPeriyasamy Palanisamy10-10/+22
Change-Id: Ia192a1b26c5f31b6d3465a060c3d8a3097e6ebd4 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-11-08Test groups are deleted after ovs reconnectionpperiyasamy3-0/+195
Create a new testcase (Testcase 11) Testing procedure: Create a Network with 2 VMs so that a group is added to ovs. Disconnect ovs. Remove the Network and the VMs. Connect ovs again. Check that the group is deleted from it. JIRA: SDNVPN-151 Change-Id: I4c6f5e16f837bbcc589cbbbf05896a2d17b9cd57 Signed-off-by: panageo2 <panageo@intracom-telecom.com> Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-11-06Fix instance boot when metadata existstomsou7-42/+48
The way that a instance is considered as UP is pretty strict and returns ERROR in case of instances with userdata This patch differentiates the instances that are supposed to boot till login prompt and those with userdata parameter JIRA: SDNVPN-177 Change-Id: Ic4755366df006669475c90cc0693ac802256f379 Signed-off-by: tomsou <soth@intracom-telecom.com>