aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/features/sfc
AgeCommit message (Collapse)AuthorFilesLines
2016-11-18Create ovs log artifact on odl-sfc failGeorge Paraskevopoulos1-13/+17
Move the ovs logs from failed tests in functest artifacts Change-Id: Icb537684ee2aa40d9bd182ba67a028e72496efa4 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-11-17Bug fix odl-sfcManuel Buil1-9/+14
I was not taking into account the case where the returned list is empty Change-Id: I533ea8fbc286cb564dccec06750cd1a8bbcf52f9 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-11-17Bug fix in odl-sfcManuel Buil1-1/+1
The function that measures the time it takes to update OVS had a bug Change-Id: I1e480759c0c20197dd412f3400ea50921764d991 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-11-17Feature to know the time it takes to update OVSManuel Buil2-0/+60
ODL takes too much time to update the classification rules and we would like to measure it to use it as a proof point that it is not acceptable. This feature allows to measure it. Change-Id: I00ade7e4aee7c9c81843077104727b98ad9bfea3 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-11-17Phase out sfc_colorado1 from the CIGeorge Paraskevopoulos1-588/+0
Now that the upstream ODL Netvirt & SFC communities have resolved the blocking issues for the OPNFV SFC is a good time to phase out the workaround testcase we had for C1 and use the original again Change-Id: Ifcc66612a21821d684b336129059da500068e67c Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-11-17Restructure SFC-ODL test casesVijayendra Radhakrishna1-425/+407
- Modularize some of the commonly used operations into small functions - Throw Proper error when Fuel has multiple envs and INSTALLER type is not FUEL - More error checks Change-Id: I08a182c280454a8b58715d0035da53250229ef43 Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com> Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-11-17Complete OVS logging for sfc testcasesGeorge Paraskevopoulos3-86/+150
- Add archiving capability in ovs_utils - Refactor common code into a single method - Add logging for compute nodes - Rename jumphost to proxy to avoid confusion Change-Id: I332bcb537d914c25febae53d5d48943e666da4f9 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-11-17Fix bug in ovs utilsGeorge Paraskevopoulos1-4/+41
Change-Id: I86995a2fce5199c9267edc0e0596d868cc7d20ab Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-11-17Bug fixes and updates to fit ODL Boron SR0Manuel Buil4-68/+9
Small bug fixes and some changes are done in order to be compatible with ODL Boron SR0 Change-Id: I02f2ed8c734145ff6e198f9529728a97a5c97a75 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-11-07Adapting testcase to Boron SR1colorado.2.0Manuel Buil2-0/+2
Boron SR1 fixed the issue creating the first classification rule, however it takes quite some time to do it. We need to wait a bit. Change-Id: Ib4d3ea98d68dcb2084374cb28c3772d375629826 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com> (cherry picked from commit 2f0f92ad849b541b35e91e845e5f7261523667eb)
2016-11-05Remove python-keystoneclient downgrade and keep the newer versionjose.lausuch1-1/+1
The docker build fails due to some inconsistency in the keystone versions. See JIRA for more info. JIRA: FUNCTEST-523 Change-Id: Ic8aeb564c2f8827417d49958c65916ff555bc706 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit a4f65f2d3052f8671bbcaca157c6053518339313)
2016-11-04Add security group rule for DHCPGeorge Paraskevopoulos2-0/+16
Due to a new change in Boron SR1 we need to add the DHCP security group rule explicitly. Change-Id: I0d3d0447e7c31046bdfbb08da8752ef130830c59 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit f3f0407d4524140cf459837de27cf6849575b769)
2016-10-24Bug fix for odl-sfcManuel Buil1-1/+2
We forgot to add the path to the file, so the script was not executing Change-Id: I3ec226f12e6db3402b20d9fcefaa0acecd5b3a70 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com> (cherry picked from commit 9d0cdbfd04bc35437b21a2042fb796fcabafe0a8)
2016-10-21Add ovs logging in sfc_colorado1George Paraskevopoulos1-8/+57
Change-Id: I25671508c28d44b83263073971c2bf52cea80c58 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 573953d3fda65c03ece01b1ee70516599c7ae831)
2016-10-21Add OVS loggerGeorge Paraskevopoulos4-0/+202
Add utility class to log OVS flows from a remote server. Change-Id: I80cb5b20dc15477771beb912f44cab28c7397e24 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit b2b00380b8d77b0037c9ef809d2538bb4e9428aa)
2016-10-20Added more logs to track better errorsManuel Buil2-5/+9
Apparently in the CI, the delete.sh script is not executed and we want to know why Change-Id: Iefbeb7f0222b3ea9664f5b03c6e0a5fbaaaa3a1f Signed-off-by: Manuel Buil <manuel.buil@ericsson.com> (cherry picked from commit 782c511c6cc1758c0a84857c3c23cf05b4b3791f)
2016-10-20Merge "Spawn instances in nova availability zone" into stable/coloradoJose Lausuch2-7/+12
2016-10-17Multi-compute support and python refactoringManuel Buil2-2/+99
We added support for multi-compute and changed one file from bash to python Change-Id: Ife3d5a8e41936c044cfe88664187d81c18d96b93 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com> (cherry picked from commit 873250561e60238db973d64f0d3bb61cb844d4a6)
2016-10-14Spawn instances in nova availability zoneGeorge Paraskevopoulos2-7/+12
Change-Id: I9dc3a00b3c96cf23916388a52efd610e4649dfff Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit bc72396bf41892ad31f0680da80c6ef347a0ba6b)
2016-10-11Bug fix in odl-sfc testcaseManuel Buil1-0/+5
Test is stopping if the route to the VMs ip range is already there because the command that adds that, exits with code 1 and set -e is activated. Now it is checked if it is there and if not, the command is executed Change-Id: I820a55aff2572aadcb1950fa9218b114a9058c57 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com> (cherry picked from commit e2c2ff612e7086ce2a1520029f5f58e75186ec17)
2016-10-11Small fixes in sfc testcaseGeorge Paraskevopoulos3-3/+3
Change-Id: Ib1c4fb64fdf72bcae99d05db3c3a41721c78ce27 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit a2454ab0d260494b0777171d0892fbb82a48b468)
2016-10-06Remove old tacker setupGeorge Paraskevopoulos2-37/+3
No need to install tacker here. We do it with fuel-plugin-tacker. Change-Id: Ic912048b8a0f169b062ac14788d94757c81bf073 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit acb35acb2a413612484f1669ea7859e2a8d6c789)
2016-09-27Move sfc custom flavor creationGeorge Paraskevopoulos2-0/+12
The custom flavor that is needed for the sfc test case is created in the tacker deployment phase. The result of this is that when we use alternative methods of deploying tacker (i.e. the tacker fuel plugin) the test fails. Changes: - Move the flavor creation inside the test case code - Add an optional public parameter in the [get_or_]create_flavor utility functions. Change-Id: Iea13f172076770dde3876b7e27edc9b7ca9b28db Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 40f68e35389cf19d3fb200d1655ecb055c85d1eb)
2016-09-22Increment counter in sfc_colorado1colorado.1.0George Paraskevopoulos1-0/+7
Avoid infinite loop Change-Id: I2b024b188dcf0cdddb924c5bd13c9dfe81183bdd Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 8f6343fb8020a8e609f771b0a52d49dc2f1c4f43)
2016-09-22Open secgroups and add check_ssh in sfc_colorado1George Paraskevopoulos2-15/+64
- Open port 22 in every security group - Add check_ssh for sfc_colorado1 - Replace exits with continue statements in sfc_colorado1 test loop Change-Id: Ic7a7ba67c729667621cc0d1114ee2a42d8846247 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 4b07146f7d667c04159d57d681102995f6060f86)
2016-09-21Add SSH connectivity checkGeorge Paraskevopoulos1-7/+32
- Remove sleep after floating IP assignment - Add ssh connection check - Fix iptables instruction Change-Id: I1a7aa7f928592f148ff4bcd20167e4684f7a7dbe Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit b9e50a3e0869cef0ff6ac11355abc2387c86839c)
2016-09-20Bug fix for the SFC-CI test caseManuel Buil4-4/+516
A iteration is added so that the test is run several times. We are experiencing that ODL requires one deployment for things to work Change-Id: Ic70e8f2dabbf03827dd6d7396d2ab8177140cc97 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com> (cherry picked from commit 89195402a303f6340b5f409b1df2e8bab1304270)
2016-09-14Add delay after SF floating IP assignmentGeorge Paraskevopoulos1-5/+5
JIRA: https://jira.opnfv.org/browse/SFC-48 The assignment of floating IPs to service functions needs some time to complete, otherwise we get ssh failures Change-Id: Ia3e789be95d20801ee2c741a473d407e936f4fb6 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit a684becbcffc993322209b525a64f10ee10d7ab5)
2016-09-13SFC testcase IP tables policyGeorge Paraskevopoulos1-0/+7
Add iptables rule to open requests. Tacker client fails to connect without this firewall rule. Change-Id: I7ca0258110571d8aacdf8214830e4fce5a172c59 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit a5bdcbf651016ed552967ed124c5fb2a19ad3d98)
2016-09-13[ODL-SFC] Add push resulst to DBjose.lausuch1-22/+38
Change-Id: I314cbda828f6ebda70f7fb4e7d39e781696bc073 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit b2c633fc572d842ea093ecab51356290eca1e692)
2016-09-08remove imported FUNCTEST_REPO objectSerenaFeng1-2/+4
According to openstack style guidelines in http://docs.openstack.org/developer/hacking/ **** Do not import objects, only modules (*) **** so direct FUNCTEST_REPO import should be avoided from functest.utils.functest_utils import FUNCTEST_REPO as FUNCTEST_REPO JIRA: FUNCTEST-459 Change-Id: Iac0d07a54957cd7419391de183660ac1ce0efd49 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-09-06Reduce logging in the SFC test caseGeorge Paraskevopoulos2-4/+47
JIRA: FUNCTEST-446 Reduce the logs that appear in the Jenkins CI console to make the output of the SFC test case more readable - Redirect tacker installation logs to results folder /home/opnfv/functest/results/odl-sfc.log - Split odl-sfc preparation into a new script - Pipe STDERR in the sfc.py script so that "Added to known hosts" messages do not show in the output Change-Id: Ibf871ade6827d4817f33623b935c5f1d904086bb Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-09-06Remove all logers as utils method args.Carlos Goncalves1-2/+1
As it modifies method params, it could break the testcases. JIRA: FUNCTEST-428 Conflicts: testcases/features/copper.py testcases/features/doctor.py testcases/features/domino.py Change-Id: I4263d9bd812f1803e513464e3c321cc4a7281958 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 8bfe49ee5a6d7b93b3ce7fb6aae0072acb1171d9)
2016-09-02stop hardcoded FUNCTEST_REPO path everywhereSerenaFeng1-6/+7
functest repo is used by almost every testcase, each place we get it like: REPOS_DIR = os.getenv('repos_dir') FUNCTEST_REPO = ("%s/functest" % REPOS_DIR) provide a common interface in functest_util.py JIRA: FUNCTEST-453 Change-Id: Ie0635dacc761ed2d05b7e606530368844f32ebaf Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 470f573a3ac2eb1783efec6da01a3bee33360c65)
2016-08-31Refactor SFC testcaseGeorge Paraskevopoulos1-49/+54
- Change the way the test checks if the vxlan_tool has started. Now the vxlan_tool is detected even if another python process is up. - Log the exceptions in the vxlan_tool check block. The exceptions that occur are not destructive for the testcase but it's better to be visible. - Add a 60 seconds sleep before the testcase starts to give plenty of time to ODL to add the correct flows. - Move the testcase success/fail check blocks inside the try blocks. The checks are performed on the stdout variable which is in scope only inside the try blocks. Change-Id: I49dec176fb83117e9896ac1d19e8a5bd95e3d7cf Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 563a540585768d900d70ce79f2a871a9d1fab03e)
2016-08-31Fix problem with SFC testBrady Johnson1-0/+5
- If its not possible to get the IPs, then exit - Patch Set 2: addressed code review comments Change-Id: I16e22513b32e2b0da311ebcc280f3611570634a3 Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com> (cherry picked from commit 429ea989e665ebc3dac381c2629662f327dd9a46)
2016-08-30update fuel ref in tacker setup scriptFerenc Cserepkei1-1/+1
Since the poc script is fixed it's fuel commit hash in the setup script have to be updated to select the fixed poc script. Change-Id: I1fd22e4dc216fd2889adea0c9889df1d4a1bf476 Signed-off-by: Ferenc Cserepkei <ferenc.cserepkei@ericsson.com> (cherry picked from commit 0d1faa954ec5a5e2911a2ec6df2f0a5f8782a623)
2016-08-24Fixing commit f1054f8fFerenc Cserepkei1-1/+1
fix missed the apt-get action Change-Id: Iac94576a2f712133eee92e4b5460f85d59e90e94 Signed-off-by: Ferenc Cserepkei <ferenc.cserepkei@ericsson.com> (cherry picked from commit 2002f166154ca5a9380f9d2da2843477669af8f5)
2016-08-24[SFC] Fixing CINikolas Hermanns1-0/+1
The fix https://gerrit.opnfv.org/gerrit/#/c/19351 will need more time for dicussion. In the meanwhile we can use this one so that CI does not break anymore. Change-Id: Icbd54200bd62e5019c2a556699ceb41afdb229ca Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com> (cherry picked from commit f1054f8f7c787e50df0c0e27ecb10752393071e2)
2016-08-19Bug fix - Better way to grab file from gerritManuel Buil1-3/+5
We changed the way to download a single file from gerrit We point now to the original file as bugs in tacker were fixed Change-Id: I566b2f95ac1ab6032f22180bb42d0fa49482058c Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-08-17Add reporting flag to push reuslts only from CIMorgan Richomme1-0/+15
JIRA: FUNCTEST-416 Change-Id: I1a5800be0dcf75573f44e6214b23917aadc1cbf7 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-08-12Merge "Bug fix to eliminate undeterministic behaviour"valentin boucher1-0/+3
2016-08-12Tacker post script link changedManuel Buil1-3/+3
The tacker post script was modified in the fuel plug-in and thus the link must be changed Change-Id: I541eb43baf70171cb7c7ceb3fae284309a1a458b Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-08-11Bug fix to eliminate undeterministic behaviourManuel Buil1-0/+3
When changing the classifier, ODL needs some seconds to update the switches and sometimes they are not changed when the script executes the second part of the test ==> test fails Change-Id: I1fa3306eb7b283d708dbd736d2365456559db9b9 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-08-10Bug fix in functest ODL-SFCManuel Buil2-5/+13
Change-Id: I496ade3ea5888967e933231f515a340369bffe8f Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-08-08Update test with the new SF and new tacker scriptManuel Buil4-6/+6
- A new SF image was created with a new name. Several files must be updated - There is a new tacker branch for OPNFV Colorado, an update was made Change-Id: Ib5ed364467baca32fa204155655318cb1ec189f5 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-08-05Bug fixes odl-sfc + new featuresManuel Buil3-18/+99
* Doing the test with private IPs as floating are currently not working in ODL * New SF takes more time to start the service. A while loop is added. * Configuration of the compute set-up due to ODL limitations added Change-Id: I5449af940caee456262dac66bc47b66fd05c2a70 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-08-01Several bug fixes in ODL-SFC functest testcaseManuel Buil2-19/+23
JIRA: SFC-42 - SSH options added so that the ssh key is not needed - IPTABLES change done before contacting nova, neutron... - Fix a problem in the CI test (we need to CD the BASEDIR) Change-Id: Id63c02a614bf31e5a33637c2bf95270bd1399ff8 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-07-28Bug fix of the CI script in the ODL-SFC test caseManuel Buil2-4/+4
Change-Id: Id3db14d1f26a7dd75cdaaf4d7ca0f54268a89faf Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-07-28Scripts added to enable the SFC-ODL test in CIManuel Buil2-0/+41
We need to install Tacker in the server before running the test cases Change-Id: Id7daee80627bc71c335fcb3efa5d389594641b65 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>