CentOS下搭建Teuthology Ceph自动化测试平台(一)
CentOS下搭建Teuthology Ceph自动化测试平台(二)
CentOS下搭建Teuthology Ceph自动化测试平台(三)
CentOS下搭建Teuthology Ceph自动化测试平台(四)
CentOS下搭建Teuthology Ceph自动化测试平台(五)
Teuthology节点的部署——Ceph自动化测试平台(六)
Teuthology的使用与Ceph自动化测试用例的编写(一)
Teuthology的使用与Ceph自动化测试用例的编写(二)
本节是 CentOS下搭建Teuthology Ceph自动化测试平台(六),主要介绍Teuthology节点的部署,稍微改了下标题。
部署准备
以下内容在,我使用了新的节点,因为会产生很多的日志,最后还需要把日志做成日志服务器,方便在浏览器上查看。这个节点需要比较大的硬盘空间。该节点包含两个用户,一个是管理者,它负责生成任务JOB,并将任务JOB发布到队列中,另一个是执行者则从队列中取出JOB,然后使用slave资源节点来执行相应的任务。
首先在安装相关的依赖:
#yum install git python-pip python-virtualenv beanstalkd
#yum install mariadb-devel libev-devel libvirt-devel libffi-devel
启动beanstackd队列:
#systemctl start beanstalkd
创建teuthology与teuthworker两个用户:
#useradd -m teuthology -g root -G root
#echo teuthology:1q2w3e | chpasswd
#useradd -m teuthworker -g root -G root
#echo teuthworker:1q2w3e | chpasswd
分别给两个账号授予passwordless sudo access权限:
#vi /etc/sudoers
# 添加下面两行
teuthology ALL=(ALL) NOPASSWD: ALL
teuthworker ALL=(ALL) NOPASSWD: ALL
添加配置文件:
#vi /etc/teuthology.yaml
# lab_domain: the domain name to append to all short hostnames
#lab_domain: example.com
lab_domain: 'abc.cn'
# The root directory to use for storage of all scheduled job logs and
# other data.
#archive_base: /home/teuthworker/archive
archive_base: /home/teuthworker/archive
# The default machine_type value to use when not specified. Currently
# only used by teuthology-suite.
default_machine_type: awesomebox
# Control how many machines need to be free in the cluster. 0 means
# Teuthology can use the entire cluster.
reserve_machines: 0
# The host and port to use for the beanstalkd queue. This is required
# for scheduled jobs.
#queue_host: localhost
#queue_port: 11300
queue_host: 127.0.0.1
queue_port: 11300
# The URL of the lock server (paddles). This is required for scheduled
# jobs.
#lock_server: http://paddles.example.com:8080/
lock_server: 'http://192.168.122.34:8080/'
# The URL of the results server (paddles).
#results_server: http://paddles.example.com:8080/
results_server: 'http://192.168.122.34:8080/'
# This URL of the results UI server (pulpito). You must of course use
# paddles for pulpito to be useful.
results_ui_server: 'http://192.168.122.34:8081/'
# Email address that will receive job results summaries.
#results_email: ceph-qa@example.com
# Email address that job results summaries originate from
results_sending_email: 123456789@qq.com
# How long (in seconds) teuthology-results should wait for jobs to finish
# before considering them 'hung'
results_timeout: 43200
# Gitbuilder archive that stores e.g. ceph packages
#gitbuilder_host: gitbuilder.example.com
gitbuilder_host: '192.168.122.251'
# URL for 'gitserver' helper web application
# see http://github.com/ceph/gitserver
githelper_base_url: http://git.ceph.com:8080
# Verify the packages signatures
check_package_signatures: false
# Where all git repos are considered to reside.
ceph_git_base_url: https://github.com/Github641234230/
# Where the ceph git repo is considered to reside.
ceph_git_url: https://github.com/Github641234230/ceph.git
# Where the ceph-qa-suite git repo is considered to reside.
#ceph_qa_suite_git_url: https://github.com/ceph/ceph-qa-suite.git
ceph_qa_suite_git_url: https://github.com/Github641234230/ceph.git
# Where teuthology and ceph-qa-suite repos should be stored locally
src_base_path: /home/foo/src
# Where teuthology path is located: do not clone if