diff --git a/etc/rally/rally.conf.sample b/etc/rally/rally.conf.sample index 87a4ac07..a3594762 100644 --- a/etc/rally/rally.conf.sample +++ b/etc/rally/rally.conf.sample @@ -280,6 +280,16 @@ # Server suspend poll interval (floating point value) #nova_server_suspend_poll_interval = 2.0 +# Time to sleep after resume before polling for status (floating +# point value) +#nova_server_resume_prepoll_delay = 2.0 + +# Server resume timeout (floating point value) +#nova_server_resume_timeout = 300.0 + +# Server resume poll interval (floating point value) +#nova_server_resume_poll_interval = 2.0 + # Time to sleep after image_create before polling for status (floating # point value) #nova_server_image_create_prepoll_delay = 0.0 diff --git a/rally-jobs/rally.yaml b/rally-jobs/rally.yaml index 4a758334..3a7e0f43 100755 --- a/rally-jobs/rally.yaml +++ b/rally-jobs/rally.yaml @@ -1086,6 +1086,26 @@ failure_rate: max: 0 + NovaServers.suspend_and_resume_server: + - + args: + flavor: + name: "m1.tiny" + image: + name: {{image_name}} + detailed: True + runner: + type: "constant" + times: 3 + concurrency: 3 + context: + users: + tenants: 3 + users_per_tenant: 1 + sla: + failure_rate: + max: 0 + NovaServers.list_servers: - args: @@ -1476,4 +1496,4 @@ users_per_tenant: 1 sla: failure_rate: - max: 0 \ No newline at end of file + max: 0 diff --git a/samples/tasks/scenarios/nova/suspend-and-resume.json b/samples/tasks/scenarios/nova/suspend-and-resume.json new file mode 100644 index 00000000..221b7860 --- /dev/null +++ b/samples/tasks/scenarios/nova/suspend-and-resume.json @@ -0,0 +1,26 @@ +{ + "NovaServers.suspend_and_resume_server": [ + { + "args": { + "flavor": { + "name": "m1.nano" + }, + "image": { + "name": "^cirros.*uec$" + }, + "force_delete": false + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/nova/suspend-and-resume.yaml b/samples/tasks/scenarios/nova/suspend-and-resume.yaml new file mode 100644 index 00000000..b7f60457 --- /dev/null +++ b/samples/tasks/scenarios/nova/suspend-and-resume.yaml @@ -0,0 +1,17 @@ +--- + NovaServers.suspend_and_resume_server: + - + args: + flavor: + name: "m1.nano" + image: + name: "^cirros.*uec$" + force_delete: false + runner: + type: "constant" + times: 10 + concurrency: 2 + context: + users: + tenants: 3 + users_per_tenant: 2