• 在docker中运行rally


     

    rally task start ./boot-and-delete-server.jsondocker hub版本

    https://hub.docker.com/r/rallyforge/rally/

    docker pull rallyforge/rally
    docker run -t -i -v ~/rally_home:/home/rally rallyforge/rally  #会将~/rally_home挂载到/home/rally下
    rally-manage db recreate
    新建一个rc文件:admin.rc
    source admin.rc
    rally deployment create --fromenv --name yttest
    rally deployment check
    {
        "NovaImages.list_images": [
            {
                "args": {
                    "detailed": true
                },
                "runner": {
                    "type": "constant",
                    "times": 100,
                    "concurrency": 50
                },
                "context": {
                    "users": {
                        "tenants": 3,
                        "users_per_tenant": 2
                    }
                }
            }
        ]
    }
    View Code

    会出现 WARNING /usr/local/lib/python2.7/dist-packages/rally/plugins/openstack/scenarios/nova/utils.pyc [-] Method '_delete_image' of NovaScenario class is deprecated since Rally 0.10.0. Use GlanceUtils instead.

    应该是版本差异造成的,但是可以正常跑完

    rally task start ./boot-and-delete-server.json

    {
        "NovaServers.boot_and_delete_server": [
            {
                "args": {
                    "flavor": {
                        "name": "new-4C32G"
                    },
                    "image": {
                        "name": "centos7.1-20170522"
                    },
                    "force_delete": false
                },
                "runner": {
                    "type": "constant",
                    "times": 10,
                    "concurrency": 2
                },
                "context": {
                    "users": {
                        "tenants": 3,
                        "users_per_tenant": 2
                    },
                    "api_versions": {
                        "glance": {
                            "version": 2
                        }
                    }
                }
            }
        ]
    }
    View Code

    测试结果

     
     
     
     
     
     
    0.9.1 NovaAggregates.create_aggregate_add_host_and_boot_server No valid host was found. There are not enough hosts available
      boot_and_delete_server_with_keypair Multiple possible networks found, use a Network ID to be more specific.
      boot_server_and_add_secgroups Multiple possible networks found, use a Network ID to be more specific.
      boot_and_associate_floating_ip Multiple possible networks found, use a Network ID to be more specific.
      boot_and_bounce_server Rally tired waiting for Server s_rally_5c793a8f_rACFDtQq:361bf2a4-7cc2-44b7-82f5-4843487fe1cf to become ('ACTIVE') current status SHELVED_OFFLOADED
      boot_server_associate_and_dissociate_floating_ip  Multiple possible networks found, use a Network ID to be more specific.
      boot_server_attach_created_volume_and_resize  Unsupported VIF type binding_failed convert '_nova_to_osvif_vif_binding_failed'"
      boot_server_from_volume_and_resize Unsupported VIF type binding_failed convert '_nova_to_osvif_vif_binding_failed'"
      resize_server "Unsupported VIF type binding_failed convert '_nova_to_osvif_vif_binding_failed'"
      resize_shutoff_server "Unsupported VIF type binding_failed convert '_nova_to_osvif_vif_binding_failed'"
      shelve_and_unshelve_server

    Rally tired waiting for Server s_rally_5c793a8f_BE0WoYLS:1260adc3-b067-4083-84c4-b895b46d8567 to become ('ACTIVE') current status SHELVED_OFFLOADED

         

    自建版本

    http://geek.csdn.net/news/detail/67842

  • 相关阅读:
    [javaSE] 数组(获取最值)
    [javascript] Promise简单学习使用
    [javaSE] 基本类型(String相关)
    [android] 手机卫士黑名单功能(ListView结合SQLite增删改)
    [PHP] 重回基础(IO流)
    [PHP] 重回基础(Array相关函数)
    [PHP] 重回基础(date函数和strtotime函数)
    [HTML5] Canvas绘制简单图片
    [javaSE] 集合框架(TreeSet)
    [android] 手机卫士黑名单功能(ListView优化)
  • 原文地址:https://www.cnblogs.com/gushiren/p/9584907.html
Copyright © 2020-2023  润新知