Merge "Add scenario to boot and rebuild server"
This commit is contained in:
commit
56cbf020c8
@ -250,6 +250,16 @@
|
|||||||
# Server reboot poll interval (floating point value)
|
# Server reboot poll interval (floating point value)
|
||||||
#nova_server_reboot_poll_interval = 2.0
|
#nova_server_reboot_poll_interval = 2.0
|
||||||
|
|
||||||
|
# Time to sleep after rebuild before polling for status (floating point
|
||||||
|
# value)
|
||||||
|
#nova_server_rebuild_prepoll_delay = 0.0
|
||||||
|
|
||||||
|
# Server rebuild timeout (floating point value)
|
||||||
|
#nova_server_rebuild_timeout = 300.0
|
||||||
|
|
||||||
|
# Server rebuild poll interval (floating point value)
|
||||||
|
#nova_server_rebuild_poll_interval = 1.0
|
||||||
|
|
||||||
# Time to sleep after rescue before polling for status (floating point
|
# Time to sleep after rescue before polling for status (floating point
|
||||||
# value)
|
# value)
|
||||||
#nova_server_rescue_prepoll_delay = 2.0
|
#nova_server_rescue_prepoll_delay = 2.0
|
||||||
|
@ -1134,6 +1134,27 @@
|
|||||||
failure_rate:
|
failure_rate:
|
||||||
max: 0
|
max: 0
|
||||||
|
|
||||||
|
NovaServers.boot_and_rebuild_server:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
flavor:
|
||||||
|
name: "m1.tiny"
|
||||||
|
from_image:
|
||||||
|
name: {{image_name}}
|
||||||
|
to_image:
|
||||||
|
name: {{image_name}}
|
||||||
|
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:
|
||||||
|
28
samples/tasks/scenarios/nova/boot-and-rebuild.json
Normal file
28
samples/tasks/scenarios/nova/boot-and-rebuild.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"NovaServers.boot_and_rebuild_server": [
|
||||||
|
{
|
||||||
|
"args": {
|
||||||
|
"flavor": {
|
||||||
|
"name": "m1.nano"
|
||||||
|
},
|
||||||
|
"from_image": {
|
||||||
|
"name": "cirros-0.3.1-x86_64-uec"
|
||||||
|
},
|
||||||
|
"to_image": {
|
||||||
|
"name": "cirros-0.3.2-x86_64-uec"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runner": {
|
||||||
|
"type": "constant",
|
||||||
|
"times": 5,
|
||||||
|
"concurrency": 2
|
||||||
|
},
|
||||||
|
"context": {
|
||||||
|
"users": {
|
||||||
|
"tenants": 1,
|
||||||
|
"users_per_tenant": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
17
samples/tasks/scenarios/nova/boot-and-rebuild.yaml
Normal file
17
samples/tasks/scenarios/nova/boot-and-rebuild.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
NovaServers.boot_and_rebuild_server:
|
||||||
|
- args:
|
||||||
|
flavor:
|
||||||
|
name: m1.nano
|
||||||
|
from_image:
|
||||||
|
name: "cirros-0.3.1-x86_64-uec"
|
||||||
|
to_image:
|
||||||
|
name: "cirros-0.3.2-x86_64-uec"
|
||||||
|
runner:
|
||||||
|
type: constant
|
||||||
|
times: 5
|
||||||
|
concurrency: 2
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 1
|
||||||
|
users_per_tenant: 1
|
Loading…
Reference in New Issue
Block a user