aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-02-21Merge "Get vnfd parameter file location from config.yaml"Manuel Buil5-6/+24
2017-02-21Wait for flows to appear in all compute nodesGeorge Paraskevopoulos1-16/+18
Right now we check the classification rules only on the first compute node. This leads to race conditions when running the testcases on multiple computes (ie the test fails when a rule is installed in the first compute but not the other[s]) Change-Id: I13cf26201aae185a0a5d1220b38e061d8bd3c766 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
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 Paraskevopoulos5-6/+24
Change-Id: Ide425e860ad219ec24765905666994390858cfdb Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-20Use __name__ on Logger instantiation instead of custom stringsJuan Vidal8-10/+8
Change-Id: Ic68256410b29cf3ba39a10a92d243979ea475220 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-17Introduce new test case: symmetric service chainJuan Vidal5-0/+292
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 Paraskevopoulos3-58/+70
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 "Check that VNFs boot properly"Manuel Buil2-8/+6
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-16Check that VNFs boot properlyJuan Vidal2-8/+6
Change-Id: I10b82e9a48363cbe10c62d4f4f7f9b22371b06e9 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-16Merge "Moving installation docs to configguide"Manuel Buil4-50/+0
2017-02-16Merge "Fix default yaml parameter file"Manuel Buil1-1/+5
2017-02-16Moving installation docs to configguideBrady Johnson4-50/+0
- After talking to Sofia Wallin, we agreed that this is a better approach for the documentation. Change-Id: Ie3edcb11e4d7823b0d3362395a15bf73aeaaaf4b Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
2017-02-16Call the right function to create a vnfGeorge Paraskevopoulos1-2/+2
Change-Id: I7c65ef173c4a181c8f0f2d404c3fb6f005fe024e Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-16Fix default yaml parameter fileGeorge Paraskevopoulos1-1/+5
Fix the syntax for the VNFD parameter file Change-Id: I9f040ec7596a1e9e1c721766d5a21c0a12e9f516 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.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 Buil7-30/+34
2017-02-16Fix is_ssh_blocked and is_http_blockedJuan Vidal3-27/+23
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 Paraskevopoulos7-30/+34
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 Vidal3-17/+19
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 Paraskevopoulos5-108/+86
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-14Merge "Fix image name in vnfd templates and config.yaml"Manuel Buil5-7/+7
2017-02-14Merge "Add a warning to files changed by test cases"Manuel Buil2-0/+4
2017-02-14Merge "Extend the logging in the utils lib"Manuel Buil1-0/+2
2017-02-14Merge "Add some ignores to .gitignore"Manuel Buil1-0/+3
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-14Fix image name in vnfd templates and config.yamlGeorge Paraskevopoulos5-7/+7
Go back to ubuntu-based VM. Change-Id: I4a2b0da904144f77efba86e4084728102b202eab Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-13Add some ignores to .gitignoreJuan Vidal1-0/+3
- *pyc is bytecode python - egg-info folders are the result of installation of python packages - ovs-logs is used by tests to dump runtime information None of these files/folders should be added to the repository, so it is better to make git completely ignore them Change-Id: If26038984f82a92e7118f2accc0f93d2592391b7 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-13Add a warning to files changed by test casesJuan Vidal2-0/+4
Test case sfc_one_chain_two_service_functions_two_computes modifies the configuration files when it is run. Since this is not expected (testcases should not change its configuration), it is better to at least have a warning and a reminder to fix it. Change-Id: I00d374742e17e8eed26fb97a0287e1dbd5d42d6b Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.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-10Migrate docs to the new Danube dir structureBrady Johnson23-0/+0
Change-Id: I6bdfd21add4d04f0fee988f83888c1edcc488951 Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.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 "Modify name and filename for VM image to use a sparse and compressed one"Manuel Buil1-3/+3
2017-02-08Merge "Modification of the ofctl_time counter"Manuel Buil1-2/+17
2017-02-07Modify name and filename for VM image to use a sparse and compressed oneJuan Vidal1-3/+3
Change-Id: I83bc0ed150e1e793e0e55d6bd787b13370c7a540 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
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-07Merge "Update delete script"Manuel Buil1-1/+2
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-06Remove unused variables and collapse some function callsJuan Vidal1-24/+9
- Argument parsing is not used in sfc_two_chains_SSH_and_HTTP test - Collapsed into just one line function calls that fit in 79 characters Change-Id: I630686d109e03dabda0c4e45f946a69d506ccebd Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-03Merge "Bug fix: prepare all computes not only one"Manuel Buil1-12/+11
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-02-03sfc-demo bash script for quick debug and testingVijayendra Radhakrishna1-0/+655
- Script is independent of functest, works using openstack commandline - Several commandline options are provided for flexibility Change-Id: Ibb852151a41babdc2cc435bd355bc91bc296fe3e Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>