summaryrefslogtreecommitdiffstats
path: root/sdnvpn/test/functest/testcase_3.py
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 Katsaounis1-52/+58
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-01Replace neutron client calls with openstack sdkStamatis Katsaounis1-14/+13
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 Katsaounis1-12/+13
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 Karandreas1-4/+4
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-03Replace glance client calls with openstack sdkStamatis Katsaounis1-4/+4
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-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-07-09Detach quagga vm in the cleanup blockPeriyasamy Palanisamy1-20/+17
Change-Id: I45145dacaeec0f7b518ab61a33d3a824458e9af5 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-06-26Route exchange test with testcase3tomsou1-3/+99
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 Palanisamy1-6/+7
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-14[Bug Fix] Determine the BGP entity owner in ODL ClusterDimitrios Markou1-19/+38
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-05[Bug Fix] Use correct image for the Quagga instanceDimitrios Markou1-1/+3
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 Palanisamy1-2/+2
Change-Id: I62b432497175e79bcf2cd241be54d8a7f5db2799 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-04-19Make sdnvpn logging properPeriyasamy Palanisamy1-3/+2
* 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-03-08potential fix for custom flavor creation issuePeriyasamy Palanisamy1-3/+3
Change-Id: Ic079e6d699927a400ca5f1530b18efacf3465629 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-01update python modules shebang line for python intrepreter directivePeriyasamy Palanisamy1-0/+2
Change-Id: I1929a5b86a89a96fbf5c21b3bc419c9237034aba Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-02-26Stop relying on internal Functest utilsCédric Ollivier1-2/+1
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 Ollivier1-1/+1
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>
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-08remove flavor at the end of the testPeriyasamy Palanisamy1-3/+4
JIRA: SDNVPN-122 Change-Id: I89f457e0d5a7c7c98bab223e722a5eb5a23387b6 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-11-08use glance_client for image cleanupPeriyasamy Palanisamy1-1/+2
Change-Id: Ia192a1b26c5f31b6d3465a060c3d8a3097e6ebd4 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-10-16SDNVPN-184: resources are not cleaned if tc failsPeriyasamy Palanisamy1-126/+134
* moved the cleanup code inside the finally block in each test case Change-Id: Ifc0fee58451923117c54040c716dad6827fbc7fa Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-09-08Fix the config.yaml including for each testcasetomsou1-1/+2
At each testcase, adapt the way config.yaml is included via sdnvpn.lib.config.TestcaseConfig(). The full path should be included, instead of just the testcase name JIRA: SDNVPN-180 Change-Id: I34828cc3681f08b843db49c6a221602b5b2022bf Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-09-04Adapt SDNVPN Functest test according to new frameworkjose.lausuch1-11/+3
- Inherit from TestCase class in Functest - Remove any push to DB method, since Functest takes care of it After this change, we will be able to load this module from Functest and make a python call instead of a bash call. Change-Id: I80bdb7eaac3a2d1f48e32bafa381a42cadb36138 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-07-25Refactor imports and invocation of main functionpanageo21-8/+8
In all testcases there are some inconcistencies of import statements. Additionally the main function of each testcase should be called through sys.exit(main()) JIRA: SDNVPN-173 Change-Id: I6fdf0dc6598ca4789b6de6b50d1b8b85a8de923c Signed-off-by: panageo2 <panageo@intracom-telecom.com>
2017-06-27Adapt the floating ip handling in functesttomsou1-6/+4
Comply with the new floating ip management in functest (https://gerrit.opnfv.org/gerrit/#/c/36415) JIRA: SDNVPN-165 Change-Id: I39e380caf07568e2370246afcf483eb8adb3def6 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-06-20Restore peering within testcase3 for Apextomsou1-16/+13
Change-Id: I7f3a4892e6ef73fb13512e427fab3e42ff1b69d9 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-05-31Cleanup after testcase runningtomsou1-11/+33
After every testcase running cleanup neutron and nova elements: - Allocated floating IPs (nova) - Created instances (nova) - Created images (nova) - Created router-subnet interfaces (neutron) - Created gateaway routers (neutron) - Created routers (neutron) - Created subnets (neutron) - Created networks (neutron) - Created bgpvpns (neutron) JIRA: SDNVPN-145 JIRA: SDNVPN-148 Change-Id: Id6df004bb9d0d394e2cf39692b624607167c9a6c Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-05-17Update logger via logging.getLogger()Linda Wang1-2/+3
1. The module functest.utils.functest_logger has been deleted and logger has been reconfigured in functest [1]. 2. Update all related modules to get loggers via logging.getLogger(). [1] https://gerrit.opnfv.org/gerrit/#/c/34019/ JIRA: FUNCTEST-824 Change-Id: I89f5d15342b5f257fbc2700655e255a4e28bd36f Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-09Fix the zrpcd running check within testcase3tomsou1-1/+1
Check specifically the "running" state of the zrpcd service JIRA: SDNVPN-150 Change-Id: I1b63f25dfab5fd4507cc219fb1c21291064a8bab Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-05-04Removing peering testcase for ApexNikolas Hermanns1-13/+17
Change-Id: Ifad3f84fcb0c5dfa07aca43d74a027e3522abb87 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-05-03Clean always and change orderNikolas Hermanns1-18/+19
Change-Id: Ic9e0d374a4fe5278888b28fe2694c546840d55b4 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-05-03Remove dependence inetNikolas Hermanns1-1/+0
A new ubuntu image with quagga included was uploaded to artifacts.opnfv.org/sdnvpn/ ubuntu-16.04-server-cloudimg-amd64-disk1.img Change-Id: I7e48ebbc2b00b7e771f43b26303acc66c2c48457 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-05-02Cleanup br-ex/br-quagga from testcase_3tomsou1-0/+2
After the peering between Quagga and ODL within testcase 3 cleanup br-ex (for fuel) or br-quagga (for apex) interfaces JIRA: SDNVPN-13 Change-Id: I3e7bf91d4e47dfd7fe2a5068ed40ea4b2be48c6d Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-04-03Merge "Fix security group rule conflict"Nikolas Hermanns1-1/+4
2017-03-30Update url for ubuntu image downloading- testcase3tomsou1-2/+2
The url that the testcase3 uses to download ubuntu image (https://cloud-images.ubuntu.com/releases/16.04/release/ ubuntu-16.04-server-cloudimg-amd64-disk1.img) is unstable. This change updates it, using the one from the OPNFV artifact repo JIRA: SDNVPN-133 Change-Id: Ic7265b572064f1df7ce30ab5249b1bdb61c63777 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-28Fix security group rule conflicttomsou1-1/+4
-open_icmp_ssh function, that creates security group rules for icmp and http (here the name of the function is misleading), is splitted into 2 new functions one for each rule (open_icmp() and open_http_port()). Test cases that used the old function have been updated -In the original implementation of open_icmp_ssh() and open_bgp_port(), the direction parameter was missing. This was leading to an error message -A check for the existence of security group rule has been added and used before the creation of each security group rule. If a rule already exists, an info message is printed and the testcase continues This change is strongly dependent on https://gerrit.opnfv.org/gerrit/#/c/31925 of Functest repo. NOT TO BE MERGED before JIRA: SDNVPN-103 Change-Id: Icb96954556f6d7294cf3454f045dbca4b9be672d Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-28Remove quagga fix in the testcaseNikolas Hermanns1-12/+1
Solves partly: JIRA: SDNVPN-130 Change-Id: I1cf99e9294925545f6fece660983e32f6543f2b8 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-03-24Fix testcase3 (peering subcase) for Apextomsou1-5/+15
- Fix runnning bgp related commands on Karaf: update util.run_odl_cmd() in order to be able to run commands on karaf client. Otherwise karaf commands fail - Ensure zrpcd/bgpd to run on controller side properly: Add missing quagga run folder, change owner and add user quagga into quaggavt group, in case of apex installer - Update the way of handling br-ex information and parsing out the controller external ip and mask: In case we have multiple ip/netmask assigned on br-ex the separation was faulty and an extra line, containing the second ip address, was added into ext_net_mask variable JIRA: SDNVPN-118 Change-Id: I62468c94fd945ba30e419bd30d9cd85502f28eeb Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-22Testcase 3 Apex compatibility fixesRomanos Skiadas1-17/+20
- Workaround a bug releng in getting opedaylight nodes - Add some sudo commands because the path is not properly set otherwise it seems - remove needless command that gets ip information from the compute, since that is already available from when the command was ran on the controller - Handle attaching the quagga instance to Apex's br-ex ovs bridge Change-Id: I870f1049d9cce696ec26376a09db5f9e9bac0bf9 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-17Create flavor for Quagga ubuntu VMtomsou1-1/+4
- Implement a new function in lib/utils ensures (gets or creates) a new flavor existence - Use this new function within Testcase3, in order to create a flavor big enough to start ubuntu with JIRA: SDNVPN-120 Change-Id: I5c7d9c855f083b96bfd056bb5d935baa851420c9 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-16Fix most end-to-end issues with testcase 3 and reenable itRomanos Skiadas1-110/+80
- Make the test work end-to-end on Fuel - Use the instance log to verify quagga started - Don't attempt to check for peering, as that is for a future release - Use the external IP of the controller for peering - Fix not getting the output of OpenDaylight commands Change-Id: Ia7bb533ab65e0fca6b7f48bb64133f6d8f3ff8ae JIRA: SDNVPN-114 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-14Fix quagga peering by working around the NATRomanos Skiadas1-4/+33
Quagga peering doesn't seem to work over the NATted openstack external network. To work around this, directly patch the quagga instance to the external network and give it a fixed IP in that network. Then, all the peering traffic goes over that patched interface. Change-Id: I8d9d8fef4e86839c821f83e564d5c49cc15e43ae JIRA: SDNVPN-114 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-13Fix typo in quagga script and call to glanceRomanos Skiadas1-2/+2
Change-Id: I80ce2f3b442bc7862486368822c8fe2cd13a0f1b JIRA: SDNVPN-114 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-13Fix bgpd.conf path and duplication in tc_3Romanos Skiadas1-6/+0
Change-Id: I78e521fddd8a156d5c9597d6307ac9b6f2571f5c Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-07Fix functest failing in apex case- testcase3tomsou1-14/+5
- Check the INSTALLER_TYPE environment variable - Differentiate fuel from apex case JIRA: SDNVPN-101 Change-Id: I10fa26f5c0b7f95601b29db86e756a20c9e921ec Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-02Implement quagga peeringRomanos Skiadas1-12/+154
- Create an openstack instance - Assign it a floating IP - Execute a quagga bootstrap script using cloud init - Tell ODL to peer with the instance - Start an instance in a VPN - make sure the route was exchanged between the peered quagga and ODL Change-Id: I73bcaec5425df2b953c2bceaca7d4f09ff28f3d0 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-02-23Implement testcase 3: Quagga-ODL integrationtomsou1-1/+116
Testcase 3, which verifies OpenDaylight can start and communicate with zrpcd/Quagga - Verify that zrpdc service is running - Issue bgp speaker start to OpenDaylight - Verify that zrpcd has started bgpd JIRA: SDNVPN-98 Change-Id: Ia0c497292a724161259c669425229d189a317ba2 Signed-off-by: tomsou <soth@intracom-telecom.com> Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>