summaryrefslogtreecommitdiffstats
path: root/func
AgeCommit message (Collapse)AuthorFilesLines
2016-11-08Bugfix: cli.py and its unit test casewu.zhihui1-1/+1
since qtip use log instead of print, assert sentence need to modify. Change-Id: I8d19d0e50c4c70f34c7e916c7828984163586260 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-11-08Merge "rename test_cases/ to test_plan/"zhihui wu2-8/+8
2016-11-08Move a process file ips.log to /home/opnfv/qtip/wu.zhihui1-2/+1
It is better to put process files to /home/opnfv/qtip/. Change-Id: I3ed5d13fdf1ce65303f1005ed2284c9ba2271207 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-11-07rename test_cases/ to test_plan/wu.zhihui2-8/+8
JIRA: QTIP-131 Change-Id: I12c63b4f0ff0167073a0819bdb5d63ca0c6f06fb Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-11-05Remove results directory out of reposwu.zhihui1-1/+2
Delete results directory from qtip repos. And the results files will be stored under /home/opnfv/qtip/results. Change-Id: Ie1091e60eb77068c20a9095f0f85454f18173872 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-11-03Remove playbooks directorywu.zhihui1-1/+1
Qtip will use benchmarks/perftest/. JIRA: QTIP-131 Change-Id: Icef41b6bcdcb835d76e8e412dd865d1f156f1455 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-10-31Merge "Code refactor: spawn_vm.py"Yujun Zhang1-125/+82
2016-10-28Code refactor: spawn_vm.pywu.zhihui1-125/+82
1. update SampleHeat.yaml 2. No need to fetch private key file my_key.pem. 3. remove keypair value from spawn_vm_test.py 4. cleanup redundant code. Change-Id: Id7ccdbae5b88c86ebff7518710b6c91ab4281c53 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-10-26Merge "Remove Qtip private key files in repos"zhifeng jiang2-4/+12
2016-10-25Remove Qtip private key files in reposwu.zhihui2-4/+12
1. Automaticly genegrate private key files. 2. remove the key files in repo at last. 3. remove public key from authorized_keys of compute hosts. JIRA: QTIP-110 Change-Id: Ie22f3f195edf650e690a2ed69df1af191953068f Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-10-22Remove directory test_listwu.zhihui2-16/+20
Directory benchmarks/suite will be used instead of test_list. JIRA: QTIP-131 Change-Id: I2c1f534b72361cb2e6469463ef5e43714d6dc993 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-10-14Adjust directory structurewu.zhihui3-10/+10
qtip ! +---- scripts ! ! ! +----ref_result # python scripts to generate results report ! +----fetch_compute_ips.sh ! +----fetch_os_creds.sh ! +----file_permission.sh ! +----get_env_info.sh ! +----qtip_creds.sh ! +----ssh_exch.exp ! +---- config ! ! ! +---- Qtip_key ! +---- Qtip_key.pub ! +---- SampleHeat.yaml ! +---- utils ! ! ! +---- logger_utils.py ! +---- report # generate pdf report file Change-Id: Ia908ff31494369c1a13fb88b1ff9b0e5681f8e29 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-10-13update known_hosts path in ssh_test()wu.zhihui1-6/+6
In qtip container, env HOME is changed to /home/opnfv. '~/.ssh/known_hosts' need be specified to '/root/.ssh/known_hosts' in ssh_test(). Change-Id: I902699164c0fb6a06e0253020bf701e206cfd166 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-10-11Merge "Rename class cli to Cli"Yujun Zhang1-1/+1
2016-10-09bugfix: function name typowu.zhihui1-1/+1
Change-Id: Idf41a5cb02bdb59e6e5d107fa0734091fd9c8a91 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-10-09Merge "change fetch_compute_ips.sh path"Yujun Zhang2-120/+1
2016-10-09code refactor: create_zones.pywu.zhihui2-79/+38
1. simply the process of creating aggregates in create_zones.py. 2. before creating aggregates, it will clean all aggregates firstly. TODO: It should clean up the created aggregates. It needs a big structure modification in args_handler.py. Let's do it step by step. Change-Id: I31e09e917ba83d4676f7f95d9f5186bce8d2a449 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-10-08change fetch_compute_ips.sh pathwu.zhihui2-120/+1
Change-Id: I7e3d08adc47304d8174a1706f87e6c4ae430ae34 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-10-07Rename `suit` to `suite`Yujun Zhang2-7/+7
We should use correct words for naming. Change-Id: Ia1ec690fca62259b5f226e2d6941a507cc61786e Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2016-10-07Rename class cli to CliYujun Zhang1-1/+1
class name should be CamelCase Change-Id: I3b68b14483a475499baf832eb1af93ecca171b14 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2016-10-07Merge "Running a single benchmark as an option for user."Yujun Zhang2-3/+21
2016-10-01Running a single benchmark as an option for user.linux_geek2-5/+23
JIRA: QTIP-104 Change-Id: I4413d1e2670192b86af0aad62fb2752d2709fa14 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2016-10-01Non-zero exit status should be used when teminated abnormallyYujun Zhang2-3/+3
Change-Id: I6034b3735ebf412ef4c11c837a42f121161a70b2 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2016-09-27Merge "code refactor: run_qtip.sh"Yujun Zhang2-67/+0
2016-09-27code refactor: run_qtip.shwu.zhihui2-67/+0
1. Add prepare_qtip_image.sh to prepare qtip image before qtip test. 2. Add cleanup_qtip_image.sh to clean up qtip image after finishing qtip test. Both of them are invoked in run_qtip.sh Change-Id: Iba892a2e02e31820ed0525f80a4e2885899557e0 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-09-25Bugfix: Get private ip wrong in iperf vm test.zhifeng.jiang1-1/+1
Change-Id: I92c937eaadf5adfa4a8eced5b95af26612d7c523 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-09-23Return the ansible playbook running results in driver.py and args_handler.pyzhifeng.jiang2-11/+24
JIRA:QTIP-99 Change-Id: I875ad52bc69a843e39deb92ad45da90c2e737aae Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-09-21Merge "add unified logger process for qtip"Yujun Zhang3-22/+28
2016-09-21Merge "Fix issues found in security review"Yujun Zhang2-2/+2
2016-09-21add unified logger process for qtipSerenaFeng3-22/+28
log the output information to both file and console, and unify the log file path and level JIRA: QTIP-108 Change-Id: I3a881e9da1f74c6959250a94f05cf90a231c34e6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-09-21Merge "Run benchmark test in restful server post api"Yujun Zhang1-6/+10
2016-09-20Run benchmark test in restful server post apizhifeng.jiang1-6/+10
modification: Call ansible async in restful server post api Set the job state 'finished' when finish benchmark test Terminate the next benchmark in restful server delete api job result will be in next commit JIRA:QTIP-97 Change-Id: I252482dddd9b35ba33f992e8ea19037d8919fad6 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
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