diff --git a/samples/tasks/runners/constant/constant-for-duration.json b/samples/tasks/runners/constant/constant-for-duration.json new file mode 100644 index 00000000..29bade2d --- /dev/null +++ b/samples/tasks/runners/constant/constant-for-duration.json @@ -0,0 +1,20 @@ +{ + "Dummy.dummy": [ + { + "args": { + "sleep": 5 + }, + "runner": { + "type": "constant_for_duration", + "concurrency": 5, + "duration": 30 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/runners/constant/constant-for-duration.yaml b/samples/tasks/runners/constant/constant-for-duration.yaml new file mode 100644 index 00000000..a957d1f8 --- /dev/null +++ b/samples/tasks/runners/constant/constant-for-duration.yaml @@ -0,0 +1,13 @@ +--- + Dummy.dummy: + - + args: + sleep: 5 + runner: + type: "constant_for_duration" + concurrency: 5 + duration: 30 + context: + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/runners/constant/constant-timeout.json b/samples/tasks/runners/constant/constant-timeout.json new file mode 100644 index 00000000..dd852462 --- /dev/null +++ b/samples/tasks/runners/constant/constant-timeout.json @@ -0,0 +1,21 @@ +{ + "Dummy.dummy": [ + { + "args": { + "sleep": 10 + }, + "runner": { + "type": "constant", + "times": 20, + "concurrency": 5, + "timeout": 5 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/runners/constant/constant-timeout.yaml b/samples/tasks/runners/constant/constant-timeout.yaml new file mode 100644 index 00000000..6affdd7c --- /dev/null +++ b/samples/tasks/runners/constant/constant-timeout.yaml @@ -0,0 +1,14 @@ +--- + Dummy.dummy: + - + args: + sleep: 10 + runner: + type: "constant" + times: 20 + concurrency: 5 + timeout: 5 + context: + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/authenticate/token-validate-cinder.json b/samples/tasks/scenarios/authenticate/token-validate-cinder.json new file mode 100644 index 00000000..7abc5195 --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-cinder.json @@ -0,0 +1,20 @@ +{ + "Authenticate.validate_cinder": [ + { + "args": { + "repetitions": 2 + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 5 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/authenticate/token-validate-cinder.yaml b/samples/tasks/scenarios/authenticate/token-validate-cinder.yaml new file mode 100644 index 00000000..cdb1fc5c --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-cinder.yaml @@ -0,0 +1,13 @@ +--- + Authenticate.validate_cinder: + - + args: + repetitions: 2 + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + users: + tenants: 3 + users_per_tenant: 5 diff --git a/samples/tasks/scenarios/authenticate/token-validate-glance.json b/samples/tasks/scenarios/authenticate/token-validate-glance.json new file mode 100644 index 00000000..fda7d429 --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-glance.json @@ -0,0 +1,20 @@ +{ + "Authenticate.validate_glance": [ + { + "args": { + "repetitions": 2 + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 5 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/authenticate/token-validate-glance.yaml b/samples/tasks/scenarios/authenticate/token-validate-glance.yaml new file mode 100644 index 00000000..7b229ae5 --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-glance.yaml @@ -0,0 +1,13 @@ +--- + Authenticate.validate_glance: + - + args: + repetitions: 2 + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + users: + tenants: 3 + users_per_tenant: 5 diff --git a/samples/tasks/scenarios/authenticate/token-validate-heat.json b/samples/tasks/scenarios/authenticate/token-validate-heat.json new file mode 100644 index 00000000..4ba0e721 --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-heat.json @@ -0,0 +1,20 @@ +{ + "Authenticate.validate_heat": [ + { + "args": { + "repetitions": 2 + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 5 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/authenticate/token-validate-heat.yaml b/samples/tasks/scenarios/authenticate/token-validate-heat.yaml new file mode 100644 index 00000000..ec61061e --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-heat.yaml @@ -0,0 +1,13 @@ +--- + Authenticate.validate_heat: + - + args: + repetitions: 2 + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + users: + tenants: 3 + users_per_tenant: 5 diff --git a/samples/tasks/scenarios/authenticate/token-validate-monasca.json b/samples/tasks/scenarios/authenticate/token-validate-monasca.json new file mode 100644 index 00000000..8164824d --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-monasca.json @@ -0,0 +1,20 @@ +{ + "Authenticate.validate_monasca": [ + { + "args": { + "repetitions": 2 + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 5 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/authenticate/token-validate-monasca.yaml b/samples/tasks/scenarios/authenticate/token-validate-monasca.yaml new file mode 100644 index 00000000..ccd67b5e --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-monasca.yaml @@ -0,0 +1,13 @@ +--- + Authenticate.validate_monasca: + - + args: + repetitions: 2 + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + users: + tenants: 3 + users_per_tenant: 5 diff --git a/samples/tasks/scenarios/authenticate/token-validate-neutron.json b/samples/tasks/scenarios/authenticate/token-validate-neutron.json new file mode 100644 index 00000000..3c8b983a --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-neutron.json @@ -0,0 +1,20 @@ +{ + "Authenticate.validate_neutron": [ + { + "args": { + "repetitions": 2 + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 5 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/authenticate/token-validate-neutron.yaml b/samples/tasks/scenarios/authenticate/token-validate-neutron.yaml new file mode 100644 index 00000000..4653431f --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-neutron.yaml @@ -0,0 +1,13 @@ +--- + Authenticate.validate_neutron: + - + args: + repetitions: 2 + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + users: + tenants: 3 + users_per_tenant: 5 diff --git a/samples/tasks/scenarios/authenticate/token-validate-nova.json b/samples/tasks/scenarios/authenticate/token-validate-nova.json new file mode 100644 index 00000000..6a160cd4 --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-nova.json @@ -0,0 +1,20 @@ +{ + "Authenticate.validate_nova": [ + { + "args": { + "repetitions": 2 + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 5 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/authenticate/token-validate-nova.yaml b/samples/tasks/scenarios/authenticate/token-validate-nova.yaml new file mode 100644 index 00000000..5ba767fe --- /dev/null +++ b/samples/tasks/scenarios/authenticate/token-validate-nova.yaml @@ -0,0 +1,13 @@ +--- + Authenticate.validate_nova: + - + args: + repetitions: 2 + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + users: + tenants: 3 + users_per_tenant: 5 diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-get-event.json b/samples/tasks/scenarios/ceilometer/create-user-and-get-event.json new file mode 100644 index 00000000..9dd0d2cc --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-get-event.json @@ -0,0 +1,17 @@ +{ + "CeilometerEvents.create_user_and_get_event": [ + { + "runner": { + "type": "constant", + "times": 10, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} \ No newline at end of file diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-get-event.yaml b/samples/tasks/scenarios/ceilometer/create-user-and-get-event.yaml new file mode 100644 index 00000000..137042b9 --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-get-event.yaml @@ -0,0 +1,11 @@ +--- + CeilometerEvents.create_user_and_get_event: + - + runner: + type: "constant" + times: 10 + concurrency: 10 + context: + users: + tenants: 2 + users_per_tenant: 2 \ No newline at end of file diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-list-event-types.json b/samples/tasks/scenarios/ceilometer/create-user-and-list-event-types.json new file mode 100644 index 00000000..74a415ff --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-list-event-types.json @@ -0,0 +1,17 @@ +{ + "CeilometerEvents.create_user_and_list_event_types": [ + { + "runner": { + "type": "constant", + "times": 10, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} \ No newline at end of file diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-list-event-types.yaml b/samples/tasks/scenarios/ceilometer/create-user-and-list-event-types.yaml new file mode 100644 index 00000000..f95bc33c --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-list-event-types.yaml @@ -0,0 +1,11 @@ +--- + CeilometerEvents.create_user_and_list_event_types: + - + runner: + type: "constant" + times: 10 + concurrency: 10 + context: + users: + tenants: 2 + users_per_tenant: 2 \ No newline at end of file diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-list-events.json b/samples/tasks/scenarios/ceilometer/create-user-and-list-events.json new file mode 100644 index 00000000..3b86e603 --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-list-events.json @@ -0,0 +1,17 @@ +{ + "CeilometerEvents.create_user_and_list_events": [ + { + "runner": { + "type": "constant", + "times": 10, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} \ No newline at end of file diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-list-events.yaml b/samples/tasks/scenarios/ceilometer/create-user-and-list-events.yaml new file mode 100644 index 00000000..6d6e12ac --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-list-events.yaml @@ -0,0 +1,11 @@ +--- + CeilometerEvents.create_user_and_list_events: + - + runner: + type: "constant" + times: 10 + concurrency: 10 + context: + users: + tenants: 2 + users_per_tenant: 2 diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-list-trait-descriptions.json b/samples/tasks/scenarios/ceilometer/create-user-and-list-trait-descriptions.json new file mode 100644 index 00000000..9862b770 --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-list-trait-descriptions.json @@ -0,0 +1,17 @@ +{ + "CeilometerTraits.create_user_and_list_trait_descriptions": [ + { + "runner": { + "type": "constant", + "times": 10, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} \ No newline at end of file diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-list-trait-descriptions.yaml b/samples/tasks/scenarios/ceilometer/create-user-and-list-trait-descriptions.yaml new file mode 100644 index 00000000..4c02f09d --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-list-trait-descriptions.yaml @@ -0,0 +1,11 @@ +--- + CeilometerTraits.create_user_and_list_trait_descriptions: + - + runner: + type: "constant" + times: 10 + concurrency: 10 + context: + users: + tenants: 2 + users_per_tenant: 2 \ No newline at end of file diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-list-traits.json b/samples/tasks/scenarios/ceilometer/create-user-and-list-traits.json new file mode 100644 index 00000000..93f9e446 --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-list-traits.json @@ -0,0 +1,17 @@ +{ + "CeilometerTraits.create_user_and_list_traits": [ + { + "runner": { + "type": "constant", + "times": 10, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} \ No newline at end of file diff --git a/samples/tasks/scenarios/ceilometer/create-user-and-list-traits.yaml b/samples/tasks/scenarios/ceilometer/create-user-and-list-traits.yaml new file mode 100644 index 00000000..6e8720a0 --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/create-user-and-list-traits.yaml @@ -0,0 +1,11 @@ +--- + CeilometerTraits.create_user_and_list_traits: + - + runner: + type: "constant" + times: 10 + concurrency: 10 + context: + users: + tenants: 2 + users_per_tenant: 2 \ No newline at end of file diff --git a/samples/tasks/scenarios/dummy/dummy-exception-probability.json b/samples/tasks/scenarios/dummy/dummy-exception-probability.json new file mode 100644 index 00000000..1223f01e --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-exception-probability.json @@ -0,0 +1,20 @@ +{ + "Dummy.dummy_exception_probability": [ + { + "args": { + "exception_probability": 0.5 + }, + "runner": { + "type": "constant", + "times": 1000, + "concurrency": 1 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/dummy/dummy-exception-probability.yaml b/samples/tasks/scenarios/dummy/dummy-exception-probability.yaml new file mode 100644 index 00000000..97c5d305 --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-exception-probability.yaml @@ -0,0 +1,13 @@ +--- + Dummy.dummy_exception_probability: + - + args: + exception_probability: 0.5 + runner: + type: "constant" + times: 1000 + concurrency: 1 + context: + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/dummy/dummy-exception.json b/samples/tasks/scenarios/dummy/dummy-exception.json new file mode 100644 index 00000000..961e6d02 --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-exception.json @@ -0,0 +1,20 @@ +{ + "Dummy.dummy_exception": [ + { + "args": { + "size_of_message": 5 + }, + "runner": { + "type": "constant", + "times": 20, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/dummy/dummy-exception.yaml b/samples/tasks/scenarios/dummy/dummy-exception.yaml new file mode 100644 index 00000000..5174c0b1 --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-exception.yaml @@ -0,0 +1,13 @@ +--- + Dummy.dummy_exception: + - + args: + size_of_message: 5 + runner: + type: "constant" + times: 20 + concurrency: 5 + context: + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/dummy/dummy-output.json b/samples/tasks/scenarios/dummy/dummy-output.json new file mode 100644 index 00000000..8ef42984 --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-output.json @@ -0,0 +1,20 @@ +{ + "Dummy.dummy_output": [ + { + "args": { + "random_range": 25 + }, + "runner": { + "type": "constant", + "times": 50, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/dummy/dummy-output.yaml b/samples/tasks/scenarios/dummy/dummy-output.yaml new file mode 100644 index 00000000..fe99edfe --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-output.yaml @@ -0,0 +1,13 @@ +--- + Dummy.dummy_output: + - + args: + random_range: 25 + runner: + type: "constant" + times: 50 + concurrency: 5 + context: + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/dummy/dummy-random-action.json b/samples/tasks/scenarios/dummy/dummy-random-action.json new file mode 100644 index 00000000..098749d3 --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-random-action.json @@ -0,0 +1,22 @@ +{ + "Dummy.dummy_random_action": [ + { + "args": { + "atomics_num": 5, + "sleep_min": 0, + "sleep_max": 2 + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/dummy/dummy-random-action.yaml b/samples/tasks/scenarios/dummy/dummy-random-action.yaml new file mode 100644 index 00000000..45e97a66 --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-random-action.yaml @@ -0,0 +1,15 @@ +--- + Dummy.dummy_random_action: + - + args: + atomics_num: 5 + sleep_min: 0 + sleep_max: 2 + runner: + type: "constant" + times: 5 + concurrency: 5 + context: + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/dummy/dummy-random-fail-in-atomic.json b/samples/tasks/scenarios/dummy/dummy-random-fail-in-atomic.json new file mode 100644 index 00000000..5452b3c2 --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-random-fail-in-atomic.json @@ -0,0 +1,14 @@ +{ + "Dummy.dummy_random_fail_in_atomic": [ + { + "args": { + "exception_probability": 0.5 + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + } + } + ] +} diff --git a/samples/tasks/scenarios/dummy/dummy-random-fail-in-atomic.yaml b/samples/tasks/scenarios/dummy/dummy-random-fail-in-atomic.yaml new file mode 100644 index 00000000..7b17bdb3 --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-random-fail-in-atomic.yaml @@ -0,0 +1,8 @@ + Dummy.dummy_random_fail_in_atomic: + - + args: + exception_probability: 0.5 + runner: + type: "constant" + times: 100 + concurrency: 10 diff --git a/samples/tasks/scenarios/dummy/dummy-timed-atomic-actions.json b/samples/tasks/scenarios/dummy/dummy-timed-atomic-actions.json new file mode 100644 index 00000000..b4eaf4ea --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-timed-atomic-actions.json @@ -0,0 +1,26 @@ +{ + "Dummy.dummy_timed_atomic_actions": [ + { + "args": { + "number_of_actions": 1, + "sleep_factor": 1 + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 5 + }, + "sla": { + "max_avg_duration_per_atomic": { + "action_0": 1.0 + } + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/dummy/dummy-timed-atomic-actions.yaml b/samples/tasks/scenarios/dummy/dummy-timed-atomic-actions.yaml new file mode 100644 index 00000000..56247c73 --- /dev/null +++ b/samples/tasks/scenarios/dummy/dummy-timed-atomic-actions.yaml @@ -0,0 +1,17 @@ +--- + Dummy.dummy_timed_atomic_actions: + - + args: + number_of_actions: 1 + sleep_factor: 1 + runner: + type: "constant" + times: 5 + concurrency: 5 + sla: + max_avg_duration_per_atomic: + action_0: 1.0 + context: + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/glance/list-images.json b/samples/tasks/scenarios/glance/list-images.json new file mode 100644 index 00000000..934c1aa3 --- /dev/null +++ b/samples/tasks/scenarios/glance/list-images.json @@ -0,0 +1,23 @@ +{ + "GlanceImages.list_images": [ + { + "runner": { + "type": "constant", + "times": 10, + "concurrency": 1 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + }, + "images": { + "image_url": "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img", + "image_type": "qcow2", + "image_container": "bare", + "images_per_tenant": 4 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/glance/list-images.yaml b/samples/tasks/scenarios/glance/list-images.yaml new file mode 100644 index 00000000..5bc039d4 --- /dev/null +++ b/samples/tasks/scenarios/glance/list-images.yaml @@ -0,0 +1,16 @@ +--- + GlanceImages.list_images: + - + runner: + type: "constant" + times: 10 + concurrency: 1 + context: + users: + tenants: 2 + users_per_tenant: 2 + images: + image_url: "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img" + image_type: "qcow2" + image_container: "bare" + images_per_tenant: 4 diff --git a/samples/tasks/scenarios/heat/create-and-delete-stack-resource-group.json b/samples/tasks/scenarios/heat/create-and-delete-stack-resource-group.json new file mode 100644 index 00000000..d64b4753 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-and-delete-stack-resource-group.json @@ -0,0 +1,24 @@ +{ + "HeatStacks.create_and_delete_stack": [ + { + "args": { + "template_path": "samples/tasks/scenarios/heat/templates/resource-group-server-with-volume.yaml.template", + "parameters": { + "num_instances": 2 + }, + "files": ["samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template"] + }, + "runner": { + "type": "constant", + "times": 3, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 3 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/heat/create-and-delete-stack-resource-group.yaml b/samples/tasks/scenarios/heat/create-and-delete-stack-resource-group.yaml new file mode 100644 index 00000000..f7704215 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-and-delete-stack-resource-group.yaml @@ -0,0 +1,16 @@ +--- + HeatStacks.create_and_delete_stack: + - + args: + template_path: "samples/tasks/scenarios/heat/templates/resource-group-server-with-volume.yaml.template" + parameters: + num_instances: 2 + files: ["samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template"] + runner: + type: "constant" + times: 3 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 3 diff --git a/samples/tasks/scenarios/heat/create-and-delete-stack-with-delay.json b/samples/tasks/scenarios/heat/create-and-delete-stack-with-delay.json new file mode 100644 index 00000000..3870f775 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-and-delete-stack-with-delay.json @@ -0,0 +1,20 @@ +{ + "HeatStacks.create_and_delete_stack": [ + { + "args": { + "template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-constraint.yaml.template" + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/heat/create-and-delete-stack-with-delay.yaml b/samples/tasks/scenarios/heat/create-and-delete-stack-with-delay.yaml new file mode 100644 index 00000000..2053a158 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-and-delete-stack-with-delay.yaml @@ -0,0 +1,13 @@ +--- + HeatStacks.create_and_delete_stack: + - + args: + template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-constraint.yaml.template" + runner: + type: "constant" + times: 10 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 \ No newline at end of file diff --git a/samples/tasks/scenarios/heat/create-and-delete-stack-with-neutron.json b/samples/tasks/scenarios/heat/create-and-delete-stack-with-neutron.json new file mode 100644 index 00000000..20059134 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-and-delete-stack-with-neutron.json @@ -0,0 +1,20 @@ +{ + "HeatStacks.create_and_delete_stack": [ + { + "args": { + "template_path": "samples/tasks/scenarios/heat/templates/server-with-ports.yaml.template" + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 3 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/heat/create-and-delete-stack-with-neutron.yaml b/samples/tasks/scenarios/heat/create-and-delete-stack-with-neutron.yaml new file mode 100644 index 00000000..04a61b56 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-and-delete-stack-with-neutron.yaml @@ -0,0 +1,13 @@ +--- + HeatStacks.create_and_delete_stack: + - + args: + template_path: "samples/tasks/scenarios/heat/templates/server-with-ports.yaml.template" + runner: + type: "constant" + times: 10 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 3 diff --git a/samples/tasks/scenarios/heat/create-and-delete-stack-with-volume.json b/samples/tasks/scenarios/heat/create-and-delete-stack-with-volume.json new file mode 100644 index 00000000..0085dc90 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-and-delete-stack-with-volume.json @@ -0,0 +1,20 @@ +{ + "HeatStacks.create_and_delete_stack": [ + { + "args": { + "template_path": "samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template" + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 3 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/heat/create-and-delete-stack-with-volume.yaml b/samples/tasks/scenarios/heat/create-and-delete-stack-with-volume.yaml new file mode 100644 index 00000000..b2a88b24 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-and-delete-stack-with-volume.yaml @@ -0,0 +1,13 @@ +--- + HeatStacks.create_and_delete_stack: + - + args: + template_path: "samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template" + runner: + type: "constant" + times: 10 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 3 diff --git a/samples/tasks/scenarios/heat/create-check-delete-stack.json b/samples/tasks/scenarios/heat/create-check-delete-stack.json index 8a30e985..0726b84f 100644 --- a/samples/tasks/scenarios/heat/create-check-delete-stack.json +++ b/samples/tasks/scenarios/heat/create-check-delete-stack.json @@ -2,7 +2,7 @@ "HeatStacks.create_check_delete_stack": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template" + "template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template" }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/heat/create-check-delete-stack.yaml b/samples/tasks/scenarios/heat/create-check-delete-stack.yaml index 2137b86a..f66765c7 100644 --- a/samples/tasks/scenarios/heat/create-check-delete-stack.yaml +++ b/samples/tasks/scenarios/heat/create-check-delete-stack.yaml @@ -2,7 +2,7 @@ HeatStacks.create_check_delete_stack: - args: - template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template" runner: type: "constant" times: 10 diff --git a/samples/tasks/scenarios/heat/create-snapshot-restore-delete-stack.json b/samples/tasks/scenarios/heat/create-snapshot-restore-delete-stack.json index 7de47797..02157485 100644 --- a/samples/tasks/scenarios/heat/create-snapshot-restore-delete-stack.json +++ b/samples/tasks/scenarios/heat/create-snapshot-restore-delete-stack.json @@ -2,7 +2,7 @@ "HeatStacks.create_snapshot_restore_delete_stack": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template" + "template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template" }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/heat/create-snapshot-restore-delete-stack.yaml b/samples/tasks/scenarios/heat/create-snapshot-restore-delete-stack.yaml index f1f03722..26f3ab8c 100644 --- a/samples/tasks/scenarios/heat/create-snapshot-restore-delete-stack.yaml +++ b/samples/tasks/scenarios/heat/create-snapshot-restore-delete-stack.yaml @@ -2,7 +2,7 @@ HeatStacks.create_snapshot_restore_delete_stack: - args: - template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template" runner: type: "constant" times: 10 diff --git a/samples/tasks/scenarios/heat/create-stack-and-list-output-resource-group.json b/samples/tasks/scenarios/heat/create-stack-and-list-output-resource-group.json new file mode 100644 index 00000000..501eb2d2 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-stack-and-list-output-resource-group.json @@ -0,0 +1,39 @@ +{ + "HeatStacks.create_stack_and_list_output": [ + { + "args": { + "template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template" + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ], + + "HeatStacks.create_stack_and_list_output_via_API": [ + { + "args": { + "template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template" + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/heat/create-stack-and-list-output-resource-group.yaml b/samples/tasks/scenarios/heat/create-stack-and-list-output-resource-group.yaml new file mode 100644 index 00000000..0e64846f --- /dev/null +++ b/samples/tasks/scenarios/heat/create-stack-and-list-output-resource-group.yaml @@ -0,0 +1,26 @@ +--- + HeatStacks.create_stack_and_list_output: + - + args: + template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template" + runner: + type: "constant" + times: 5 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 + + HeatStacks.create_stack_and_list_output_via_API: + - + args: + template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template" + runner: + type: "constant" + times: 5 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 \ No newline at end of file diff --git a/samples/tasks/scenarios/heat/create-stack-and-scale.json b/samples/tasks/scenarios/heat/create-stack-and-scale.json index adacafca..c3fc5528 100644 --- a/samples/tasks/scenarios/heat/create-stack-and-scale.json +++ b/samples/tasks/scenarios/heat/create-stack-and-scale.json @@ -2,7 +2,7 @@ "HeatStacks.create_stack_and_scale": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/autoscaling_group.yaml.template", + "template_path": "samples/tasks/scenarios/heat/templates/autoscaling-group.yaml.template", "output_key": "scaling_url", "delta": 1 }, diff --git a/samples/tasks/scenarios/heat/create-stack-and-scale.yaml b/samples/tasks/scenarios/heat/create-stack-and-scale.yaml index 52910fb7..b4c0e4ad 100644 --- a/samples/tasks/scenarios/heat/create-stack-and-scale.yaml +++ b/samples/tasks/scenarios/heat/create-stack-and-scale.yaml @@ -2,7 +2,7 @@ HeatStacks.create_stack_and_scale: - args: - template_path: "samples/tasks/scenarios/heat/templates/autoscaling_group.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/autoscaling-group.yaml.template" output_key: "scaling_url" delta: 1 runner: diff --git a/samples/tasks/scenarios/heat/create-stack-and-show-output-resource-group.json b/samples/tasks/scenarios/heat/create-stack-and-show-output-resource-group.json new file mode 100644 index 00000000..3dcd7706 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-stack-and-show-output-resource-group.json @@ -0,0 +1,41 @@ +{ + "HeatStacks.create_stack_and_show_output": [ + { + "args": { + "template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template", + "output_key": "val1" + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ], + + "HeatStacks.create_stack_and_show_output_via_API": [ + { + "args": { + "template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template", + "output_key": "val1" + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 1 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/heat/create-stack-and-show-output-resource-group.yaml b/samples/tasks/scenarios/heat/create-stack-and-show-output-resource-group.yaml new file mode 100644 index 00000000..03916a16 --- /dev/null +++ b/samples/tasks/scenarios/heat/create-stack-and-show-output-resource-group.yaml @@ -0,0 +1,28 @@ +--- + HeatStacks.create_stack_and_show_output: + - + args: + template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template" + output_key: "val1" + runner: + type: "constant" + times: 5 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 + + HeatStacks.create_stack_and_show_output_via_API: + - + args: + template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template" + output_key: "val1" + runner: + type: "constant" + times: 5 + concurrency: 1 + context: + users: + tenants: 2 + users_per_tenant: 2 \ No newline at end of file diff --git a/samples/tasks/scenarios/heat/create-suspend-resume-delete-stack.json b/samples/tasks/scenarios/heat/create-suspend-resume-delete-stack.json index 6caa729a..667c9383 100644 --- a/samples/tasks/scenarios/heat/create-suspend-resume-delete-stack.json +++ b/samples/tasks/scenarios/heat/create-suspend-resume-delete-stack.json @@ -2,7 +2,7 @@ "HeatStacks.create_suspend_resume_delete_stack": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template" + "template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template" }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/heat/create-suspend-resume-delete-stack.yaml b/samples/tasks/scenarios/heat/create-suspend-resume-delete-stack.yaml index 08f95ccb..85c875e6 100644 --- a/samples/tasks/scenarios/heat/create-suspend-resume-delete-stack.yaml +++ b/samples/tasks/scenarios/heat/create-suspend-resume-delete-stack.yaml @@ -2,7 +2,7 @@ HeatStacks.create_suspend_resume_delete_stack: - args: - template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template" runner: type: "constant" times: 10 diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-add-res.json b/samples/tasks/scenarios/heat/create-update-delete-stack-add-res.json index 0ba63f0e..0c22a3c5 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-add-res.json +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-add-res.json @@ -2,8 +2,8 @@ "HeatStacks.create_update_delete_stack": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template", - "updated_template_path": "samples/tasks/scenarios/heat/templates/updated_random_strings_add.yaml.template" + "template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template", + "updated_template_path": "samples/tasks/scenarios/heat/templates/updated-random-strings-add.yaml.template" }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-add-res.yaml b/samples/tasks/scenarios/heat/create-update-delete-stack-add-res.yaml index 9782ea96..b2d10f50 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-add-res.yaml +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-add-res.yaml @@ -2,8 +2,8 @@ HeatStacks.create_update_delete_stack: - args: - template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template" - updated_template_path: "samples/tasks/scenarios/heat/templates/updated_random_strings_add.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template" + updated_template_path: "samples/tasks/scenarios/heat/templates/updated-random-strings-add.yaml.template" runner: type: "constant" times: 10 diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-del-res.json b/samples/tasks/scenarios/heat/create-update-delete-stack-del-res.json index f50fbf93..9748a8df 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-del-res.json +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-del-res.json @@ -2,8 +2,8 @@ "HeatStacks.create_update_delete_stack": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template", - "updated_template_path": "samples/tasks/scenarios/heat/templates/updated_random_strings_delete.yaml.template" + "template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template", + "updated_template_path": "samples/tasks/scenarios/heat/templates/updated-random-strings-delete.yaml.template" }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-del-res.yaml b/samples/tasks/scenarios/heat/create-update-delete-stack-del-res.yaml index 39a7bc52..738dcd4a 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-del-res.yaml +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-del-res.yaml @@ -2,8 +2,8 @@ HeatStacks.create_update_delete_stack: - args: - template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template" - updated_template_path: "samples/tasks/scenarios/heat/templates/updated_random_strings_delete.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template" + updated_template_path: "samples/tasks/scenarios/heat/templates/updated-random-strings-delete.yaml.template" runner: type: "constant" times: 10 diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-increase.json b/samples/tasks/scenarios/heat/create-update-delete-stack-increase.json index dbb17c60..030791ba 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-increase.json +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-increase.json @@ -2,8 +2,8 @@ "HeatStacks.create_update_delete_stack": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/resource_group.yaml.template", - "updated_template_path": "samples/tasks/scenarios/heat/templates/updated_resource_group_increase.yaml.template" + "template_path": "samples/tasks/scenarios/heat/templates/resource-group.yaml.template", + "updated_template_path": "samples/tasks/scenarios/heat/templates/updated-resource-group-increase.yaml.template" }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-increase.yaml b/samples/tasks/scenarios/heat/create-update-delete-stack-increase.yaml index efff3ba4..6f923574 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-increase.yaml +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-increase.yaml @@ -2,8 +2,8 @@ HeatStacks.create_update_delete_stack: - args: - template_path: "samples/tasks/scenarios/heat/templates/resource_group.yaml.template" - updated_template_path: "samples/tasks/scenarios/heat/templates/updated_resource_group_increase.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/resource-group.yaml.template" + updated_template_path: "samples/tasks/scenarios/heat/templates/updated-resource-group-increase.yaml.template" runner: type: "constant" times: 10 diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-inplace.json b/samples/tasks/scenarios/heat/create-update-delete-stack-inplace.json index 6c721a25..31b08f8b 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-inplace.json +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-inplace.json @@ -2,8 +2,8 @@ "HeatStacks.create_update_delete_stack": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/autoscaling_policy.yaml.template", - "updated_template_path": "samples/tasks/scenarios/heat/templates/updated_autoscaling_policy_inplace.yaml.template" + "template_path": "samples/tasks/scenarios/heat/templates/autoscaling-policy.yaml.template", + "updated_template_path": "samples/tasks/scenarios/heat/templates/updated-autoscaling-policy-inplace.yaml.template" }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-inplace.yaml b/samples/tasks/scenarios/heat/create-update-delete-stack-inplace.yaml index e67193a6..705946df 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-inplace.yaml +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-inplace.yaml @@ -2,8 +2,8 @@ HeatStacks.create_update_delete_stack: - args: - template_path: "samples/tasks/scenarios/heat/templates/autoscaling_policy.yaml.template" - updated_template_path: "samples/tasks/scenarios/heat/templates/updated_autoscaling_policy_inplace.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/autoscaling-policy.yaml.template" + updated_template_path: "samples/tasks/scenarios/heat/templates/updated-autoscaling-policy-inplace.yaml.template" runner: type: "constant" times: 10 diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-reduce.json b/samples/tasks/scenarios/heat/create-update-delete-stack-reduce.json index 07e51121..1930b614 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-reduce.json +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-reduce.json @@ -2,8 +2,8 @@ "HeatStacks.create_update_delete_stack": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/resource_group.yaml.template", - "updated_template_path": "samples/tasks/scenarios/heat/templates/updated_resource_group_reduce.yaml.template" + "template_path": "samples/tasks/scenarios/heat/templates/resource-group.yaml.template", + "updated_template_path": "samples/tasks/scenarios/heat/templates/updated-resource-group-reduce.yaml.template" }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-reduce.yaml b/samples/tasks/scenarios/heat/create-update-delete-stack-reduce.yaml index 3d274ed5..69c190e0 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-reduce.yaml +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-reduce.yaml @@ -2,8 +2,8 @@ HeatStacks.create_update_delete_stack: - args: - template_path: "samples/tasks/scenarios/heat/templates/resource_group.yaml.template" - updated_template_path: "samples/tasks/scenarios/heat/templates/updated_resource_group_reduce.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/resource-group.yaml.template" + updated_template_path: "samples/tasks/scenarios/heat/templates/updated-resource-group-reduce.yaml.template" runner: type: "constant" times: 10 diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-replace.json b/samples/tasks/scenarios/heat/create-update-delete-stack-replace.json index 6522b6ea..da82a781 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-replace.json +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-replace.json @@ -2,8 +2,8 @@ "HeatStacks.create_update_delete_stack": [ { "args": { - "template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template", - "updated_template_path": "samples/tasks/scenarios/heat/templates/updated_random_strings_replace.yaml.template" + "template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template", + "updated_template_path": "samples/tasks/scenarios/heat/templates/updated-random-strings-replace.yaml.template" }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/heat/create-update-delete-stack-replace.yaml b/samples/tasks/scenarios/heat/create-update-delete-stack-replace.yaml index 820ce6e8..10dff9b5 100644 --- a/samples/tasks/scenarios/heat/create-update-delete-stack-replace.yaml +++ b/samples/tasks/scenarios/heat/create-update-delete-stack-replace.yaml @@ -2,8 +2,8 @@ HeatStacks.create_update_delete_stack: - args: - template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template" - updated_template_path: "samples/tasks/scenarios/heat/templates/updated_random_strings_replace.yaml.template" + template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template" + updated_template_path: "samples/tasks/scenarios/heat/templates/updated-random-strings-replace.yaml.template" runner: type: "constant" times: 10 diff --git a/samples/tasks/scenarios/heat/templates/autoscaling-group.yaml.template b/samples/tasks/scenarios/heat/templates/autoscaling-group.yaml.template new file mode 100644 index 00000000..f6f9f124 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/autoscaling-group.yaml.template @@ -0,0 +1,46 @@ +heat_template_version: 2013-05-23 + +parameters: + flavor: + type: string + default: m1.tiny + constraints: + - custom_constraint: nova.flavor + image: + type: string + default: cirros-0.3.4-x86_64-uec + constraints: + - custom_constraint: glance.image + scaling_adjustment: + type: number + default: 1 + max_size: + type: number + default: 5 + constraints: + - range: {min: 1} + + +resources: + asg: + type: OS::Heat::AutoScalingGroup + properties: + resource: + type: OS::Nova::Server + properties: + image: { get_param: image } + flavor: { get_param: flavor } + min_size: 1 + desired_capacity: 3 + max_size: { get_param: max_size } + + scaling_policy: + type: OS::Heat::ScalingPolicy + properties: + adjustment_type: change_in_capacity + auto_scaling_group_id: {get_resource: asg} + scaling_adjustment: { get_param: scaling_adjustment } + +outputs: + scaling_url: + value: {get_attr: [scaling_policy, alarm_url]} diff --git a/samples/tasks/scenarios/heat/templates/autoscaling-policy.yaml.template b/samples/tasks/scenarios/heat/templates/autoscaling-policy.yaml.template new file mode 100644 index 00000000..a22487e3 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/autoscaling-policy.yaml.template @@ -0,0 +1,17 @@ +heat_template_version: 2013-05-23 + +resources: + test_group: + type: OS::Heat::AutoScalingGroup + properties: + desired_capacity: 0 + max_size: 0 + min_size: 0 + resource: + type: OS::Heat::RandomString + test_policy: + type: OS::Heat::ScalingPolicy + properties: + adjustment_type: change_in_capacity + auto_scaling_group_id: { get_resource: test_group } + scaling_adjustment: 1 \ No newline at end of file diff --git a/samples/tasks/scenarios/heat/templates/random-strings.yaml.template b/samples/tasks/scenarios/heat/templates/random-strings.yaml.template new file mode 100644 index 00000000..2dd676c1 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/random-strings.yaml.template @@ -0,0 +1,13 @@ +heat_template_version: 2014-10-16 + +description: Test template for rally create-update-delete scenario + +resources: + test_string_one: + type: OS::Heat::RandomString + properties: + length: 20 + test_string_two: + type: OS::Heat::RandomString + properties: + length: 20 \ No newline at end of file diff --git a/samples/tasks/scenarios/heat/templates/resource-group-server-with-volume.yaml.template b/samples/tasks/scenarios/heat/templates/resource-group-server-with-volume.yaml.template new file mode 100644 index 00000000..60905683 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/resource-group-server-with-volume.yaml.template @@ -0,0 +1,44 @@ +heat_template_version: 2014-10-16 + +description: > + Test template that creates a resource group with servers and volumes. + The template allows to create a lot of nested stacks with standard + configuration: nova instance, cinder volume attached to that instance + +parameters: + + num_instances: + type: number + description: number of instances that should be created in resource group + constraints: + - range: {min: 1} + instance_image: + type: string + default: cirros-0.3.4-x86_64-uec + instance_volume_size: + type: number + description: Size of volume to attach to instance + default: 1 + constraints: + - range: {min: 1, max: 1024} + instance_flavor: + type: string + description: Type of the instance to be created. + default: m1.tiny + instance_availability_zone: + type: string + description: The Availability Zone to launch the instance. + default: nova + +resources: + group_of_volumes: + type: OS::Heat::ResourceGroup + properties: + count: {get_param: num_instances} + resource_def: + type: templates/server-with-volume.yaml.template + properties: + image: {get_param: instance_image} + volume_size: {get_param: instance_volume_size} + flavor: {get_param: instance_flavor} + availability_zone: {get_param: instance_availability_zone} diff --git a/samples/tasks/scenarios/heat/templates/resource-group-with-constraint.yaml.template b/samples/tasks/scenarios/heat/templates/resource-group-with-constraint.yaml.template new file mode 100644 index 00000000..234e4237 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/resource-group-with-constraint.yaml.template @@ -0,0 +1,21 @@ +heat_template_version: 2013-05-23 + +description: Template for testing caching. + +parameters: + count: + type: number + default: 40 + delay: + type: number + default: 0.1 + +resources: + rg: + type: OS::Heat::ResourceGroup + properties: + count: {get_param: count} + resource_def: + type: OS::Heat::TestResource + properties: + constraint_prop_secs: {get_param: delay} diff --git a/samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template b/samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template new file mode 100644 index 00000000..f47d03cc --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template @@ -0,0 +1,37 @@ +heat_template_version: 2013-05-23 +parameters: + attr_wait_secs: + type: number + default: 0.5 + +resources: + rg: + type: OS::Heat::ResourceGroup + properties: + count: 10 + resource_def: + type: OS::Heat::TestResource + properties: + attr_wait_secs: {get_param: attr_wait_secs} + +outputs: + val1: + value: {get_attr: [rg, resource.0.output]} + val2: + value: {get_attr: [rg, resource.1.output]} + val3: + value: {get_attr: [rg, resource.2.output]} + val4: + value: {get_attr: [rg, resource.3.output]} + val5: + value: {get_attr: [rg, resource.4.output]} + val6: + value: {get_attr: [rg, resource.5.output]} + val7: + value: {get_attr: [rg, resource.6.output]} + val8: + value: {get_attr: [rg, resource.7.output]} + val9: + value: {get_attr: [rg, resource.8.output]} + val10: + value: {get_attr: [rg, resource.9.output]} \ No newline at end of file diff --git a/samples/tasks/scenarios/heat/templates/resource-group.yaml.template b/samples/tasks/scenarios/heat/templates/resource-group.yaml.template new file mode 100644 index 00000000..b3f505fa --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/resource-group.yaml.template @@ -0,0 +1,13 @@ +heat_template_version: 2014-10-16 + +description: Test template for rally create-update-delete scenario + +resources: + test_group: + type: OS::Heat::ResourceGroup + properties: + count: 2 + resource_def: + type: OS::Heat::RandomString + properties: + length: 20 \ No newline at end of file diff --git a/samples/tasks/scenarios/heat/templates/server-with-ports.yaml.template b/samples/tasks/scenarios/heat/templates/server-with-ports.yaml.template new file mode 100644 index 00000000..909f45d2 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/server-with-ports.yaml.template @@ -0,0 +1,64 @@ +heat_template_version: 2013-05-23 + +parameters: + # set all correct defaults for parameters before launch test + public_net: + type: string + default: public + image: + type: string + default: cirros-0.3.4-x86_64-uec + flavor: + type: string + default: m1.tiny + cidr: + type: string + default: 11.11.11.0/24 + +resources: + server: + type: OS::Nova::Server + properties: + image: {get_param: image} + flavor: {get_param: flavor} + networks: + - port: { get_resource: server_port } + + router: + type: OS::Neutron::Router + properties: + external_gateway_info: + network: {get_param: public_net} + + router_interface: + type: OS::Neutron::RouterInterface + properties: + router_id: { get_resource: router } + subnet_id: { get_resource: private_subnet } + + private_net: + type: OS::Neutron::Net + + private_subnet: + type: OS::Neutron::Subnet + properties: + network: { get_resource: private_net } + cidr: {get_param: cidr} + + port_security_group: + type: OS::Neutron::SecurityGroup + properties: + name: default_port_security_group + description: > + Default security group assigned to port. The neutron default group is not + used because neutron creates several groups with the same name=default and + nova cannot chooses which one should it use. + + server_port: + type: OS::Neutron::Port + properties: + network: {get_resource: private_net} + fixed_ips: + - subnet: { get_resource: private_subnet } + security_groups: + - { get_resource: port_security_group } diff --git a/samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template b/samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template new file mode 100644 index 00000000..23c88271 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template @@ -0,0 +1,39 @@ +heat_template_version: 2013-05-23 + +parameters: + # set all correct defaults for parameters before launch test + image: + type: string + default: cirros-0.3.4-x86_64-uec + flavor: + type: string + default: m1.tiny + availability_zone: + type: string + description: The Availability Zone to launch the instance. + default: nova + volume_size: + type: number + description: Size of the volume to be created. + default: 1 + constraints: + - range: { min: 1, max: 1024 } + description: must be between 1 and 1024 Gb. + +resources: + server: + type: OS::Nova::Server + properties: + image: {get_param: image} + flavor: {get_param: flavor} + cinder_volume: + type: OS::Cinder::Volume + properties: + size: { get_param: volume_size } + availability_zone: { get_param: availability_zone } + volume_attachment: + type: OS::Cinder::VolumeAttachment + properties: + volume_id: { get_resource: cinder_volume } + instance_uuid: { get_resource: server} + mountpoint: /dev/vdc diff --git a/samples/tasks/scenarios/heat/templates/updated-autoscaling-policy-inplace.yaml.template b/samples/tasks/scenarios/heat/templates/updated-autoscaling-policy-inplace.yaml.template new file mode 100644 index 00000000..cf34879c --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/updated-autoscaling-policy-inplace.yaml.template @@ -0,0 +1,23 @@ +heat_template_version: 2013-05-23 + +description: > + Test template for create-update-delete-stack scenario in rally. + The template updates resource parameters without resource re-creation(replacement) + in the stack defined by autoscaling_policy.yaml.template. It allows to measure + performance of "pure" resource update operation only. + +resources: + test_group: + type: OS::Heat::AutoScalingGroup + properties: + desired_capacity: 0 + max_size: 0 + min_size: 0 + resource: + type: OS::Heat::RandomString + test_policy: + type: OS::Heat::ScalingPolicy + properties: + adjustment_type: change_in_capacity + auto_scaling_group_id: { get_resource: test_group } + scaling_adjustment: -1 \ No newline at end of file diff --git a/samples/tasks/scenarios/heat/templates/updated-random-strings-add.yaml.template b/samples/tasks/scenarios/heat/templates/updated-random-strings-add.yaml.template new file mode 100644 index 00000000..03f9a885 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/updated-random-strings-add.yaml.template @@ -0,0 +1,19 @@ +heat_template_version: 2014-10-16 + +description: > + Test template for create-update-delete-stack scenario in rally. + The template updates the stack defined by random-strings.yaml.template with additional resource. + +resources: + test_string_one: + type: OS::Heat::RandomString + properties: + length: 20 + test_string_two: + type: OS::Heat::RandomString + properties: + length: 20 + test_string_three: + type: OS::Heat::RandomString + properties: + length: 20 diff --git a/samples/tasks/scenarios/heat/templates/updated-random-strings-delete.yaml.template b/samples/tasks/scenarios/heat/templates/updated-random-strings-delete.yaml.template new file mode 100644 index 00000000..414d90d5 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/updated-random-strings-delete.yaml.template @@ -0,0 +1,11 @@ +heat_template_version: 2014-10-16 + +description: > + Test template for create-update-delete-stack scenario in rally. + The template deletes one resource from the stack defined by random-strings.yaml.template. + +resources: + test_string_one: + type: OS::Heat::RandomString + properties: + length: 20 diff --git a/samples/tasks/scenarios/heat/templates/updated-random-strings-replace.yaml.template b/samples/tasks/scenarios/heat/templates/updated-random-strings-replace.yaml.template new file mode 100644 index 00000000..780fcc16 --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/updated-random-strings-replace.yaml.template @@ -0,0 +1,19 @@ +heat_template_version: 2014-10-16 + +description: > + Test template for create-update-delete-stack scenario in rally. + The template deletes one resource from the stack defined by + random-strings.yaml.template and re-creates it with the updated parameters + (so-called update-replace). That happens because some parameters cannot be + changed without resource re-creation. The template allows to measure performance + of update-replace operation. + +resources: + test_string_one: + type: OS::Heat::RandomString + properties: + length: 20 + test_string_two: + type: OS::Heat::RandomString + properties: + length: 40 diff --git a/samples/tasks/scenarios/heat/templates/updated-resource-group-increase.yaml.template b/samples/tasks/scenarios/heat/templates/updated-resource-group-increase.yaml.template new file mode 100644 index 00000000..94bc271f --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/updated-resource-group-increase.yaml.template @@ -0,0 +1,16 @@ +heat_template_version: 2014-10-16 + +description: > + Test template for create-update-delete-stack scenario in rally. + The template updates one resource from the stack defined by resource-group.yaml.template + and adds children resources to that resource. + +resources: + test_group: + type: OS::Heat::ResourceGroup + properties: + count: 3 + resource_def: + type: OS::Heat::RandomString + properties: + length: 20 diff --git a/samples/tasks/scenarios/heat/templates/updated-resource-group-reduce.yaml.template b/samples/tasks/scenarios/heat/templates/updated-resource-group-reduce.yaml.template new file mode 100644 index 00000000..a076224a --- /dev/null +++ b/samples/tasks/scenarios/heat/templates/updated-resource-group-reduce.yaml.template @@ -0,0 +1,16 @@ +heat_template_version: 2014-10-16 + +description: > + Test template for create-update-delete-stack scenario in rally. + The template updates one resource from the stack defined by resource-group.yaml.template + and deletes children resources from that resource. + +resources: + test_group: + type: OS::Heat::ResourceGroup + properties: + count: 1 + resource_def: + type: OS::Heat::RandomString + properties: + length: 20 diff --git a/samples/tasks/scenarios/keystone/add-and-remove-user-role.json b/samples/tasks/scenarios/keystone/add-and-remove-user-role.json new file mode 100644 index 00000000..1e0c3e21 --- /dev/null +++ b/samples/tasks/scenarios/keystone/add-and-remove-user-role.json @@ -0,0 +1,17 @@ +{ + "KeystoneBasic.add_and_remove_user_role": [ + { + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/keystone/add-and-remove-user-role.yaml b/samples/tasks/scenarios/keystone/add-and-remove-user-role.yaml new file mode 100644 index 00000000..cef6a1d7 --- /dev/null +++ b/samples/tasks/scenarios/keystone/add-and-remove-user-role.yaml @@ -0,0 +1,11 @@ +--- + KeystoneBasic.add_and_remove_user_role: + - + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 2 diff --git a/samples/tasks/scenarios/keystone/create-add-and-list-user-roles.json b/samples/tasks/scenarios/keystone/create-add-and-list-user-roles.json new file mode 100644 index 00000000..065bff98 --- /dev/null +++ b/samples/tasks/scenarios/keystone/create-add-and-list-user-roles.json @@ -0,0 +1,17 @@ +{ + "KeystoneBasic.create_add_and_list_user_roles": [ + { + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/keystone/create-add-and-list-user-roles.yaml b/samples/tasks/scenarios/keystone/create-add-and-list-user-roles.yaml new file mode 100644 index 00000000..e5e87325 --- /dev/null +++ b/samples/tasks/scenarios/keystone/create-add-and-list-user-roles.yaml @@ -0,0 +1,11 @@ +--- + KeystoneBasic.create_add_and_list_user_roles: + - + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 2 diff --git a/samples/tasks/scenarios/keystone/create-user-update-password.json b/samples/tasks/scenarios/keystone/create-user-update-password.json new file mode 100644 index 00000000..0ae323b1 --- /dev/null +++ b/samples/tasks/scenarios/keystone/create-user-update-password.json @@ -0,0 +1,12 @@ +{ + "KeystoneBasic.create_user_update_password": [ + { + "args": {}, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + } + } + ] +} diff --git a/samples/tasks/scenarios/keystone/create-user-update-password.yaml b/samples/tasks/scenarios/keystone/create-user-update-password.yaml new file mode 100644 index 00000000..5c740979 --- /dev/null +++ b/samples/tasks/scenarios/keystone/create-user-update-password.yaml @@ -0,0 +1,8 @@ +--- + KeystoneBasic.create_user_update_password: + - + args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 diff --git a/samples/tasks/scenarios/murano/create-and-delete-environment.json b/samples/tasks/scenarios/murano/create-and-delete-environment.json new file mode 100644 index 00000000..d9fa7194 --- /dev/null +++ b/samples/tasks/scenarios/murano/create-and-delete-environment.json @@ -0,0 +1,17 @@ +{ + "MuranoEnvironments.create_and_delete_environment": [ + { + "runner": { + "type": "constant", + "times": 10, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/murano/create-and-delete-environment.yaml b/samples/tasks/scenarios/murano/create-and-delete-environment.yaml new file mode 100644 index 00000000..92e70138 --- /dev/null +++ b/samples/tasks/scenarios/murano/create-and-delete-environment.yaml @@ -0,0 +1,11 @@ +--- + MuranoEnvironments.create_and_delete_environment: + - + runner: + type: "constant" + times: 10 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 diff --git a/samples/tasks/scenarios/murano/create-and-deploy-environment.json b/samples/tasks/scenarios/murano/create-and-deploy-environment.json new file mode 100644 index 00000000..52dc1335 --- /dev/null +++ b/samples/tasks/scenarios/murano/create-and-deploy-environment.json @@ -0,0 +1,44 @@ +{ + "MuranoEnvironments.create_and_deploy_environment": [ + { + "args": { + "packages_per_env": 2 + }, + "runner": { + "type": "constant", + "times": 2, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + }, + "murano_packages": { + "app_package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter.zip" + }, + "roles": ["admin"] + } + }, + { + "args": { + "packages_per_env": 2 + }, + "runner": { + "type": "constant", + "times": 2, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + }, + "murano_packages": { + "app_package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/" + }, + "roles": ["admin"] + } + } + ] +} diff --git a/samples/tasks/scenarios/murano/create-and-deploy-environment.yaml b/samples/tasks/scenarios/murano/create-and-deploy-environment.yaml new file mode 100644 index 00000000..ca1dc564 --- /dev/null +++ b/samples/tasks/scenarios/murano/create-and-deploy-environment.yaml @@ -0,0 +1,32 @@ +--- + MuranoEnvironments.create_and_deploy_environment: + - + args: + packages_per_env: 2 + runner: + type: "constant" + times: 2 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 + murano_packages: + app_package: "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter.zip" + roles: + - "admin" + - + args: + packages_per_env: 2 + runner: + type: "constant" + times: 2 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 + murano_packages: + app_package: "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/" + roles: + - "admin" diff --git a/samples/tasks/scenarios/murano/import-and-delete-package.json b/samples/tasks/scenarios/murano/import-and-delete-package.json new file mode 100644 index 00000000..69731a17 --- /dev/null +++ b/samples/tasks/scenarios/murano/import-and-delete-package.json @@ -0,0 +1,20 @@ +{ + "MuranoPackages.import_and_delete_package": [ + { + "args": { + "package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/" + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/murano/import-and-delete-package.yaml b/samples/tasks/scenarios/murano/import-and-delete-package.yaml new file mode 100644 index 00000000..926f3a46 --- /dev/null +++ b/samples/tasks/scenarios/murano/import-and-delete-package.yaml @@ -0,0 +1,13 @@ +--- + MuranoPackages.import_and_delete_package: + - + args: + package: "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/" + runner: + type: "constant" + times: 5 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/murano/import-and-filter-applications.json b/samples/tasks/scenarios/murano/import-and-filter-applications.json new file mode 100644 index 00000000..7be44741 --- /dev/null +++ b/samples/tasks/scenarios/murano/import-and-filter-applications.json @@ -0,0 +1,21 @@ +{ + "MuranoPackages.import_and_filter_applications": [ + { + "args": { + "package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/", + "filter_query": {"category" : "Web"} + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/murano/import-and-filter-applications.yaml b/samples/tasks/scenarios/murano/import-and-filter-applications.yaml new file mode 100644 index 00000000..07771bc8 --- /dev/null +++ b/samples/tasks/scenarios/murano/import-and-filter-applications.yaml @@ -0,0 +1,14 @@ +--- + MuranoPackages.import_and_filter_applications: + - + args: + package: "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/" + filter_query: {"category" : "Web"} + runner: + type: "constant" + times: 5 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/murano/import-and-list-packages.json b/samples/tasks/scenarios/murano/import-and-list-packages.json new file mode 100644 index 00000000..1def045a --- /dev/null +++ b/samples/tasks/scenarios/murano/import-and-list-packages.json @@ -0,0 +1,20 @@ +{ + "MuranoPackages.import_and_list_packages": [ + { + "args": { + "package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/" + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/murano/import-and-list-packages.yaml b/samples/tasks/scenarios/murano/import-and-list-packages.yaml new file mode 100644 index 00000000..1b16b718 --- /dev/null +++ b/samples/tasks/scenarios/murano/import-and-list-packages.yaml @@ -0,0 +1,13 @@ +--- + MuranoPackages.import_and_list_packages: + - + args: + package: "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/" + runner: + type: "constant" + times: 5 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/murano/package-lifecycle.json b/samples/tasks/scenarios/murano/package-lifecycle.json new file mode 100644 index 00000000..f58c4d06 --- /dev/null +++ b/samples/tasks/scenarios/murano/package-lifecycle.json @@ -0,0 +1,22 @@ +{ + "MuranoPackages.package_lifecycle": [ + { + "args": { + "package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/", + "body": {"categories": ["Web"]}, + "operation": "add" + }, + "runner": { + "type": "constant", + "times": 5, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 1 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/murano/package-lifecycle.yaml b/samples/tasks/scenarios/murano/package-lifecycle.yaml new file mode 100644 index 00000000..72f55a8b --- /dev/null +++ b/samples/tasks/scenarios/murano/package-lifecycle.yaml @@ -0,0 +1,15 @@ +--- + MuranoPackages.package_lifecycle: + - + args: + package: "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/" + body: {"categories": ["Web"]} + operation: "add" + runner: + type: "constant" + times: 5 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/neutron/create-and-delete-floating-ips.json b/samples/tasks/scenarios/neutron/create-and-delete-floating-ips.json new file mode 100644 index 00000000..42ab99c5 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-floating-ips.json @@ -0,0 +1,26 @@ +{ + "NeutronNetworks.create_and_delete_floating_ips": [ + { + "args": { + "floating_network": "public", + "floating_ip_args": {} + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "floatingip": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-delete-floating-ips.yaml b/samples/tasks/scenarios/neutron/create-and-delete-floating-ips.yaml new file mode 100644 index 00000000..e5f2c6e7 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-floating-ips.yaml @@ -0,0 +1,17 @@ +--- + NeutronNetworks.create_and_delete_floating_ips: + - + args: + floating_network: "public" + floating_ip_args: {} + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + users: + tenants: 2 + users_per_tenant: 3 + quotas: + neutron: + floatingip: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-delete-healthmonitors.json b/samples/tasks/scenarios/neutron/create-and-delete-healthmonitors.json new file mode 100644 index 00000000..8b8e7d8d --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-healthmonitors.json @@ -0,0 +1,25 @@ +{ + "NeutronLoadbalancerV1.create_and_delete_healthmonitors": [ + { + "args": { + "healthmonitor_create_args": {} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 5, + "users_per_tenant": 2 + }, + "quotas": { + "neutron": { + "health_monitor": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-delete-healthmonitors.yaml b/samples/tasks/scenarios/neutron/create-and-delete-healthmonitors.yaml new file mode 100644 index 00000000..2b722c21 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-healthmonitors.yaml @@ -0,0 +1,16 @@ +--- + NeutronLoadbalancerV1.create_and_delete_healthmonitors: + - + args: + healthmonitor_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 5 + users_per_tenant: 2 + quotas: + neutron: + health_monitor: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-delete-networks.json b/samples/tasks/scenarios/neutron/create-and-delete-networks.json new file mode 100644 index 00000000..78488a0f --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-networks.json @@ -0,0 +1,25 @@ +{ + "NeutronNetworks.create_and_delete_networks": [ + { + "args": { + "network_create_args": {} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-delete-networks.yaml b/samples/tasks/scenarios/neutron/create-and-delete-networks.yaml new file mode 100644 index 00000000..a4fb9d70 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-networks.yaml @@ -0,0 +1,16 @@ +--- + NeutronNetworks.create_and_delete_networks: + - + args: + network_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + network: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-delete-pools.json b/samples/tasks/scenarios/neutron/create-and-delete-pools.json new file mode 100644 index 00000000..eaf57e4b --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-pools.json @@ -0,0 +1,28 @@ +{ + "NeutronLoadbalancerV1.create_and_delete_pools": [ + { + "args": { + "pool_create_args":{} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "network":{}, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1, + "pool": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-delete-pools.yaml b/samples/tasks/scenarios/neutron/create-and-delete-pools.yaml new file mode 100644 index 00000000..c9cb5a32 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-pools.yaml @@ -0,0 +1,19 @@ +--- + NeutronLoadbalancerV1.create_and_delete_pools: + - + args: + pool_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 3 + network: {} + quotas: + neutron: + network: -1 + subnet: -1 + pool: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-delete-ports.json b/samples/tasks/scenarios/neutron/create-and-delete-ports.json new file mode 100644 index 00000000..406f393c --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-ports.json @@ -0,0 +1,29 @@ +{ + "NeutronNetworks.create_and_delete_ports": [ + { + "args": { + "network_create_args": {}, + "port_create_args": {}, + "ports_per_network": 10 + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "network": {}, + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1, + "port": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-delete-ports.yaml b/samples/tasks/scenarios/neutron/create-and-delete-ports.yaml new file mode 100644 index 00000000..c09bb85a --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-ports.yaml @@ -0,0 +1,20 @@ +--- + NeutronNetworks.create_and_delete_ports: + - + args: + network_create_args: {} + port_create_args: {} + ports_per_network: 10 + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + network: {} + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + network: -1 + port: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-delete-routers.json b/samples/tasks/scenarios/neutron/create-and-delete-routers.json new file mode 100644 index 00000000..951b7c80 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-routers.json @@ -0,0 +1,32 @@ +{ + "NeutronNetworks.create_and_delete_routers": [ + { + "args": { + "network_create_args": {}, + "subnet_create_args": {}, + "subnet_cidr_start": "1.1.0.0/30", + "subnets_per_network": 2, + "router_create_args": {} + }, + "runner": { + "type": "constant", + "times": 30, + "concurrency": 10 + }, + "context": { + "network": {}, + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1, + "router": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-delete-routers.yaml b/samples/tasks/scenarios/neutron/create-and-delete-routers.yaml new file mode 100644 index 00000000..7d5f7f65 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-routers.yaml @@ -0,0 +1,23 @@ +--- + NeutronNetworks.create_and_delete_routers: + - + args: + network_create_args: {} + subnet_create_args: {} + subnet_cidr_start: "1.1.0.0/30" + subnets_per_network: 2 + router_create_args: {} + runner: + type: "constant" + times: 30 + concurrency: 10 + context: + network: {} + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + network: -1 + subnet: -1 + router: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-delete-security-groups.json b/samples/tasks/scenarios/neutron/create-and-delete-security-groups.json new file mode 100644 index 00000000..1e1f667d --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-security-groups.json @@ -0,0 +1,25 @@ +{ + "NeutronSecurityGroup.create_and_delete_security_groups": [ + { + "args": { + "security_group_create_args": {} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "security_group": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-delete-security-groups.yaml b/samples/tasks/scenarios/neutron/create-and-delete-security-groups.yaml new file mode 100644 index 00000000..f2905705 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-security-groups.yaml @@ -0,0 +1,16 @@ +--- + NeutronSecurityGroup.create_and_delete_security_groups: + - + args: + security_group_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + security_group: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-delete-subnets.json b/samples/tasks/scenarios/neutron/create-and-delete-subnets.json new file mode 100644 index 00000000..25f424bf --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-subnets.json @@ -0,0 +1,30 @@ +{ + "NeutronNetworks.create_and_delete_subnets": [ + { + "args": { + "network_create_args": {}, + "subnet_create_args": {}, + "subnet_cidr_start": "1.1.0.0/30", + "subnets_per_network": 2 + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "network": {}, + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-delete-subnets.yaml b/samples/tasks/scenarios/neutron/create-and-delete-subnets.yaml new file mode 100644 index 00000000..e97f3902 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-subnets.yaml @@ -0,0 +1,21 @@ +--- + NeutronNetworks.create_and_delete_subnets: + - + args: + network_create_args: {} + subnet_create_args: {} + subnet_cidr_start: "1.1.0.0/30" + subnets_per_network: 2 + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + network: {} + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + network: -1 + subnet: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-delete-vips.json b/samples/tasks/scenarios/neutron/create-and-delete-vips.json new file mode 100644 index 00000000..bcbd9444 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-vips.json @@ -0,0 +1,32 @@ +{ + "NeutronLoadbalancerV1.create_and_delete_vips": [ + { + "args": { + "vip_create_args":{} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 5, + "users_per_tenant": 1 + }, + "network": {}, + "lbaas": { + "pool": {} + }, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1, + "pool": -1, + "vip": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-delete-vips.yaml b/samples/tasks/scenarios/neutron/create-and-delete-vips.yaml new file mode 100644 index 00000000..5ca7fdb0 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-delete-vips.yaml @@ -0,0 +1,22 @@ +--- + NeutronLoadbalancerV1.create_and_delete_vips: + - + args: + vip_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 5 + users_per_tenant: 1 + network: {} + lbaas: + pool: {} + quotas: + neutron: + network: -1 + subnet: -1 + pool: -1 + vip: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-list-floating-ips.json b/samples/tasks/scenarios/neutron/create-and-list-floating-ips.json new file mode 100644 index 00000000..63b3a618 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-floating-ips.json @@ -0,0 +1,26 @@ +{ + "NeutronNetworks.create_and_list_floating_ips": [ + { + "args": { + "floating_network": "public", + "floating_ip_args": {} + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "floatingip": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-list-floating-ips.yaml b/samples/tasks/scenarios/neutron/create-and-list-floating-ips.yaml new file mode 100644 index 00000000..f54083a3 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-floating-ips.yaml @@ -0,0 +1,17 @@ +--- + NeutronNetworks.create_and_list_floating_ips: + - + args: + floating_network: "public" + floating_ip_args: {} + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + users: + tenants: 2 + users_per_tenant: 3 + quotas: + neutron: + floatingip: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-list-healthmonitors.json b/samples/tasks/scenarios/neutron/create-and-list-healthmonitors.json new file mode 100644 index 00000000..714d49cd --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-healthmonitors.json @@ -0,0 +1,25 @@ +{ + "NeutronLoadbalancerV1.create_and_list_healthmonitors": [ + { + "args": { + "healthmonitor_create_args": {} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 5, + "users_per_tenant": 2 + }, + "quotas": { + "neutron": { + "health_monitor": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-list-healthmonitors.yaml b/samples/tasks/scenarios/neutron/create-and-list-healthmonitors.yaml new file mode 100644 index 00000000..b54c43c8 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-healthmonitors.yaml @@ -0,0 +1,16 @@ +--- + NeutronLoadbalancerV1.create_and_list_healthmonitors: + - + args: + healthmonitor_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 5 + users_per_tenant: 2 + quotas: + neutron: + health_monitor: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-list-networks.json b/samples/tasks/scenarios/neutron/create-and-list-networks.json new file mode 100644 index 00000000..51dc68bb --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-networks.json @@ -0,0 +1,25 @@ +{ + "NeutronNetworks.create_and_list_networks": [ + { + "args": { + "network_create_args": {} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-list-networks.yaml b/samples/tasks/scenarios/neutron/create-and-list-networks.yaml new file mode 100644 index 00000000..e46d235d --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-networks.yaml @@ -0,0 +1,16 @@ +--- + NeutronNetworks.create_and_list_networks: + - + args: + network_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + network: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-list-pools.json b/samples/tasks/scenarios/neutron/create-and-list-pools.json new file mode 100644 index 00000000..6d5e0fc0 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-pools.json @@ -0,0 +1,28 @@ +{ + "NeutronLoadbalancerV1.create_and_list_pools": [ + { + "args": { + "pool_create_args":{} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "network":{}, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1, + "pool": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-list-pools.yaml b/samples/tasks/scenarios/neutron/create-and-list-pools.yaml new file mode 100644 index 00000000..49c25152 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-pools.yaml @@ -0,0 +1,19 @@ +--- + NeutronLoadbalancerV1.create_and_list_pools: + - + args: + pool_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 3 + network: {} + quotas: + neutron: + network: -1 + subnet: -1 + pool: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-list-ports.json b/samples/tasks/scenarios/neutron/create-and-list-ports.json new file mode 100644 index 00000000..c387f623 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-ports.json @@ -0,0 +1,29 @@ +{ + "NeutronNetworks.create_and_list_ports": [ + { + "args": { + "network_create_args": {}, + "port_create_args": {}, + "ports_per_network": 10 + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "network": {}, + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1, + "port": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-list-ports.yaml b/samples/tasks/scenarios/neutron/create-and-list-ports.yaml new file mode 100644 index 00000000..b10c674e --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-ports.yaml @@ -0,0 +1,20 @@ +--- + NeutronNetworks.create_and_list_ports: + - + args: + network_create_args: {} + port_create_args: {} + ports_per_network: 10 + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + network: {} + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + network: -1 + port: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-list-routers.json b/samples/tasks/scenarios/neutron/create-and-list-routers.json new file mode 100644 index 00000000..8f16e9be --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-routers.json @@ -0,0 +1,32 @@ +{ + "NeutronNetworks.create_and_list_routers": [ + { + "args": { + "network_create_args": {}, + "subnet_create_args": {}, + "subnet_cidr_start": "1.1.0.0/30", + "subnets_per_network": 2, + "router_create_args": {} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "network": {}, + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1, + "router": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-list-routers.yaml b/samples/tasks/scenarios/neutron/create-and-list-routers.yaml new file mode 100644 index 00000000..22cd13b5 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-routers.yaml @@ -0,0 +1,23 @@ +--- + NeutronNetworks.create_and_list_routers: + - + args: + network_create_args: {} + subnet_create_args: {} + subnet_cidr_start: "1.1.0.0/30" + subnets_per_network: 2 + router_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + network: {} + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + network: -1 + subnet: -1 + router: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-list-security-groups.json b/samples/tasks/scenarios/neutron/create-and-list-security-groups.json new file mode 100644 index 00000000..7a0b5c76 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-security-groups.json @@ -0,0 +1,25 @@ +{ + "NeutronSecurityGroup.create_and_list_security_groups": [ + { + "args": { + "security_group_create_args": {} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "security_group": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-list-security-groups.yaml b/samples/tasks/scenarios/neutron/create-and-list-security-groups.yaml new file mode 100644 index 00000000..9f72cad4 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-security-groups.yaml @@ -0,0 +1,16 @@ +--- + NeutronSecurityGroup.create_and_list_security_groups: + - + args: + security_group_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + security_group: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-list-subnets.json b/samples/tasks/scenarios/neutron/create-and-list-subnets.json new file mode 100644 index 00000000..46956b8b --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-subnets.json @@ -0,0 +1,30 @@ +{ + "NeutronNetworks.create_and_list_subnets": [ + { + "args": { + "network_create_args": {}, + "subnet_create_args": {}, + "subnet_cidr_start": "1.1.0.0/30", + "subnets_per_network": 2 + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "network": {}, + "users": { + "tenants": 2, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-list-subnets.yaml b/samples/tasks/scenarios/neutron/create-and-list-subnets.yaml new file mode 100644 index 00000000..0450e703 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-subnets.yaml @@ -0,0 +1,21 @@ +--- + NeutronNetworks.create_and_list_subnets: + - + args: + network_create_args: {} + subnet_create_args: {} + subnet_cidr_start: "1.1.0.0/30" + subnets_per_network: 2 + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + network: {} + users: + tenants: 2 + users_per_tenant: 3 + quotas: + neutron: + network: -1 + subnet: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-list-vips.json b/samples/tasks/scenarios/neutron/create-and-list-vips.json new file mode 100644 index 00000000..1751ad6d --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-vips.json @@ -0,0 +1,29 @@ +{ + "NeutronLoadbalancerV1.create_and_list_vips": [ + { + "args": { + "vip_create_args":{} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 5, + "users_per_tenant": 2 + }, + "network":{}, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1, + "pool": -1, + "vip": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-list-vips.yaml b/samples/tasks/scenarios/neutron/create-and-list-vips.yaml new file mode 100644 index 00000000..a0ea4bcf --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-list-vips.yaml @@ -0,0 +1,20 @@ +--- + NeutronLoadbalancerV1.create_and_list_vips: + - + args: + vip_create_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 5 + users_per_tenant: 2 + network: {} + quotas: + neutron: + network: -1 + subnet: -1 + pool: -1 + vip: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-update-healthmonitors.json b/samples/tasks/scenarios/neutron/create-and-update-healthmonitors.json new file mode 100644 index 00000000..93633211 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-healthmonitors.json @@ -0,0 +1,26 @@ +{ + "NeutronLoadbalancerV1.create_and_update_healthmonitors": [ + { + "args": { + "healthmonitor_create_args": {}, + "healthmonitor_update_args": {} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 5, + "users_per_tenant": 2 + }, + "quotas": { + "neutron": { + "health_monitor": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-update-healthmonitors.yaml b/samples/tasks/scenarios/neutron/create-and-update-healthmonitors.yaml new file mode 100644 index 00000000..cf8a6bfb --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-healthmonitors.yaml @@ -0,0 +1,17 @@ +--- + NeutronLoadbalancerV1.create_and_update_healthmonitors: + - + args: + healthmonitor_create_args: {} + healthmonitor_update_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 5 + users_per_tenant: 2 + quotas: + neutron: + health_monitor: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-update-networks.json b/samples/tasks/scenarios/neutron/create-and-update-networks.json new file mode 100644 index 00000000..f3ab67d9 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-networks.json @@ -0,0 +1,29 @@ +{ + "NeutronNetworks.create_and_update_networks": [ + { + "args": { + "network_update_args": { + "admin_state_up": false, + "name": "_updated" + }, + "network_create_args": {} + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-update-networks.yaml b/samples/tasks/scenarios/neutron/create-and-update-networks.yaml new file mode 100644 index 00000000..5a94b04e --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-networks.yaml @@ -0,0 +1,19 @@ +--- + NeutronNetworks.create_and_update_networks: + - + args: + network_create_args: {} + network_update_args: + admin_state_up: False + name: "_updated" + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + users: + tenants: 2 + users_per_tenant: 3 + quotas: + neutron: + network: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-update-pools.json b/samples/tasks/scenarios/neutron/create-and-update-pools.json new file mode 100644 index 00000000..0ccaa56b --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-pools.json @@ -0,0 +1,29 @@ +{ + "NeutronLoadbalancerV1.create_and_update_pools": [ + { + "args": { + "pool_create_args":{}, + "pool_update_args":{} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "network":{}, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1, + "pool": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-update-pools.yaml b/samples/tasks/scenarios/neutron/create-and-update-pools.yaml new file mode 100644 index 00000000..8ef300b5 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-pools.yaml @@ -0,0 +1,20 @@ +--- + NeutronLoadbalancerV1.create_and_update_pools: + - + args: + pool_create_args: {} + pool_update_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 3 + network: {} + quotas: + neutron: + network: -1 + subnet: -1 + pool: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-update-ports.json b/samples/tasks/scenarios/neutron/create-and-update-ports.json new file mode 100644 index 00000000..4c7dbdb6 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-ports.json @@ -0,0 +1,35 @@ +{ + "NeutronNetworks.create_and_update_ports": [ + { + "args": { + "network_create_args": {}, + "port_create_args": {}, + "port_update_args": { + "admin_state_up": false, + "device_id": "dummy_id", + "device_owner": "dummy_owner", + "name": "_port_updated" + }, + "ports_per_network": 5 + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "network": {}, + "users": { + "tenants": 2, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1, + "port": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-update-ports.yaml b/samples/tasks/scenarios/neutron/create-and-update-ports.yaml new file mode 100644 index 00000000..eae30bb2 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-ports.yaml @@ -0,0 +1,25 @@ +--- + NeutronNetworks.create_and_update_ports: + - + args: + network_create_args: {} + port_create_args: {} + ports_per_network: 5 + port_update_args: + admin_state_up: False + device_id: "dummy_id" + device_owner: "dummy_owner" + name: "_port_updated" + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + network: {} + users: + tenants: 2 + users_per_tenant: 3 + quotas: + neutron: + network: -1 + port: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-update-routers.json b/samples/tasks/scenarios/neutron/create-and-update-routers.json new file mode 100644 index 00000000..8e299fab --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-routers.json @@ -0,0 +1,36 @@ +{ + "NeutronNetworks.create_and_update_routers": [ + { + "args": { + "network_create_args": {}, + "subnet_create_args": {}, + "subnet_cidr_start": "1.1.0.0/30", + "subnets_per_network": 2, + "router_create_args": {}, + "router_update_args": { + "admin_state_up": false, + "name": "_router_updated" + } + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "network": {}, + "users": { + "tenants": 2, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1, + "router": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-update-routers.yaml b/samples/tasks/scenarios/neutron/create-and-update-routers.yaml new file mode 100644 index 00000000..98bb6669 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-routers.yaml @@ -0,0 +1,26 @@ +--- + NeutronNetworks.create_and_update_routers: + - + args: + network_create_args: {} + subnet_create_args: {} + subnet_cidr_start: "1.1.0.0/30" + subnets_per_network: 2 + router_create_args: {} + router_update_args: + admin_state_up: False + name: "_router_updated" + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + network: {} + users: + tenants: 2 + users_per_tenant: 3 + quotas: + neutron: + network: -1 + subnet: -1 + router: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-update-security-groups.json b/samples/tasks/scenarios/neutron/create-and-update-security-groups.json new file mode 100644 index 00000000..1ef8739f --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-security-groups.json @@ -0,0 +1,26 @@ +{ + "NeutronSecurityGroup.create_and_update_security_groups": [ + { + "args": { + "security_group_create_args": {}, + "security_group_update_args": {} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 3, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "security_group": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-update-security-groups.yaml b/samples/tasks/scenarios/neutron/create-and-update-security-groups.yaml new file mode 100644 index 00000000..da8031e1 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-security-groups.yaml @@ -0,0 +1,17 @@ +--- + NeutronSecurityGroup.create_and_update_security_groups: + - + args: + security_group_create_args: {} + security_group_update_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 3 + users_per_tenant: 3 + quotas: + neutron: + security_group: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-update-subnets.json b/samples/tasks/scenarios/neutron/create-and-update-subnets.json new file mode 100644 index 00000000..8d9e8933 --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-subnets.json @@ -0,0 +1,34 @@ +{ + "NeutronNetworks.create_and_update_subnets": [ + { + "args": { + "subnet_update_args": { + "enable_dhcp": false, + "name": "_subnet_updated" + }, + "network_create_args": {}, + "subnet_create_args": {}, + "subnet_cidr_start": "1.4.0.0/16", + "subnets_per_network": 2 + }, + "runner": { + "type": "constant", + "times": 10, + "concurrency": 5 + }, + "context": { + "network": {}, + "users": { + "tenants": 2, + "users_per_tenant": 3 + }, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-update-subnets.yaml b/samples/tasks/scenarios/neutron/create-and-update-subnets.yaml new file mode 100644 index 00000000..c759c8bf --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-subnets.yaml @@ -0,0 +1,24 @@ +--- + NeutronNetworks.create_and_update_subnets: + - + args: + network_create_args: {} + subnet_create_args: {} + subnet_cidr_start: "1.4.0.0/16" + subnets_per_network: 2 + subnet_update_args: + enable_dhcp: False + name: "_subnet_updated" + runner: + type: "constant" + times: 10 + concurrency: 5 + context: + network: {} + users: + tenants: 2 + users_per_tenant: 3 + quotas: + neutron: + network: -1 + subnet: -1 diff --git a/samples/tasks/scenarios/neutron/create-and-update-vips.json b/samples/tasks/scenarios/neutron/create-and-update-vips.json new file mode 100644 index 00000000..b734a1fb --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-vips.json @@ -0,0 +1,30 @@ +{ + "NeutronLoadbalancerV1.create_and_update_vips": [ + { + "args": { + "vip_create_args":{}, + "vip_update_args":{} + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "network": {}, + "quotas": { + "neutron": { + "network": -1, + "subnet": -1, + "pool": -1, + "vip": -1 + } + } + } + } + ] +} diff --git a/samples/tasks/scenarios/neutron/create-and-update-vips.yaml b/samples/tasks/scenarios/neutron/create-and-update-vips.yaml new file mode 100644 index 00000000..df649b4d --- /dev/null +++ b/samples/tasks/scenarios/neutron/create-and-update-vips.yaml @@ -0,0 +1,21 @@ +--- + NeutronLoadbalancerV1.create_and_update_vips: + - + args: + vip_create_args: {} + vip_update_args: {} + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 1 + users_per_tenant: 1 + network: {} + quotas: + neutron: + network: -1 + subnet: -1 + pool: -1 + vip: -1 diff --git a/samples/tasks/scenarios/sahara/create-and-delete-cluster.json b/samples/tasks/scenarios/sahara/create-and-delete-cluster.json new file mode 100644 index 00000000..0f96fd41 --- /dev/null +++ b/samples/tasks/scenarios/sahara/create-and-delete-cluster.json @@ -0,0 +1,36 @@ +{ + "SaharaClusters.create_and_delete_cluster": [ + { + "args": { + "master_flavor": { + "name": "m1.large" + }, + "worker_flavor": { + "name": "m1.medium" + }, + "workers_count": 3, + "plugin_name": "vanilla", + "hadoop_version": "2.3.0", + "auto_security_group": true + }, + "runner": { + "type": "constant", + "times": 4, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "sahara_image": { + "image_url": "http://sahara-files.mirantis.com/sahara-icehouse-vanilla-2.3.0-ubuntu-13.10.qcow2", + "username": "ubuntu", + "plugin_name": "vanilla", + "hadoop_version": "2.3.0" + }, + "network": {} + } + } + ] +} \ No newline at end of file diff --git a/samples/tasks/scenarios/sahara/create-and-delete-cluster.yaml b/samples/tasks/scenarios/sahara/create-and-delete-cluster.yaml new file mode 100644 index 00000000..43fa1246 --- /dev/null +++ b/samples/tasks/scenarios/sahara/create-and-delete-cluster.yaml @@ -0,0 +1,26 @@ +--- + SaharaClusters.create_and_delete_cluster: + - + args: + master_flavor: + name: "m1.large" + worker_flavor: + name: "m1.medium" + workers_count: 3 + plugin_name: "vanilla" + hadoop_version: "2.3.0" + auto_security_group: True + runner: + type: "constant" + times: 4 + concurrency: 2 + context: + users: + tenants: 1 + users_per_tenant: 1 + sahara_image: + image_url: "http://sahara-files.mirantis.com/sahara-icehouse-vanilla-2.3.0-ubuntu-13.10.qcow2" + username: "ubuntu" + plugin_name: "vanilla" + hadoop_version: "2.3.0" + network: {} diff --git a/samples/tasks/scenarios/sahara/create-and-list-node-group-templates.json b/samples/tasks/scenarios/sahara/create-and-list-node-group-templates.json new file mode 100644 index 00000000..fd5ebc34 --- /dev/null +++ b/samples/tasks/scenarios/sahara/create-and-list-node-group-templates.json @@ -0,0 +1,22 @@ +{ + "SaharaNodeGroupTemplates.create_and_list_node_group_templates": [ + { + "args": { + "flavor": { + "name": "m1.small" + } + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/samples/tasks/scenarios/sahara/create-and-list-node-group-templates.yaml b/samples/tasks/scenarios/sahara/create-and-list-node-group-templates.yaml new file mode 100644 index 00000000..2b69b8c8 --- /dev/null +++ b/samples/tasks/scenarios/sahara/create-and-list-node-group-templates.yaml @@ -0,0 +1,14 @@ +--- + SaharaNodeGroupTemplates.create_and_list_node_group_templates: + - + args: + flavor: + name: "m1.small" + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/sahara/create-delete-node-group-templates.json b/samples/tasks/scenarios/sahara/create-delete-node-group-templates.json new file mode 100644 index 00000000..3af8c153 --- /dev/null +++ b/samples/tasks/scenarios/sahara/create-delete-node-group-templates.json @@ -0,0 +1,22 @@ +{ + "SaharaNodeGroupTemplates.create_delete_node_group_templates": [ + { + "args": { + "flavor": { + "name": "m1.small" + } + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/samples/tasks/scenarios/sahara/create-delete-node-group-templates.yaml b/samples/tasks/scenarios/sahara/create-delete-node-group-templates.yaml new file mode 100644 index 00000000..960bd74c --- /dev/null +++ b/samples/tasks/scenarios/sahara/create-delete-node-group-templates.yaml @@ -0,0 +1,14 @@ +--- + SaharaNodeGroupTemplates.create_delete_node_group_templates: + - + args: + flavor: + name: "m1.small" + runner: + type: "constant" + times: 100 + concurrency: 10 + context: + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/sahara/create-scale-delete-cluster.json b/samples/tasks/scenarios/sahara/create-scale-delete-cluster.json new file mode 100644 index 00000000..401e9648 --- /dev/null +++ b/samples/tasks/scenarios/sahara/create-scale-delete-cluster.json @@ -0,0 +1,37 @@ +{ + "SaharaClusters.create_scale_delete_cluster": [ + { + "args": { + "master_flavor": { + "name": "m1.large" + }, + "worker_flavor": { + "name": "m1.medium" + }, + "workers_count": 3, + "deltas": [1, -1, 1, -1], + "plugin_name": "vanilla", + "hadoop_version": "2.3.0", + "auto_security_group": true + }, + "runner": { + "type": "constant", + "times": 4, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "sahara_image": { + "image_url": "http://sahara-files.mirantis.com/sahara-icehouse-vanilla-2.3.0-ubuntu-13.10.qcow2", + "username": "ubuntu", + "plugin_name": "vanilla", + "hadoop_version": "2.3.0" + }, + "network": {} + } + } + ] +} \ No newline at end of file diff --git a/samples/tasks/scenarios/sahara/create-scale-delete-cluster.yaml b/samples/tasks/scenarios/sahara/create-scale-delete-cluster.yaml new file mode 100644 index 00000000..0ae8fd85 --- /dev/null +++ b/samples/tasks/scenarios/sahara/create-scale-delete-cluster.yaml @@ -0,0 +1,31 @@ +--- + SaharaClusters.create_scale_delete_cluster: + - + args: + master_flavor: + name: "m1.large" + worker_flavor: + name: "m1.medium" + workers_count: 3 + deltas: + - 1 + - -1 + - 1 + - -1 + plugin_name: "vanilla" + hadoop_version: "2.3.0" + auto_security_group: True + runner: + type: "constant" + times: 4 + concurrency: 2 + context: + users: + tenants: 1 + users_per_tenant: 1 + sahara_image: + image_url: "http://sahara-files.mirantis.com/sahara-icehouse-vanilla-2.3.0-ubuntu-13.10.qcow2" + username: "ubuntu" + plugin_name: "vanilla" + hadoop_version: "2.3.0" + network: {} diff --git a/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence-scaling.json b/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence-scaling.json new file mode 100644 index 00000000..2141682c --- /dev/null +++ b/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence-scaling.json @@ -0,0 +1,61 @@ +{ + "SaharaJob.create_launch_job_sequence_with_scaling": [ + { + "args": { + "jobs": [ + { + "job_type": "Java", + "configs": { + "configs": { + "edp.java.main_class": "org.apache.hadoop.fs.TestDFSIO" + }, + "args": ["-write", "-nrFiles", "10", "-fileSize", "100"] + } + }, { + "job_type": "Java", + "configs": { + "configs": { + "edp.java.main_class": "org.apache.hadoop.fs.TestDFSIO" + }, + "args": ["-read", "-nrFiles", "10", "-fileSize", "100"] + } + } + ], + "deltas": [2, 2, 2] + }, + "runner": { + "type": "serial", + "times": 1 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "sahara_image": { + "image_url": "http://sahara-files.mirantis.com/mos70/sahara-kilo-vanilla-2.6.0-ubuntu-14.04.qcow2", + "username": "ubuntu", + "plugin_name": "vanilla", + "hadoop_version": "2.6.0" + }, + "sahara_job_binaries": { + "libs": [ + { + "name": "tests.jar", + "download_url": "http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-hdfs/2.6.0/hadoop-hdfs-2.6.0-tests.jar" + } + ] + }, + "sahara_cluster": { + "master_flavor_id": "4", + "worker_flavor_id": "3", + "workers_count": 3, + "plugin_name": "vanilla", + "hadoop_version": "2.6.0", + "auto_security_group": true + }, + "network": {} + } + } + ] +} diff --git a/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence-scaling.yaml b/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence-scaling.yaml new file mode 100644 index 00000000..4b94f4bf --- /dev/null +++ b/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence-scaling.yaml @@ -0,0 +1,56 @@ +--- + SaharaJob.create_launch_job_sequence_with_scaling: + - + args: + jobs: + - + job_type: "Java" + configs: + configs: + edp.java.main_class: "org.apache.hadoop.fs.TestDFSIO" + args: + - "-write" + - "-nrFiles" + - "10" + - "-fileSize" + - "100" + - + job_type: "Java" + configs: + configs: + edp.java.main_class: "org.apache.hadoop.fs.TestDFSIO" + args: + - "-read" + - "-nrFiles" + - "10" + - "-fileSize" + - "100" + deltas: + - 2 + - 2 + - 2 + runner: + type: "serial" + times: 1 + context: + users: + tenants: 1 + users_per_tenant: 1 + sahara_image: + image_url: "http://sahara-files.mirantis.com/mos70/sahara-kilo-vanilla-2.6.0-ubuntu-14.04.qcow2" + username: "ubuntu" + plugin_name: "vanilla" + hadoop_version: "2.6.0" + sahara_job_binaries: + libs: + - + name: "tests.jar" + download_url: "http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-hdfs/2.6.0/hadoop-hdfs-2.6.0-tests.jar" + sahara_cluster: + master_flavor_id: "4" + worker_flavor_id: "3" + workers_count: 3 + plugin_name: "vanilla" + hadoop_version: "2.6.0" + auto_security_group: True + network: {} diff --git a/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence.json b/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence.json new file mode 100644 index 00000000..7447db6c --- /dev/null +++ b/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence.json @@ -0,0 +1,61 @@ +{ + "SaharaJob.create_launch_job_sequence": [ + { + "args": { + "jobs": [ + { + "job_type": "Java", + "configs": { + "configs": { + "edp.java.main_class": "org.apache.hadoop.fs.TestDFSIO" + }, + "args": ["-write", "-nrFiles", "10", "-fileSize", "100"] + } + }, { + "job_type": "Java", + "configs": { + "configs": { + "edp.java.main_class": "org.apache.hadoop.fs.TestDFSIO" + }, + "args": ["-read", "-nrFiles", "10", "-fileSize", "100"] + } + } + ] + }, + "runner": { + "type": "constant", + "times": 4, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "sahara_image": { + "image_url": "http://sahara-files.mirantis.com/mos70/sahara-kilo-vanilla-2.6.0-ubuntu-14.04.qcow2", + "username": "ubuntu", + "plugin_name": "vanilla", + "hadoop_version": "2.6.0" + }, + "sahara_job_binaries": { + "libs": [ + { + "name": "tests.jar", + "download_url": "http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-hdfs/2.6.0/hadoop-hdfs-2.6.0-tests.jar" + } + ] + }, + "sahara_cluster": { + "master_flavor_id": "4", + "worker_flavor_id": "3", + "workers_count": 3, + "plugin_name": "vanilla", + "hadoop_version": "2.6.0", + "auto_security_group": true + }, + "network": {} + } + } + ] +} diff --git a/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence.yaml b/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence.yaml new file mode 100644 index 00000000..5f1b4f2e --- /dev/null +++ b/samples/tasks/scenarios/sahara/jobs/dfsio-job-sequence.yaml @@ -0,0 +1,53 @@ +--- + SaharaJob.create_launch_job_sequence: + - + args: + jobs: + - + job_type: "Java" + configs: + configs: + edp.java.main_class: "org.apache.hadoop.fs.TestDFSIO" + args: + - "-write" + - "-nrFiles" + - "10" + - "-fileSize" + - "100" + - + job_type: "Java" + configs: + configs: + edp.java.main_class: "org.apache.hadoop.fs.TestDFSIO" + args: + - "-read" + - "-nrFiles" + - "10" + - "-fileSize" + - "100" + runner: + type: "constant" + times: 4 + concurrency: 2 + context: + users: + tenants: 1 + users_per_tenant: 1 + sahara_image: + image_url: "http://sahara-files.mirantis.com/mos70/sahara-kilo-vanilla-2.6.0-ubuntu-14.04.qcow2" + username: "ubuntu" + plugin_name: "vanilla" + hadoop_version: "2.6.0" + sahara_job_binaries: + libs: + - + name: "tests.jar" + download_url: "http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-hdfs/2.6.0/hadoop-hdfs-2.6.0-tests.jar" + sahara_cluster: + master_flavor_id: "4" + worker_flavor_id: "3" + workers_count: 3 + plugin_name: "vanilla" + hadoop_version: "2.6.0" + auto_security_group: True + network: {} diff --git a/samples/tasks/scenarios/sahara/jobs/java-action-job.json b/samples/tasks/scenarios/sahara/jobs/java-action-job.json new file mode 100644 index 00000000..bb17363b --- /dev/null +++ b/samples/tasks/scenarios/sahara/jobs/java-action-job.json @@ -0,0 +1,49 @@ +{ + "SaharaJob.create_launch_job": [ + { + "args": { + "job_type": "Java", + "configs": { + "configs": { + "edp.java.main_class": "org.apache.hadoop.examples.PiEstimator" + }, + "args": ["10", "10"] + } + }, + "runner": { + "type": "constant", + "times": 4, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "sahara_image": { + "image_url": "http://sahara-files.mirantis.com/mos70/sahara-kilo-vanilla-2.6.0-ubuntu-14.04.qcow2", + "username": "ubuntu", + "plugin_name": "vanilla", + "hadoop_version": "2.6.0" + }, + "sahara_job_binaries": { + "libs": [ + { + "name": "examples.jar", + "download_url": "http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-mapreduce-examples/2.6.0/hadoop-mapreduce-examples-2.6.0.jar" + } + ] + }, + "sahara_cluster": { + "master_flavor_id": "4", + "worker_flavor_id": "3", + "workers_count": 3, + "plugin_name": "vanilla", + "hadoop_version": "2.6.0", + "auto_security_group": true + }, + "network": {} + } + } + ] +} diff --git a/samples/tasks/scenarios/sahara/jobs/java-action-job.yaml b/samples/tasks/scenarios/sahara/jobs/java-action-job.yaml new file mode 100644 index 00000000..f98cfdf3 --- /dev/null +++ b/samples/tasks/scenarios/sahara/jobs/java-action-job.yaml @@ -0,0 +1,37 @@ +--- + SaharaJob.create_launch_job: + - + args: + job_type: "Java" + configs: + configs: + edp.java.main_class: "org.apache.hadoop.examples.PiEstimator" + args: + - "10" + - "10" + runner: + type: "constant" + times: 4 + concurrency: 2 + context: + users: + tenants: 1 + users_per_tenant: 1 + sahara_image: + image_url: "http://sahara-files.mirantis.com/mos70/sahara-kilo-vanilla-2.6.0-ubuntu-14.04.qcow2" + username: "ubuntu" + plugin_name: "vanilla" + hadoop_version: "2.6.0" + sahara_job_binaries: + libs: + - + name: "examples.jar" + download_url: "http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-mapreduce-examples/2.6.0/hadoop-mapreduce-examples-2.6.0.jar" + sahara_cluster: + master_flavor_id: "4" + worker_flavor_id: "3" + workers_count: 3 + plugin_name: "vanilla" + hadoop_version: "2.6.0" + auto_security_group: True + network: {} diff --git a/samples/tasks/scenarios/sahara/jobs/pig-script-job.json b/samples/tasks/scenarios/sahara/jobs/pig-script-job.json new file mode 100644 index 00000000..69d12be6 --- /dev/null +++ b/samples/tasks/scenarios/sahara/jobs/pig-script-job.json @@ -0,0 +1,58 @@ +{ + "SaharaJob.create_launch_job": [ + { + "args": { + "job_type": "Pig", + "configs": {} + }, + "runner": { + "type": "constant", + "times": 4, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "sahara_image": { + "image_url": "http://sahara-files.mirantis.com/mos70/sahara-kilo-vanilla-2.6.0-ubuntu-14.04.qcow2", + "username": "ubuntu", + "plugin_name": "vanilla", + "hadoop_version": "2.6.0" + }, + "sahara_job_binaries": { + "mains": [ + { + "name": "example.pig", + "download_url": "https://raw.githubusercontent.com/openstack/sahara/master/etc/edp-examples/pig-job/example.pig" + } + ], + "libs": [ + { + "name": "udf.jar", + "download_url": "https://github.com/openstack/sahara/blob/master/etc/edp-examples/pig-job/udf.jar?raw=true" + } + ] + }, + "sahara_input_data_sources": { + "input_type": "hdfs", + "input_url": "/" + }, + "sahara_output_data_sources": { + "output_type": "hdfs", + "output_url_prefix": "/out_" + }, + "sahara_cluster": { + "master_flavor_id": "4", + "worker_flavor_id": "3", + "workers_count": 3, + "plugin_name": "vanilla", + "hadoop_version": "2.6.0", + "auto_security_group": true + }, + "network": {} + } + } + ] +} diff --git a/samples/tasks/scenarios/sahara/jobs/pig-script-job.yaml b/samples/tasks/scenarios/sahara/jobs/pig-script-job.yaml new file mode 100644 index 00000000..f19a080c --- /dev/null +++ b/samples/tasks/scenarios/sahara/jobs/pig-script-job.yaml @@ -0,0 +1,42 @@ +--- + SaharaJob.create_launch_job: + - + args: + job_type: "Pig" + configs: {} + runner: + type: "constant" + times: 4 + concurrency: 2 + context: + users: + tenants: 1 + users_per_tenant: 1 + sahara_image: + image_url: "http://sahara-files.mirantis.com/mos70/sahara-kilo-vanilla-2.6.0-ubuntu-14.04.qcow2" + username: "ubuntu" + plugin_name: "vanilla" + hadoop_version: "2.6.0" + sahara_job_binaries: + mains: + - + name: "example.pig" + download_url: "https://raw.githubusercontent.com/openstack/sahara/master/etc/edp-examples/pig-job/example.pig" + libs: + - + name: "udf.jar" + download_url: "https://github.com/openstack/sahara/blob/master/etc/edp-examples/pig-job/udf.jar?raw=true" + sahara_input_data_sources: + input_type: "hdfs" + input_url: "/" + sahara_output_data_sources: + output_type: "hdfs" + output_url_prefix: "/out_" + sahara_cluster: + master_flavor_id: "4" + worker_flavor_id: "3" + workers_count: 3 + plugin_name: "vanilla" + hadoop_version: "2.6.0" + auto_security_group: True + network: {} diff --git a/samples/tasks/scenarios/vm/boot-runcommand-delete-custom-image.json b/samples/tasks/scenarios/vm/boot-runcommand-delete-custom-image.json new file mode 100644 index 00000000..7b31005c --- /dev/null +++ b/samples/tasks/scenarios/vm/boot-runcommand-delete-custom-image.json @@ -0,0 +1,37 @@ +{ + "VMTasks.boot_runcommand_delete_custom_image": [ + { + "args": { + "flavor": {"name": "m1.small"}, + "command": { + "remote_path": "./instance_dd_test.sh" + }, + "username": "root", + "userdata": "#cloud-config\ndisable_root: 0\nssh_pwauth: 1" + }, + "runner": { + "type": "constant", + "times": 1, + "concurrency": 1, + "timeout": 3000 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "image_command_customizer": { + "image": {"name": "Fedora-x86_64-20-20140618-sda"}, + "flavor": {"name": "m1.small"}, + "command": { + "local_path": "rally-jobs/extra/install_benchmark.sh", + "remote_path": "./install_benchmark.sh" + }, + "username": "root", + "userdata": "#cloud-config\ndisable_root: 0\nssh_pwauth: 1" + }, + "network": {} + } + } + ] +} diff --git a/samples/tasks/scenarios/vm/boot-runcommand-delete-custom-image.yaml b/samples/tasks/scenarios/vm/boot-runcommand-delete-custom-image.yaml new file mode 100644 index 00000000..ff63773e --- /dev/null +++ b/samples/tasks/scenarios/vm/boot-runcommand-delete-custom-image.yaml @@ -0,0 +1,30 @@ +--- + VMTasks.boot_runcommand_delete_custom_image: + - + args: + command: + remote_path: "./instance_dd_test.sh" + flavor: + name: m1.small + userdata: "#cloud-config\ndisable_root: 0\nssh_pwauth: 1" + username: root + runner: + concurrency: 1 + timeout: 3000 + times: 1 + type: "constant" + context: + image_command_customizer: + command: + local_path: "rally-jobs/extra/install_benchmark.sh" + remote_path: "./install_benchmark.sh" + flavor: + name: m1.small + image: + name: "Fedora-x86_64-20-20140618-sda" + userdata: "#cloud-config\ndisable_root: 0\nssh_pwauth: 1" + username: root + network: {} + users: + tenants: 1 + users_per_tenant: 1 diff --git a/samples/tasks/scenarios/zaqar/producer-consumer.json b/samples/tasks/scenarios/zaqar/producer-consumer.json new file mode 100644 index 00000000..ef60740b --- /dev/null +++ b/samples/tasks/scenarios/zaqar/producer-consumer.json @@ -0,0 +1,15 @@ +{ + "ZaqarBasic.producer_consumer": [ + { + "args": { + "min_msg_count": 50, + "max_msg_count": 200 + }, + "runner": { + "type": "constant", + "times": 100, + "concurrency": 10 + } + } + ] +} diff --git a/samples/tasks/scenarios/zaqar/producer-consumer.yaml b/samples/tasks/scenarios/zaqar/producer-consumer.yaml new file mode 100644 index 00000000..59f23138 --- /dev/null +++ b/samples/tasks/scenarios/zaqar/producer-consumer.yaml @@ -0,0 +1,10 @@ +--- + ZaqarBasic.producer_consumer: + - + args: + min_msg_count: 50 + max_msg_count: 200 + runner: + type: "constant" + times: 100 + concurrency: 10 diff --git a/tests/unit/doc/test_task_samples.py b/tests/unit/doc/test_task_samples.py index 24cebbd6..1df877fc 100644 --- a/tests/unit/doc/test_task_samples.py +++ b/tests/unit/doc/test_task_samples.py @@ -125,3 +125,18 @@ class TaskSampleTestCase(test.TestCase): self.assertEqual(json_config, yaml_config, "Sample task configs are not equal:" "\n%s\n%s" % (yaml_path, json_path)) + + def test_no_underscores_in_filename(self): + bad_filenames = [] + + for dirname, dirnames, filenames in os.walk(self.samples_path): + for filename in filenames: + if "_" in filename and (filename.endswith(".yaml") or + filename.endswith(".json")): + full_path = os.path.join(dirname, filename) + bad_filenames.append(full_path) + + self.assertEqual([], bad_filenames, + "Following sample task filenames contain " + "underscores (_) but must use dashes (-) instead: " + "{}".format(bad_filenames))