summaryrefslogtreecommitdiffstats
path: root/func
AgeCommit message (Collapse)AuthorFilesLines
2016-09-20Fix issues found in security reviewSerenaFeng2-2/+2
JIRA: QTIP-105 Change-Id: I08108a982f9059fd19b92df0d219fa8f13f288ad Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-09-15Bugfix:iperf benchmark run failed "privateip1 is undefined"zhifeng.jiang2-4/+6
modification: get privatedip1 var when role is '2-host' run on localhost once instead of twice Change-Id: I4155f2d0c45208c4a2a0e2844fdf87acb5c8575e Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-09-11ansible playbook bugfixwu.zhihui1-0/+2
According the qtip ci results, make these bugfixs. 1. skipping: no hosts matched This used to work in Ansible 1.9.x with 127.0.0.1;But does not work in Asible 2.x solved: add 127.0.0.1 as localhost in ./data/hosts 2. Using bare variables is deprecated. solved: update playbook 3. use git module 4. To save time, turning Off Facts on localhost. Since https://gerrit.opnfv.org/gerrit/#/c/20661/ is under codereview, for qtip ci job, I temporarily modify function write_to_file() in env_setup.py. Change-Id: I71a08ebf87cd8c8d851a3f8f760e29e8725f0e0f Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-09-09Merge "Remove os environment in driver.py so that it can be called by ↵zhifeng.jiang3-14/+20
restful server"
2016-09-08Remove os environment in driver.py so that it can be called by restful serverzhifeng.jiang3-14/+20
modification: Change os environments to parameters in driver.py Pass the parameters in cli.py and arg_handler.py JIRA:QTIP-97 Change-Id: Id67acb7e0ac46fa9e0e32481e947055b6d37dd95 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-09-06Merge "correct error code and cleanup duplicated code in ssh_test()"Yujun Zhang1-44/+23
2016-09-04Call ansible playbook by ansible api instead of os.systemzhifeng.jiang1-7/+7
JIRA:QTIP-99 Change-Id: Ife53a48d4af1fd3c60efc0673611321b3bc487a7 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-31correct error code and cleanup duplicated code in ssh_test()wu.zhihui1-44/+23
Change-Id: I6d7f598b7b8d2dbb987f0c82abb9831b2fd782a5 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-08-29bugfix: miss a whitespace in the playbook command.wu.zhihui1-1/+1
According to https://build.opnfv.org/ci/job/qtip-fuel-zte-pod2-daily -master/13/consoleFull, ERROR! the playbook: ./benchmarks/playbooks/dhrystone.yaml--private-key=./data/QtipKey could not be found miss a whitespace in the playbook command. Change-Id: Id5fea085eb3e24e4105f20ec800d4a07478fb383 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-08-25Bugfix: some errors in env_setup.py.wu.zhihui2-16/+16
Change-Id: Ia9ab50f8990659d4657e67f38ece72d5eb47f4d9 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-08-24Merge "Add ansible_api so that python call ansible playbook by api."Yujun Zhang1-0/+64
2016-08-21Code refactoring cli.py so that it can be reused by restful server.zhifeng.jiang3-69/+72
modification: Move function in cli.py to args_handler.py Add unit test for args_handler.py Add unit test for cli.py Delete print in driver.py to pass unit test JIRA:QTIP-99 Change-Id: Ib670d7dff494f3e04cdbe1de5c247d382b1052c1 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-21Add ansible_api so that python call ansible playbook by api.zhifeng.jiang1-0/+64
modification: Add ansible_api so that we can get ansible running results easily. Add UT for ansible_api.py JIRA:QTIP-99 Change-Id: I6e7b0b97e4d9ef184978833c61c17e944c1eb20c Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-21Merge "Code refactoring driver so that it can call ansible playbook by api."Yujun Zhang1-41/+55
2016-08-19Merge "Fetch all compute ips via installer Fuel."Yujun Zhang2-2/+174
2016-08-18Fetch all compute ips via installer Fuel.wu.zhihui2-2/+174
1. Fetch all compute ips via installer Fuel. 2. check the machines' ip. if unassigned, assign one of compute's ip to it. if assigned by test case yaml, check the validation. JIRA: QTIP-98 Change-Id: I5517916c594a14055087134d20c1fe4320b6d707 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-08-18Code refactoring driver so that it can call ansible playbook by api.zhifeng.jiang1-41/+55
JIRA:QTIP-99 Change-Id: Id182e586955bd5bc34cef787e71e1b6375c36dc9 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-10Fix Argument ParsingSai Sindhur Malleni1-2/+4
Not making the option -l and -f causes a traceback when checking if -l is a valid directory and -f is a valid file as concatenation is attemtped between string and None type. Signed-off-by: Sai Sindhur Malleni <smalleni@redhat.com> Change-Id: If0ae87cde0e43122b3318f9c3749c05639ac3f36
2016-08-09Merge "Fix the download fail and 'sshkey is not defined' problem in CI."Yujun Zhang1-1/+0
2016-08-06Fix the download fail and 'sshkey is not defined' problem in CI.zhifeng.jiang1-1/+0
modification: Remove the proxy info in zte-pod1 Fix 'sshkey is not defined' problem in CI Change-Id: I291eb03fea3f31cd8b499c6ee86836caa9a0de71 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-03Add parameter attempts in ping_test()wu.zhihui1-5/+7
According to https://build.opnfv.org/ci/job/qtip-fuel-zte-pod1-daily-master/55/consoleText, it need to add attempts for ping test. The default value is 30. Change-Id: Ia6c2628bd88c963374d00ed2c02346c8d7f40c39 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-07-16Fix pep8 errors for all the others python files.zhifeng.jiang1-4/+4
JIRA:QTIP-89 Change-Id: Ida1936dea3bcab6137d039fc2d21dc4df60d9f77 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-15Use local QTIP_CentOS.qcow2 img file.wu.zhihui1-7/+14
Check whether image file exists on local. If yes, use the local file. If no, download it. The benefit is shorten the execute time of CI. Change-Id: Ic9f9e84e85abb9b3adbc42462c136818f1c46767 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-07-13Merge "Add some UT test cases and fix pep8 errors for create_zone"Yujun Zhang1-127/+130
2016-07-12Add some UT test cases and fix pep8 errors for spawn_vmzhifeng.jiang1-282/+279
JIRA:QTIP-89 Change-Id: I2555a0a7a8ffaf6d19cfad88770cd8e378d154b2 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-12Merge "Add some UT test cases and fix pep8 errors for driver"Yujun Zhang1-20/+18
2016-07-10Add some UT test cases and fix pep8 errors for create_zonezhifeng.jiang1-127/+130
JIRA:QTIP-89 Change-Id: Ic5d88a7492f89dbffbed62ce15e3a4e04b4ef2cc Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-10Add some UT test cases and fix pep8 errors for driverzhifeng.jiang1-20/+18
JIRA:QTIP-89 Change-Id: I672ebaf733ec967307963a18f32ca0aa4afc672d Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-08Add some UT test cases and fix pep8 errors for fetchimgzhifeng.jiang1-30/+28
JIRA:QTIP-89 Change-Id: I623cd6e48d90996b0199f9b31f86c8844b4d5ceb Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-08Merge "Schema checking for yaml file in test_cases."Yujun Zhang1-28/+0
2016-07-06Schema checking for yaml file in test_cases.zhifeng.jiang1-28/+0
JIRA: QTIP-25 Change-Id: Ibc3d9d6f5f0606da6a876eae5d4b1c3edefb5b47 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-05Add some UT test cases and fix pep8 errors for cli and env_setup.zhifeng.jiang2-127/+126
JIRA:QTIP-89 Change-Id: I4a46898071001f679f1a032a560d605dffc8eb9f Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-06-21Run the test only when ping ok and try ping 20 times.zhifeng.jiang2-15/+19
JIRA: QTIP-92 Change-Id: I270deb3b1d930d6805524d10826f5711b3e4787e Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-06-13Fix the pep8 error in qtip.py and validate_yaml.pyzhifeng.jiang1-32/+28
JIRA:QTIP-89 Change-Id: Ifd760f74601dbc3e4d4c55108ed60a634f33cf49 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-06-02Correct the wrong default public network name when install is 'fuel' and ↵zhifeng.jiang1-1/+1
version is 8.0. JIRA:QTIP-83 Change-Id: I2864105e525f095302fd5ddf0e96d2cf76248c1c Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-06-01Merge "Read the proxy info from testcase, and set it to hosts when dhrystone ↵Nauman Ahad3-12/+22
benchmarks test."
2016-05-23Read the proxy info from testcase, and set it to hosts when dhrystone ↵zhifeng.jiang3-12/+22
benchmarks test. modification: Write the git_proxy_pbook.yaml to set git proxy info in hosts or vms. Write the sys_proxy_pbook.yaml to set yum apt wget env proxy info in hosts or vms. Change the dhrystone.yaml to include proxy and add the zte-pod1 /compute/dhrystone_bm.yaml.Tested and passed.Other playbooks did not include the proxy yet. I will test and push lately. QTIP-74 Change-Id: Ia820bc32798b9f1f6f4165a111524e04c129a5df Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-05-20Change the args.benchmark which is not defined to benchmarks[items]zhifeng.jiang1-1/+1
QTIP-76 Change-Id: Ia92268f296650331cec9baa876075b2708348ec5 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-02-15qtip: add user name in case of apex and make the changes in ansibleMofassirArif1-1/+1
playbooks to cater for apex. Also reduce the verbosity for runnning ansbile plays. Change-Id: Id3a6da7bea3ede99f8a23e5fd0a2801987f9565b Signed-off-by: MofassirArif <mofassir.arif@xflowresearch.com>
2016-02-09qtip: apex integration, add heat-admin as user for apex nodesMofassirArif1-1/+2
Change-Id: If49136ba8edcaf1d721c4592b61a1b7cd5c79e87 Signed-off-by: MofassirArif <mofassir.arif@xflowresearch.com>
2016-01-28qtip: add condition for switching user to joid.MofassirArif2-3/+17
Change-Id: I9898a4eb21fb197a59fc72686d156eb4ef115388 Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
2016-01-25update: address for testing dbMofassirArif1-1/+1
Change-Id: I48b30fffd1de2512e4f46ee951a85299edc06a1c Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
2016-01-21bug fix: result collection bug fix for docker imagesMofassirArif5-19/+23
Change-Id: Ia4ea09b90c7a4f4e3699af456c6d66e85661cc0b Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
2016-01-18bug fix: make installer specific changes for baremetal. caterMofassirArif1-1/+2
for fuel Change-Id: Ie8c233873041238e3fc1aaaa653653552c7c7428 Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
2016-01-12error handling for the files being input to the framework.MofassirArif4-14/+50
iperf bug fix for the bare metal testing, renamed all the iperf config files. added more detail to the help. Change-Id: I16cfb1c05599cd0b803e735e6a75083e3e6733ec Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
2016-01-11Updated the code to accept compute instead of compute.txtMofassir1-4/+4
Change-Id: I06ce77e04db0e1c7d7de6c16b3a876740099e5ae Signed-off-by: Mofassir <Mofassir_arif@Dellteam.com>
2016-01-06started work on the dashboard APIMofassir1-4/+26
Change-Id: Ifbb16f20ff8a0821b790c0c44a1eae82875f9051 Signed-off-by: Mofassir <Mofassir_arif@Dellteam.com>
2016-01-05I have added the placeholder documentation files andMofassir3-4/+4
folders. They will be editted in time for the release Change-Id: Id69392233399ad536b359da5733dfaa43a602443 Signed-off-by: Mofassir <Mofassir_arif@Dellteam.com>
2016-01-05QTIP Index calculation along with a script to run qtip from dockerNauman_Ahad1-4/+4
Calculation of Result Indices for 1. Compute suite 2. Storage suite 3. Network suite A script to run qtip from inside the docker container (for Jenkins Jobs) Resolved bugs with ssl_trasform.py, sys info collection on ubuntu and system information collection script Change-Id: Ic5abb3dbd0012cd2257b588b1b3067a6677b1f5d Signed-off-by: Nauman_Ahad <Nauman_Ahad@dell.com>
2015-12-22Restructured QTIP directories and CLIMofassir Arif3-42/+59
I have changed the arguments for the CLI and now QTIP takes a file along withthe name of the lab to run on Right now only the config files for the dell lab have been added, These will increase when we make QTIP available for other labs. I have also added the provision of changing the public network from the config file and some leftover files from previous verisons have been remove Change-Id: Ifeb01d80099eab06dc77a7b2e07097ebb17a13a2 Signed-off-by: Mofassir Arif <Mofassir_arif@dellteam.com>