aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/driver/ansible.py
AgeCommit message (Collapse)AuthorFilesLines
2017-03-08Implement ansible driverwu.zhihui1-14/+0
- According to inputs parameters, setup test environment. If failed during setupping, qtip will exited. If successful, execute metric tests. - Parameters(optional): * keypair: the keypair to login/execute commands to the remote hosts. They can be automatically generated. * hostfile: a inventory file. If not give, it can be automatically generated via installer. * args: the parameters passed to playbook - Use ansible python api to trigger ansible-playbook. Unit test will be in a new patch. Change-Id: I7470d348308f7cb6cb669bcc49063cf0f4da2111 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-03Refactor dhrystone playbookwu.zhihui1-0/+14
- Break previous one playbook into three playbooks: setup.yaml: setup test environment. run.yaml: execute test steps clean.yaml: cleanup test environment to restore environment The advantage is cleaning part will never be blocked by another. - Just do testing on remote hosts, parse logfile on localhost. - Use ansible module instead of shell command. - Move up all files under /ansible and remove ansible directory. Under /ansible, ansible package cann't be imported. Change-Id: I43c65be23869b7d42ca769994d4decb9a012d196 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-20code refactor: ansible playbook about system infowu.zhihui1-14/+0
- use module yum and apt instead of shell command - break sys_info_pbook.yaml into some small playbooks Change-Id: I33b36fa826c0e668e4a74846ad4da7f4a245a33f Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-01-03Add module skeletonsYujun Zhang1-0/+14
- Remove `suite` and `case` which seems redundant at the moment - Rename `qtip.spec` to `qtip.loader` since the class loads spec - Add driver `sample` which will generate random performance data - Add collector `logfile` which will collect result from log files - Add reporter `console` which will print report to console - Add exception classes See updated class diagram in https://wiki.opnfv.org/display/qtip/Design JIRA: QTIP-148 JIRA: QTIP-193 Change-Id: Idf751d33428176a26224e4443100a142feda6f32 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>