From a0089a957cc4df1ff8348b559beb41ba0bf0be88 Mon Sep 17 00:00:00 2001 From: Marian Krcmarik Date: Fri, 20 Feb 2015 15:01:23 +0100 Subject: [PATCH] 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 --- ...ttach-created-volume-and-live-migrate.json | 27 ++++++++++++++++++ ...ttach-created-volume-and-live-migrate.yaml | 17 +++++++++++ ...t-server-from-volume-and-live-migrate.json | 28 +++++++++++++++++++ ...t-server-from-volume-and-live-migrate.yaml | 18 ++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 samples/tasks/scenarios/nova/boot-server-attach-created-volume-and-live-migrate.json create mode 100644 samples/tasks/scenarios/nova/boot-server-attach-created-volume-and-live-migrate.yaml create mode 100644 samples/tasks/scenarios/nova/boot-server-from-volume-and-live-migrate.json create mode 100644 samples/tasks/scenarios/nova/boot-server-from-volume-and-live-migrate.yaml diff --git a/samples/tasks/scenarios/nova/boot-server-attach-created-volume-and-live-migrate.json b/samples/tasks/scenarios/nova/boot-server-attach-created-volume-and-live-migrate.json new file mode 100644 index 00000000..e426c9e7 --- /dev/null +++ b/samples/tasks/scenarios/nova/boot-server-attach-created-volume-and-live-migrate.json @@ -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 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/nova/boot-server-attach-created-volume-and-live-migrate.yaml b/samples/tasks/scenarios/nova/boot-server-attach-created-volume-and-live-migrate.yaml new file mode 100644 index 00000000..dcaf0bc0 --- /dev/null +++ b/samples/tasks/scenarios/nova/boot-server-attach-created-volume-and-live-migrate.yaml @@ -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 diff --git a/samples/tasks/scenarios/nova/boot-server-from-volume-and-live-migrate.json b/samples/tasks/scenarios/nova/boot-server-from-volume-and-live-migrate.json new file mode 100644 index 00000000..b7fd3b8b --- /dev/null +++ b/samples/tasks/scenarios/nova/boot-server-from-volume-and-live-migrate.json @@ -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 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/nova/boot-server-from-volume-and-live-migrate.yaml b/samples/tasks/scenarios/nova/boot-server-from-volume-and-live-migrate.yaml new file mode 100644 index 00000000..ad31a367 --- /dev/null +++ b/samples/tasks/scenarios/nova/boot-server-from-volume-and-live-migrate.yaml @@ -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