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 } } } ] }
会出现 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 } } } } ] }
测试结果
|
|
|
---|---|---|
|
|
|
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 |
|