summaryrefslogtreecommitdiffstats
path: root/sfc/tests/functest/sfc_symmetric_chain.py
AgeCommit message (Collapse)AuthorFilesLines
2018-05-09Add more logs to the codeManuel Buil1-2/+2
It is hard to understand what is going on in the SFC executions Change-Id: I5c9688e68b03c59d6d39290faee8683513a60440 Signed-off-by: Manuel Buil <mbuil@suse.com> (cherry picked from commit 5f8eb6bf01ca3ef240cfcdee297327b21b33f35a)
2018-05-08Bug fix: Use opnfv.logger objectManuel Buil1-7/+5
JIRA: SFC-125 If we don't use the opnfv.logger from functest, logs are not printed when exeucting tests through the functest framework Change-Id: I6d58ff3977fd94221720eea978e0efde07a576a2 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-04-09Update symmetric chain test caseJaime Caamaño Ruiz1-51/+150
Update the symmetric chain test case aligning it with updates available from ODL Oxygen: - ODL networking-sfc implementation now supports symmetric paths. It is no longer needed to configure the ACL or chain directly through the ODL rest api. It can now be fully relied on tacker for this. - ODL networking-sfc implementation now supports different ingress and egress ports for port pairs. The test case exercises this by setting up a VNF with two distinct ports. Note that this requires an updated VNF image that supports two nics and bundles a vxlan_tool capable of using them. Change-Id: Ie711abb93109943dcbf699ece7b2b570500a3711 Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com> (cherry picked from commit 8e85daee26c523cd181f5884858646b7589c50af)
2018-02-16Switch from CONST to env.get()Cédric Ollivier1-1/+1
env.get() ensures that default values are reused if unset. It also avoids desynchronization between os.environ and CONST. It follows the change "Get properly env vars or their default values" [1] applied in Functest. It also fixes minor issues on shebangs and takes several pylint rules into account in this module: - http://pylint-messages.wikidot.com/messages:w0702 - https://www.python.org/dev/peps/pep-0282/ [1] https://gerrit.opnfv.org/gerrit/#/c/52221/ Change-Id: Ia7ad168b2cbbade8ea3890fb95dc01bcdfc50468 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-12-21Migrate to SNAPs openstack libraryManuel Buil1-60/+44
Functest is deprecating its openstack library which we were using extensively We need then to move to an alternative and the best appears to be SNAPs Change-Id: Icaa0b9f1ec580545b9d0faa88be2080a310deaf7 Signed-off-by: Manuel Buil<mbuil@suse.com>
2017-12-12Clean up our utils.pyManuel Buil1-1/+1
Utils.py was getting messy. This patch divides it into three different files: * test_utils.py * odl_utils.py * openstack_utils.py The tacker library is integrated into openstack_utils.py Change-Id: I310949d1cee49b6aa1c9b3396bf6d6ca458cbaac Signed-off-by: Manuel Buil <mbuil@suse.com>
2017-09-15Update the wait_for_classification_rules functionManuel Buil1-2/+1
Two things must be done: 1 - Be compatible with the new way of doing SFC in ODL Nitrogen 2 - Be installer independent Change-Id: Ibbb3057db30a7c00e92f788bb03e770749e2b255 Signed-off-by: Manuel Buil <mbuil@suse.com>
2017-09-13Increase timeout timeManuel Buil1-1/+1
My VMs take around 80 seconds to be able to respond to pings. The current timeout is in 50 seconds. I will increase it to 150 to have a buffer Change-Id: Ie684e76799210e3d7239e35df2d4bdd7af507669 Signed-off-by: Manuel Buil <mbuil@suse.com>
2017-09-01Remove setup_compute_node and configure_iptablesManuel Buil1-2/+0
We are going to use ODL Nitrogen which does not require the NSH hack as packets reaching the VNF will use ETH+NSH encapsulation Change-Id: I5a55fde84e8f17860783ec9de8b99242fc38b9a9 Signed-off-by: Manuel Buil <mbuil@suse.com>
2017-09-01Add new Tacker libraryDimitrios Markou1-1/+1
Change-Id: I710e6f5da92ddfddd9111c6c53274b92d76d7449 Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2017-08-31Adapt the testcases to multiple installersDimitrios Markou1-5/+4
Right now the testcases are dependent to only one installer. So when we are trying to run the testcases to multiple installers the tests are failing. This patch make the testcases independent to the installer that they run. The testcases are running until the point which they hit the tacker client commands.They are failing in the tacker client commands because we need the new library for the upstream tacker API. The testaces have already tested to two installers (Fuel,Apex-ha). Also this patch contains the changes which are required for the adaptation to the new functest. For more information see the Jira tickets [0],[1],[2]. [0]: https://jira.opnfv.org/browse/SFC-100 [1]: https://jira.opnfv.org/browse/SFC-101 [2]: https://jira.opnfv.org/browse/SFC-102 Change-Id: Id1e5d5c94a65ab8bdea9584fa833bfa0cdec6632 Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2017-06-30Use the recommended exception syntaxManuel Buil1-1/+1
Today I learnt that the use of except Exception, variable is not recommended anymore and it is not supported after python3. When using >=2.6, the syntax should be except Exception as variable. https://www.python.org/dev/peps/pep-3110/ Change-Id: I213c220fc6e92878ffa4737efa16adb76ace1271 Signed-off-by: Manuel Buil <mbuil@suse.com>
2017-05-26functest_logger changes fixvijayendra Radhakrishna1-2/+5
- Recently there is removal of functest logger utils. - This uses the default python logging mechanism Change-Id: I3aba38041bbed8b1e5a3de93bc9f639253f262d8 Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>
2017-04-05Remove get_floating_ips()Juan Vidal1-0/+1
get_floating_ips() is non-reusable function, with too much logic into it. By using smaller functions, we can compose the same functionality and build all tests upon a common set of utilities. Using the new functions in functest to retrieve the nova ID for a VNF instance, it is possible to use a generic solution at the problem of getting floating ips deterministcally to the instances Change-Id: Ic7dba908fa6bb343c177fe1a68322d3803ed1707 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-04-05Harmonize vxlan-tool callsJuan Vidal1-2/+3
Renamed vxlan_firewall and vxlan_tool_stop to start_vxlan_tool and stop_vxlan_tool respectively. Added some comments to explain their behavior. Cleaned both functions to use ".format()" string formatting, which improves readability. Modified behavior of start_vxlan_tool: now it does NOT block traffic by default Change-Id: I6754b020a474be1e9adf2d83e7c9f5053930b702 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-03-27Rewrite classification rules wait loopGeorge Paraskevopoulos1-1/+5
This is a candidate replacement for the wait_for_classification_rules function. The functionality is as follows: - Query ODL operational datastore for the RSPs for which we should expect to see flows in the computes (RSPs for which ACL rules exist) and associate them with a list of vnfs. Also get the tp_dst from the ACL match rules. - Use the known topology to associate the RSPs to a set of compute nodes (at this point we know that ODL promised us that we should see classification rules for a particular rsp in the nodes C1, C2 ...) - Gather the installed flows in table=11 in each compute - Verify that the RSPs are installed as promised by ODL for the correct tp_dst Change-Id: I79747ad1df3eb0c67f783167601b5ea99fb43f16 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-03-02Merge "Add marks to specify that symmetric_service_chain test is not ok"Manuel Buil1-0/+4
2017-03-02Add marks to specify that symmetric_service_chain test is not okJuan Vidal1-0/+4
Due to JIRA SFC-86, this test is not working (althouth it will pass with a topology where all the VMs are deployed in a single compute node). Change-Id: I98231d22a0b340c305ba83ee78634c83fa4dc7e7 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-03-01Remove get_floating_ip_2 from sfc_symmetric_chainJuan Vidal1-4/+17
Using the new functions in functest to retrieve the nova ID for a VNF instance, it is possible to use a generic solution at the problem of getting floating ips deterministcally to the instances Change-Id: Ie77820b0f466dcbf8ac771f12b5aee55ef74ead5 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-23Create downstream classifier in symmetric-chain testJuan Vidal1-7/+23
Also, fix some wrong parameters, and add a script to delete the artifacts created by the test case Change-Id: I354007e75da62c706e79c793a9e6a422a6a50bf1 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-23Use baseline topology on symmetric chain testcaseJuan Vidal1-5/+17
The topology for this test is fixed for the Danube release. When it is stable for some time, we can try changing topologies. Change-Id: I43f06ff973c74fbaea3aa9161f7a177b3ee94791 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-20Use __name__ on Logger instantiation instead of custom stringsJuan Vidal1-1/+1
Change-Id: Ic68256410b29cf3ba39a10a92d243979ea475220 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-17Introduce new test case: symmetric service chainJuan Vidal1-0/+201
JIRA: SFC-53 The goal is to verify that the traffic traverses the service chain, not only in the uplink (client --> server) direction, but also in the downlink (client <-- server) direction, which is the part that is not currently being covered by other test cases. Change-Id: I198a53e5afe3da1b397cee95627834856498b674 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>