安装

通过Rally进行Tempest测试,执行如下命令创建tempest实例,Rally会自动同步tempest代码至本地:

rally verify create-verifier  --name test_02 --type tempest  --platform  openstack   --source https://github.com/openstack/tempest.git

配置

1,查看verifiers的uuid

(python34_rally) [root@control01 ~]# rally verify list-verifiers
+--------------------------------------+---------+---------+-----------+---------------------+---------------------+-----------+---------+-------------+--------+
| UUID | Name | Type | Platform | Created at | Updated at | Status | Version | System-wide | Active |
+--------------------------------------+---------+---------+-----------+---------------------+---------------------+-----------+---------+-------------+--------+
| df322328-e728-4652-b8e4-4f38ff878607 | test_02 | tempest | openstack | 2019-11-22T10:02:34 | 2019-11-22T10:31:13 | installed | master | False | :-) |
+--------------------------------------+---------+---------+-----------+---------------------+---------------------+-----------+---------+-------------+--------+

2,找到配置文件

[root@control01 verification]# ls
verifier-00853154-a78a-4e7b-aed4-1e599ba0b6d6 verifier-c0239e9f-e17d-4406-9f3f-e1bafab0e26a verifier-d832006c-fa62-4a65-a0c6-5e4124581090
verifier-4da4a9e4-23c5-45fe-91fe-ba998a596c55 verifier-c60b080b-f57b-4381-b562-4eff2d9e7b0a verifier-df322328-e728-4652-b8e4-4f38ff878607
[root@control01 verification]#

根据第一步的uuid找到对应的verifier,然后进入文件夹

[root@control01 verifier-df322328-e728-4652-b8e4-4f38ff878607]# ls
for-deployment-dcc4790c-1899-425f-8e20-486d0912cf99 repo

然后进入for-deployment开头的文件夹下,找到对应配置文件进行编辑

[root@control01 verifier-df322328-e728-4652-b8e4-4f38ff878607]# cd for-deployment-dcc4790c-1899-425f-8e20-486d0912cf99/
[root@control01 for-deployment-dcc4790c-1899-425f-8e20-486d0912cf99]# ls
lock_files tempest.conf tempest-image tempest.log
[root@control01 for-deployment-dcc4790c-1899-425f-8e20-486d0912cf99]#

ps:如果没有该配置文件,可以 使用“rally verify genconfig”命令来生成配置文件

执行测试

1,执行rally verify start开始测试所有openstack 接口,可以通过指定--pattern参数,仅对部分服务接口进行测试

例如,--pattern set=compute可选的set有full, smoke, compute, identity, image, network, object_storage, orchestration, volume, scenario

2,--pattern参数后面的值也可以是正则表达式,此时测试的接口为某一服务的部分接口,例如:--pattern tempest.api.compute.admin.test_flavors.FlavorsAdminTestJSON

  1. 执行全部的测试:

    $ rally verify start --deployment <``deployment_name``>

  2. 执行某一类的测试,如 smoke,compute,database 等等:

    $ rally verify start --deployment <``deployment_name``> --set smoke

  3. 根据正则表达式执行某一个用例或者某个文件里面的用例:

    $ rally verify start --deployment <``deployment_name``> --regex tempest.api.identity.admin.v2.test_roles

  4. 根据提供的用例清单执行测试:

    $ rally verify start --deployment <``deployment_name``> --tests-file <``path of tests file>

测试结果查看

  1. 先到数据库里得到最近这次结果对应的 uuid:

    $ rally verify list

  2. 然后根据这个 uuid 将结果导出成 html 形式(也可以导成 csv 或者 json 格式):

     rally verify report --uuid 10682402-40b0-48f7-a40b-8178d1877fd8 --type html --to nova-server.html

参考文档:

https://docs.openstack.org/developer/rally/quick_start/tutorial/step_10_verifying_cloud_via_tempest_verifier.html

