Add "suspend and resume" scenario for Nova

This scenario covers cerate a server, suspend,
resume and then delete server

Change-Id: I22dd2bd4d148bc727dc30a3703211043526b9b47
This commit is contained in:
Pradeep K Surisetty 2015-03-31 08:30:47 +05:30
parent a22790ab1b
commit a8d5470006
4 changed files with 74 additions and 1 deletions

View File

@ -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

View File

@ -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:

View File

@ -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
}
}
}
]
}

View File

@ -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