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:
parent
a22790ab1b
commit
a8d5470006
@ -280,6 +280,16 @@
|
|||||||
# Server suspend poll interval (floating point value)
|
# Server suspend poll interval (floating point value)
|
||||||
#nova_server_suspend_poll_interval = 2.0
|
#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
|
# Time to sleep after image_create before polling for status (floating
|
||||||
# point value)
|
# point value)
|
||||||
#nova_server_image_create_prepoll_delay = 0.0
|
#nova_server_image_create_prepoll_delay = 0.0
|
||||||
|
@ -1086,6 +1086,26 @@
|
|||||||
failure_rate:
|
failure_rate:
|
||||||
max: 0
|
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:
|
NovaServers.list_servers:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
|
26
samples/tasks/scenarios/nova/suspend-and-resume.json
Normal file
26
samples/tasks/scenarios/nova/suspend-and-resume.json
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
17
samples/tasks/scenarios/nova/suspend-and-resume.yaml
Normal file
17
samples/tasks/scenarios/nova/suspend-and-resume.yaml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user