rally使用tempest进行测试的更多相关文章

  1. Linux运维--实践-Rally

    1.rally简介 OpenStack Rally 是一个自动化测试工具,社区希望通过 Rally 来解答 "How does OpenStack work at scale?(如何规模化运 ...

  2. 如何解决Rally模板提示angular js加载错误

    [前言] Rally是一个开源测试工具,用于测试openstack各个组件的性能 在使用Rally测试完毕后,一般会生成测试报告,这点很重要.但是原生态的Rally报告模板angular js框架是从 ...

  3. 企业环境下的OpenStack自动化功能测试(转载)

    原文地址:http://mp.weixin.qq.com/s?__biz=MzAxOTAzMDEwMA==&mid=2652502581&idx=1&sn=0c26519bcb ...

  4. 超千个节点OpenStack私有云案例(1):CERN 5000+ 计算节点私有云

    CERN:欧洲核子研究组织 本文根据以下几篇文章整理而来: https://www.openstack.org/summit/tokyo-2015/videos/presentation/unveil ...

  5. 我的第二本译作《精通OpenStack》上架啦:前言、目录和样章

    1. 前言 今天,随着新功能和子项目的增加,OpenStack已成为一个不断扩展的大型开源项目.随着数以百计大型企业采用并不断为OpenStack生态系统做出贡献,OpenStack必将成为下一代私有 ...

  6. kolla-ansible-----rally模块

    Rally简介 Rally是OpenStack社区推出开源测试工具,可用于对OpenStack各个组件进行性能测试. 通过使用Rally组件,用户可完成OpenStack云计算平台的安装部署.功能验证 ...

  7. OpenStack平台功能性测试工具Tempest安装

    社区对OpenStack平台功能性的测试工具采用Tempest,性能测试采用Rally. 1.什么是Tempest tempest├── api # API的测试集├── cli # OpenStac ...

  8. Python学习总结 11 使用tempest测试OpenStack

    1, 什么是Tempest tempest ├── api # API的测试集 ├── cli # OpenStack的命令行工具测试集 ├── common # 一些公共的工具类和函数 ├── sc ...

  9. rally测试opentack------安装部署和简单实践

    1,下载 git clone git://git.openstack.org/openstack/rally 或者 git clone https://git.openstack.org/openst ...

随机推荐

  1. VMware虚拟机与Linux Centos7下载及安装教程

    1.CentOS下载CentOS是免费版,推荐在官网上直接下载,网址:https://www.centos.org/download/ DVD ISO:普通光盘完整安装版镜像,可离线安装到计算机硬盘上 ...

  2. 04_Redis_Hash命令

    一:Redis 哈希(Hash) 1.1:Redis hash 是一个string类型的field和value的映射表,hash特别适合用于存储对象. 1.2:Redis 中每个 hash 可以存储 ...

  3. CentOS7 字体安装卸载

    CentOS7 默认安装有 Fonts 程序, 所以能直接双击打开字体文件, 并且可以直接点击上图的 Install 按钮安装字体.采用这种安装方法,字体会被安装在 ~/.local/share/fo ...

  4. SPOJ - AMR11B 判断是否在三角形 正方形 圆形内

    Hogwarts is under attack by the Dark Lord, He-Who-Must-Not-Be-Named. To protect the students, Harry ...

  5. CSS基础学习 20.CSS媒体查询

  6. Load store and memoryless

    metal https://developer.apple.com/library/archive/documentation/3DDrawing/Conceptual/MTLBestPractice ...

  7. Eclipse中给jar包导入JavaDoc注释文档的方法

    原文链接:http://www.apkbus.com/android-124056-1-1.html 第一步:将jar加入到Referenced Libraries 右键点击jar --> 选择 ...

  8. thinkphp5.1整合swoole

    该方法仅作一种思路参考,实际应用也许会破坏thinkphp5.1的路由功能,并带来诸多问题,请读者尽量按照tp5.1官方的技术整合手段进行,按照tp5.1官方用户手册的方法可以实现swoole 风格的 ...

  9. react-router5.x 的配置及其页面跳转方法和js跳转方法

    https://blog.csdn.net/sinat_37255207/article/details/90745207 上次用react-router 的时候  还是3.x 很久不用 已经到rea ...

  10. 题解 [CF803C] Maximal GCD

    题面 解析 一开始以为这题很难的... 其实只要设\(d\)为\(a\)的最大公因数, 即\(a[i]=s[i]*d\), 因为\(n=\sum_{i=1}^{n}a[i]=\sum_{i=1}^ns ...