Add scenarios for live migration of an instance with volumes

* Add scenario for booting an instance from volume and then
  live migrating it.
* Add scenario for booting an instance from image, attaching
  a volume and then live migrating it.
* Add unit tests and conf files for new scenarios.

Change-Id: I96d6ddc623e5274bdccedadf7e3a68bd7d3733ee
This commit is contained in:
Marian Krcmarik 2015-02-20 15:01:23 +01:00
parent 42cf23dd19
commit a0089a957c
4 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{
"NovaServers.boot_server_attach_created_volume_and_live_migrate": [
{
"args": {
"size": 10,
"block_migration": false,
"image": {
"name": "^cirros.*uec$"
},
"flavor": {
"name": "m1.nano"
}
},
"runner": {
"type": "constant",
"times": 5,
"concurrency": 1
},
"context": {
"users": {
"tenants": 2,
"users_per_tenant": 2
}
}
}
]
}

View File

@ -0,0 +1,17 @@
---
NovaServers.boot_server_attach_created_volume_and_live_migrate:
- args:
flavor:
name: m1.nano
image:
name: "^cirros.*uec$"
size: 10
block_migration: false
runner:
type: constant
times: 5
concurrency: 1
context:
users:
tenants: 2
users_per_tenant: 2

View File

@ -0,0 +1,28 @@
{
"NovaServers.boot_server_from_volume_and_live_migrate": [
{
"args": {
"flavor": {
"name": "m1.nano"
},
"image": {
"name": "^cirros.*uec$"
},
"block_migration": false,
"volume_size": 10,
"force_delete": false
},
"runner": {
"type": "constant",
"times": 10,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
}
}
}
]
}

View File

@ -0,0 +1,18 @@
---
NovaServers.boot_server_from_volume_and_live_migrate:
- args:
flavor:
name: m1.nano
image:
name: "^cirros.*uec$"
block_migration: false
volume_size: 10
force_delete: false
runner:
type: constant
times: 10
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1