Teuthology节点的部署——Ceph自动化测试平台(六)

本文是CentOS下搭建Teuthology Ceph自动化测试平台系列的第六篇,主要讲述Teuthology节点的部署,包括部署准备、代码修改、调度者与执行者部署、日志服务器和邮件服务的设置。详细介绍了配置依赖、启动beanstalkd队列、创建用户、权限设置、修改配置文件等步骤,并提供了相关代码的修改建议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值