teuthology 执行流程(1)

teuthology 是一个用python写的用于Ceph功能性验证的自动化集成测试框架。teuthology 的工作方式主要通过控制远程主机(通常是虚拟机)验证Ceph的功能,测试用例包含在 ceph-qa-suite中,大多是yaml风格的测试脚本。关于teuthology的介绍( here)和安装部署( here)在这篇blog中说明的很详细,本文重点关注teuthology的执行流程及部分代码分析。
Teuthology framework 的工作流程大致是这样的,首先通过scheduler节点生成需要测试suite的jobs,放到Beanstalk队列中,然后由worker节点从队列中取出任务,并在slave nodes上去执行。

scheduler生成jobs流程

teuthology 生成关于具体test suites的jobs是通过teuthology-suite命令执行的,一般在 ./teuthology/virtualenv/bin/ 目录下面,该目录下还包括其他跟teuthology相关的command:
  • teuthology - Run individual jobs
  • teuthology-coverage - Analyze code coverage via lcov
  • teuthology-kill - Kill running jobs or entire runs
  • teuthology-lock - Lock, unlock, and update status of machines
  • teuthology-ls - List job results by examining an archive directory
  • teuthology-openstack - Use OpenStack backend (wrapper around teuthology-suite)
  • teuthology-nuke - Attempt to return a machine to a pristine state
  • teuthology-queue - List, or delete, jobs in the queue
  • teuthology-report - Submit test results to a web service (we use paddles)
  • teuthology-results - Examing a finished run and email results
  • teuthology-schedule - Schedule a single job
  • teuthology-suite - Schedule a full run based on a suite (see suites in 
  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值