aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/lib
AgeCommit message (Collapse)AuthorFilesLines
2017-02-20Add baseline topologyGeorge Paraskevopoulos1-8/+16
Add a topology where everything (endpoints, vnfs) are booted on the same host. This is useful, as we'll have the simplest possible topology to compare against as a baseline Change-Id: I6248fbca0687286da49f6332e01571937b501090 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-20Get vnfd parameter file location from config.yamlGeorge Paraskevopoulos2-4/+6
Change-Id: Ide425e860ad219ec24765905666994390858cfdb Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-20Use __name__ on Logger instantiation instead of custom stringsJuan Vidal3-3/+3
Change-Id: Ic68256410b29cf3ba39a10a92d243979ea475220 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-17Introduce new test case: symmetric service chainJuan Vidal1-0/+32
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>
2017-02-17Run sfc_two_chains in multiple topologiesGeorge Paraskevopoulos2-54/+47
JIRA: SFC-63 The test will run in a number of configurations as described in SFC-63. We expect to get decent coverage with these 5 topologies: 1. CLIENT_VNF_SAME_HOST 2. CLIENT_SERVER_SAME_HOST 3. SERVER_VNF_SAME_HOST 4. CLIENT_SERVER_SAME_HOST_SPLIT_VNF 5. CLIENT_SERVER_DIFFERENT_HOST_SPLIT_VNF Change-Id: Iaca75bf180c33e3d22759e4da1ca4897072f68a6 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-17Fix topology bugsGeorge Paraskevopoulos2-5/+15
- Fix getting the length of available topologies - Format a correct vnf parameter file Change-Id: I6c3534a67b44be6fcfb09d99856e5c27bcbd2ed1 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-17Fix check_ssh to allow any number of SFs to be checkedJuan Vidal1-1/+1
Change-Id: Ida31e1e7f1b638f1ba5e851cbdfd0379c0f546d4 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-17Merge "Add source port option for netcat utility"Manuel Buil1-10/+22
2017-02-17Merge "Add topology_shuffler"Manuel Buil1-0/+151
2017-02-16Add source port option for netcat utilityJuan Vidal1-10/+22
Change-Id: I3dedc06f0b288684a907df14874f277449c33146 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-16Add topology_shufflerGeorge Paraskevopoulos1-0/+151
JIRA: SFC-63 This module will be used to configure the assignment of endpoints and VNFs to compute hosts dynamically Change-Id: Ie778b52796c76d829ccb3d49e1c9bc7f5e7c7b47 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-16Merge "Bug fix in sfc utils lib"Manuel Buil1-1/+1
2017-02-16Bug fix in sfc utils lib“Manuel Buil”1-1/+1
The command to add route to the VM was wrong Change-Id: If45425a5bdc8ba9d2ecb37dd9914628b6963ed28 Signed-off-by: “Manuel Buil” <mbuil@suse.com>
2017-02-16Merge "Pass availability zone as param on vnf create"Manuel Buil1-0/+18
2017-02-16Fix is_ssh_blocked and is_http_blockedJuan Vidal1-21/+17
This patch fixes JIRA SFC-79 Previously, those functions used regex matching against the command output. Now, the return code from netcat is used. It should be easier and more relieable. Change-Id: I639c64b3fe0a0e3c0b59f73e5615b8737e676849 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-15Pass availability zone as param on vnf createGeorge Paraskevopoulos1-0/+18
JIRA: SFC-63 JIRA: SFC-73 Instead of changing the vnfd-template file in runtime we can pass the availability zone as a parameter when the vnf is created This enables also the use of topology_shuffler for SFC-63 Change-Id: Ie650e3347e40aee030005b6a2272cae64968d303 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-15Modify run_cmd to return exit codes as well as stdout and stderrJuan Vidal1-12/+14
The old implementation of run_cmd returned different things in different situations, so the simplified new version broke some functions relying on boolean values instead of stdout. Change-Id: Ie94e529d2abfad171b9707df169925c6f5f47dfc Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-15Refactor utils using installer adaptersGeorge Paraskevopoulos2-77/+36
JIRA: SFC-65 JIRA: SFC-71 Use the new library in releng to talk to fuel. This allows for correct configuration of the compute hosts to resolve SFC-71 Also since https://gerrit.opnfv.org/gerrit/#/c/28281/ was merged it allows to run in multienv deployments so it resolves SFC-65 Change-Id: I5e6beb90d9c5108c21acb8d898f07cd2f4ae34f3 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-14Extend the logging in the utils lib“Manuel Buil”1-0/+2
To learn about some of the bugs I saw, I added these lines to know what is going on. It was very useful to me and I thought that perhaps we can add it to the code to help in the future Change-Id: I070077749d2086489a536c9a7b7ecca4a05bb0a1 Signed-off-by: “Manuel Buil” <mbuil@suse.com>
2017-02-13Fix bugs when setting up computes“Manuel Buil”1-2/+3
JIRA: SFC-71 1 - dev br-int was missing when adding the route 2 - grep exits with 1 when nothing is found triggering an ERROR log even though there was not error Change-Id: Ib65d74d4b01021dcabb5af9068451b97c0170f75 Signed-off-by: “Manuel Buil” <mbuil@suse.com>
2017-02-08Merge "Avoid looking for VMs from tenants different from the one running the ↵Manuel Buil1-1/+1
testcase"
2017-02-08Merge "Simplify run_cmd"Manuel Buil1-11/+5
2017-02-08Merge "Modification of the ofctl_time counter"Manuel Buil1-2/+17
2017-02-07Simplify run_cmdGeorge Paraskevopoulos1-11/+5
sfc.lib.utils.run_cmd has a lot of unnecessary options which are never used. This patch simplifies this function and also fixes the returncode checking (commands have terminate with errors on returncode != 0 not on return code < 0) Also change the return value on error to None instead of False Change-Id: I5f1068ffd1bc6091e866a002b1afcb2507d30981 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-06Avoid looking for VMs from tenants different from the one running the testcaseJuan Vidal1-1/+1
- The testcase should only retrieve servers from its tenant, not from other ones. Trying to access other tenant's VMs makes failures in subsequent parts of the test. Change-Id: I0779f1e159573162db59272142bc8773dcbafa2f Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-03Bug fix: prepare all computes not only one“Manuel Buil”1-12/+11
JIRA:SFC-71 Not all compute nodes were prepared with the right config to run SFC-NSH Change-Id: I3187020daecf0a90e5f7314dea3fefbf8fe470be Signed-off-by: “Manuel Buil” <mbuil@suse.com>
2017-02-03Modification of the ofctl_time counter“Manuel Buil”1-2/+17
If ODL is fast and changes the class. flow too quick, this function considers it as coming from an old deployment and thus never detects that the flows changed Change-Id: I0d6d1c27b325fb832d9ed6d4849f830eeea70185 Signed-off-by: “Manuel Buil” <mbuil@suse.com>
2017-01-17Merge "Fix wrong configuration lookup for functest_data folder"Manuel Buil1-1/+1
2017-01-17Merge "Get Fuel environment id from configuration"Manuel Buil2-1/+7
2017-01-12Sanitize sfc.lib.utilsGeorge Paraskevopoulos1-20/+5
- Remove unused (and unnecessary) wrapper function get_compute_nodes - Rename capture_err_logs to descriptive capture_ovs_logs - Rename compute_node argument in create_instance to av_zone - Rename capture_time_logs to more accurate wait_for_classification_rules Change-Id: Iab06eae0aa35b25ef7d5bf41a1e684f38b26430c Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-01-11Get Fuel environment id from configurationGeorge Paraskevopoulos2-1/+7
JIRA: SFC-65 Get the id of the fuel environment from config.yaml instead of an environmental variable Change-Id: I39e61200986b407ae19cc9f7c1384c34c8410c8b Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-01-09Fix wrong configuration lookup for functest_data folderJuan Vidal1-1/+1
Change-Id: I08e97a16f040a469ea588d39d65aeebef79081cf Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2016-12-21Update directory pathjose.lausuch1-3/+3
JIRA: FUNCTEST-673 Change-Id: I91e2e8664112db5fe6474ece96e699f611a01de9 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-19Follow OpenStack guidelines on importsVijayendra Radhakrishna1-2/+3
- Imports are changed as per doc below although it's not a pep8/flake8 violation - http://docs.openstack.org/developer/hacking/#imports Change-Id: I89b1ec8f1eba9145f24507fb0f610e5f74c86ce8 Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>
2016-12-16Fix sfc_test_dir pathGeorge Paraskevopoulos1-1/+2
Change-Id: I8caec09aa5c022baf64d48cab75eb347c2d78db5 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-15Make SFC installable as a python modulejose.lausuch4-0/+549
New directory structure: <root>/sfc <root>/sfc/lib/ <root>/sfc/tests <root>/sfc/tests/functest JIRA: SFC-60 After installing sfc, the imports would be: import sfc.tests.functest.x import sfc.lib.x Change-Id: Ib15172239aefdef65056d6598210a1b28a4b2eff Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>