openstack rally 平台安装

在本地环境中,为了安装并使用OpenStack Rally进行性能测试,首先需要配置pypi源。接着,详细步骤包括安装Rally、创建新的deployment以及部署tempest。通过这些操作,可以对OpenStack进行场景性能评估。
摘要由CSDN通过智能技术生成
  1. 本地环境,需要配置pypi 源
        ]#  mkdir /root/.pip
        ]#  vi /root/.pip/pip.conf

        [global]
        index-url = http://10.58.56.10/pypi/simple
        trusted-host = 10.58.56.10
        [easy_install]
        index-url = http://10.58.56.10/pypi/simple
       [search]
       index = http://10.58.56.10/pypi/simple/

       ]# vi /root/.pydistutils.cfg

       [easy_install]
       index_url = http://10.58.56.10/pypi/simple
  1. 安装rally 
      ]# git clone    https://github.com/openstack/rally.git
      ]# cd  rally
      ]# chmod u+x install_rally.sh
      ]# ./install_rally.sh  

  1. 新建deployment
      ]#  cp /usr/share/rally/samples/deployments/existing.json  /root/existing.json
      ]#  vi /root/existin.json
       {
        "type": "ExistingCloud",
        "auth_url": "http://10.126.72.35:5000/v2.0/",       #keystone 服务地址
       "region_name": "regionOne",
       "endpoint_type": "public",
       "admin": {
          "username": "admin",
          "password": "admin",
          "tenant_name": "admin"
      },
      "https_insecure": false,
      "https_cacert": ""
     }

   ]# rally deployment create --filename existing.json --name other_deployment
  1. 安装tempest
       ]#  git clone   https://github.com/openstack/tempest.git
       ]#  rally verify install  --source /root/tempest

  1. 场景性能测试
       场景json 目录: /usr/share/rally/samples/tasks/scenarios
       ]# rally task start  /usr/share/rally/samples/tasks/scenarios/keystone/create-tenan.json
       
       测试结果转出html 格式:
       ]#   rally task report e940da9c-d2c5-499a-bad3-c744c211e78a --out output.html

     
      5.tempest测试
        ]#  rally verify start 
       单独测试某个模块命令:
       ]# rally verify start --set  compute
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值