Merge "Add samples to context directory"

This commit is contained in:
Jenkins 2017-04-18 13:03:14 +00:00 committed by Gerrit Code Review
commit 52b5137b66
75 changed files with 2222 additions and 4 deletions

View File

@ -0,0 +1,21 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"allow_ssh": null
}
}
]
}

View File

@ -0,0 +1,14 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
allow_ssh: null

View File

@ -0,0 +1,29 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"api_versions": {
"nova": {
"version": 2.2
},
"cinder": {
"version": 2,
"service_type": "volumev2"
}
}
}
}
]
}

View File

@ -0,0 +1,19 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
api_versions:
nova:
version: 2.2
cinder:
version: 2
service_type: "volumev2"

View File

@ -0,0 +1,38 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"audit_templates": {
"audit_templates_per_admin": 5,
"fill_strategy": "random",
"params": [
{
"goal": {
"name": "workload_balancing"
},
"strategy": {
"name": "workload_stabilization"
}
},
{
"goal": {
"name": "dummy"
},
"strategy": {
"name": "dummy"
}
}
]
}
}
}
]
}

View File

@ -0,0 +1,22 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
audit_templates:
audit_templates_per_admin: 5
fill_strategy: "random"
params:
- goal:
name: "workload_balancing"
strategy:
name: "workload_stabilization"
- goal:
name: "dummy"
strategy:
name: "dummy"

View File

@ -0,0 +1,38 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"ceilometer": {
"counter_name": "cpu_util",
"counter_type": "gauge",
"counter_unit": "instance",
"counter_volume": 1.0,
"resources_per_tenant": 100,
"samples_per_resource": 100,
"timestamp_interval": 60,
"metadata_list": [
{"status": "active", "name": "fake_resource",
"deleted": "False",
"created_at": "2015-09-04T12:34:19.000000"},
{"status": "not_active", "name": "fake_resource_1",
"deleted": "False",
"created_at": "2015-09-10T06:55:12.000000"}
],
"batch_size": 5
}
}
}
]
}

View File

@ -0,0 +1,31 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
ceilometer:
counter_name: "cpu_util"
counter_type: "gauge"
counter_unit: "instance"
counter_volume: 1.0
resources_per_tenant: 100
samples_per_resource: 100
timestamp_interval: 60
metadata_list:
- status: "active"
name: "fake_resource"
deleted: "False"
created_at: "2015-09-04T12:34:19.000000"
- status: "not_active"
name: "fake_resource_1"
deleted: "False"
created_at: "2015-09-10T06:55:12.000000"
batch_size: 5

View File

@ -0,0 +1,78 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"concurrency": 1,
"times": 1
},
"context": {
"cluster_templates": {
"dns_nameserver": "8.8.8.8",
"external_network_id": "public",
"flavor_id": "m1.small",
"docker_volume_size": 5,
"coe": "kubernetes",
"image_id": "fedora-atomic-latest",
"network_driver": "flannel"
},
"users": {
"users_per_tenant": 1,
"tenants": 1
}
}
},
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"concurrency": 1,
"times": 1
},
"context": {
"cluster_templates": {
"dns_nameserver": "8.8.8.8",
"external_network_id": "public",
"flavor_id": "m1.small",
"docker_volume_size": 5,
"coe": "swarm",
"image_id": "fedora-atomic-latest",
"network_driver": "docker"
},
"users": {
"users_per_tenant": 1,
"tenants": 1
}
}
},
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"concurrency": 1,
"times": 1
},
"context": {
"cluster_templates": {
"dns_nameserver": "8.8.8.8",
"external_network_id": "public",
"flavor_id": "m1.small",
"coe": "mesos",
"image_id": "ubuntu-mesos",
"network_driver": "docker"
},
"users": {
"users_per_tenant": 1,
"tenants": 1
}
}
}
]
}

View File

@ -0,0 +1,58 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 1
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1
cluster_templates:
image_id: "fedora-atomic-latest"
external_network_id: "public"
dns_nameserver: "8.8.8.8"
flavor_id: "m1.small"
docker_volume_size: 5
network_driver: "flannel"
coe: "kubernetes"
-
args:
sleep: 0.1
runner:
type: "constant"
times: 1
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1
cluster_templates:
image_id: "fedora-atomic-latest"
external_network_id: "public"
dns_nameserver: "8.8.8.8"
flavor_id: "m1.small"
docker_volume_size: 5
network_driver: "docker"
coe: "swarm"
-
args:
sleep: 0.1
runner:
type: "constant"
times: 1
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1
cluster_templates:
image_id: "ubuntu-mesos"
external_network_id: "public"
dns_nameserver: "8.8.8.8"
flavor_id: "m1.small"
network_driver: "docker"
coe: "mesos"

View File

@ -0,0 +1,87 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"concurrency": 1,
"times": 1
},
"context": {
"clusters": {
"node_count": 2
},
"cluster_templates": {
"dns_nameserver": "8.8.8.8",
"external_network_id": "public",
"flavor_id": "m1.small",
"docker_volume_size": 5,
"coe": "kubernetes",
"image_id": "fedora-atomic-latest",
"network_driver": "flannel"
},
"users": {
"users_per_tenant": 1,
"tenants": 1
}
}
},
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"concurrency": 1,
"times": 1
},
"context": {
"clusters": {
"node_count": 2
},
"cluster_templates": {
"dns_nameserver": "8.8.8.8",
"external_network_id": "public",
"flavor_id": "m1.small",
"docker_volume_size": 5,
"coe": "swarm",
"image_id": "fedora-atomic-latest",
"network_driver": "docker"
},
"users": {
"users_per_tenant": 1,
"tenants": 1
}
}
},
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"concurrency": 1,
"times": 1
},
"context": {
"clusters": {
"node_count": 2
},
"cluster_templates": {
"dns_nameserver": "8.8.8.8",
"external_network_id": "public",
"flavor_id": "m1.small",
"coe": "mesos",
"image_id": "ubuntu-mesos",
"network_driver": "docker"
},
"users": {
"users_per_tenant": 1,
"tenants": 1
}
}
}
]
}

View File

@ -0,0 +1,64 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 1
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1
cluster_templates:
image_id: "fedora-atomic-latest"
external_network_id: "public"
dns_nameserver: "8.8.8.8"
flavor_id: "m1.small"
docker_volume_size: 5
network_driver: "flannel"
coe: "kubernetes"
clusters:
node_count: 2
-
args:
sleep: 0.1
runner:
type: "constant"
times: 1
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1
cluster_templates:
image_id: "fedora-atomic-latest"
external_network_id: "public"
dns_nameserver: "8.8.8.8"
flavor_id: "m1.small"
docker_volume_size: 5
network_driver: "docker"
coe: "swarm"
clusters:
node_count: 2
-
args:
sleep: 0.1
runner:
type: "constant"
times: 1
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1
cluster_templates:
image_id: "ubuntu-mesos"
external_network_id: "public"
dns_nameserver: "8.8.8.8"
flavor_id: "m1.small"
network_driver: "docker"
coe: "mesos"
clusters:
node_count: 2

View File

@ -0,0 +1,24 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"dummy_context": {
"fail_setup": false,
"fail_cleanup": false
}
}
}
]
}

View File

@ -0,0 +1,16 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
dummy_context:
fail_setup: false
fail_cleanup: false

View File

@ -0,0 +1,29 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"ec2_servers": {
"flavor": {
"name": "m1.tiny"
},
"image": {
"name": "^cirros.*-disk$"
},
"servers_per_tenant": 2
}
}
}
]
}

View File

@ -0,0 +1,19 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
ec2_servers:
flavor:
name: "m1.tiny"
image:
name: "^cirros.*-disk$"
servers_per_tenant: 2

View File

@ -0,0 +1,21 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"existing_network": {}
}
}
]
}

View File

@ -0,0 +1,14 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
existing_network: {}

View File

@ -0,0 +1,26 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"flavors": [
{
"name": "ram64",
"ram": 64
}
]
}
}
]
}

View File

@ -0,0 +1,17 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
flavors:
-
name: "ram64"
ram: 64

View File

@ -0,0 +1,40 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"network": {
"start_cidr": "10.2.0.0/24",
"networks_per_tenant": 1,
"subnets_per_network": 1,
"network_create_args": {},
"dns_nameservers": ["10.2.0.1"]
},
"heat_dataplane": {
"stacks_per_tenant": 1,
"template": "samples/tasks/scenarios/heat/templates/resource-group-with-constraint.yaml.template",
"files": {
"file1": "f1.yaml",
"file2": "f2.yaml"
},
"parameters": {
"count": 40,
"delay": 0.1
},
"context_parameters": {}
}
}
}
]
}

View File

@ -0,0 +1,30 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
network:
start_cidr: "10.2.0.0/24"
networks_per_tenant: 1
subnets_per_network: 1
network_create_args: {}
dns_nameservers:
- "10.2.0.1"
heat_dataplane:
stacks_per_tenant: 1
template: "samples/tasks/scenarios/heat/templates/resource-group-with-constraint.yaml.template"
files:
file1: "f1.yaml"
file2: "f2.yaml"
parameters:
count: 40
delay: 0.1
context_parameters: {}

View File

@ -0,0 +1,32 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.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": {}
}
}
]
}

View File

@ -0,0 +1,25 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
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

View File

@ -0,0 +1,26 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 2,
"concurrency": 1
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"images": {
"image_url": "http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img",
"image_type": "qcow2",
"image_container": "bare",
"images_per_tenant": 4
}
}
}
]
}

View File

@ -0,0 +1,18 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 2
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 2
images:
image_url: "http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img"
image_type: "qcow2"
image_container: "bare"
images_per_tenant: 4

View File

@ -0,0 +1,21 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"keypair": {}
}
}
]
}

View File

@ -0,0 +1,14 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
keypair: {}

View File

@ -0,0 +1,45 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"lbaas": {
"pool": {}
}
}
},
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"lbaas": {
"pool": {
"lb_method": "ROUND_ROBIN",
"protocol": "HTTP"
}
}
}
}
]
}

View File

@ -0,0 +1,30 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
lbaas:
pool: {}
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
lbaas:
pool:
lb_method: "ROUND_ROBIN"
protocol: "HTTP"

View File

@ -0,0 +1,60 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"quotas": {
"manila": {
"shares": -1,
"gigabytes": -1,
"share_networks": -1
}
},
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"manila_share_networks": {
"use_share_networks": true
},
"manila_security_services": {
"security_services": [
{
"type": "ldap",
"server": "LDAP server address",
"user": "User that will be used",
"password": "Password for specified user"
},
{
"type": "kerberos",
"dns_ip": "IP address of DNS service to be used",
"server": "Kerberos server address",
"domain": "Kerberos realm",
"user": "User that will be used",
"password": "Password for specified user"
},
{
"type": "active_directory",
"dns_ip": "IP address of DNS service to be used",
"domain": "Domain from 'Active Directory'",
"user": "User from 'Active Directory'",
"password": "password for specified user"
}
]
}
},
"sla": {
"failure_rate": {
"max": 0
}
}
}
]
}

View File

@ -0,0 +1,42 @@
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
quotas:
manila:
shares: -1
gigabytes: -1
share_networks: -1
users:
tenants: 1
users_per_tenant: 1
manila_share_networks:
use_share_networks: True
manila_security_services:
security_services:
-
type: "ldap"
server: "LDAP server address"
user: "User that will be used"
password: "Password for specified user"
-
type: "kerberos"
dns_ip: "IP address of DNS service to be used"
server: "Kerberos server address"
domain: "Kerberos realm"
user: "User that will be used"
password: "Password for specified user"
-
type: "active_directory"
dns_ip: "IP address of DNS service to be used"
domain: "Domain from 'Active Directory'"
user: "User from 'Active Directory'"
password: "password for specified user"
sla:
failure_rate:
max: 0

View File

@ -0,0 +1,41 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"quotas": {
"manila": {
"shares": -1,
"gigabytes": -1,
"share_networks": -1
}
},
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"manila_share_networks": {
"use_share_networks": true
},
"manila_shares": {
"shares_per_tenant": 1,
"share_proto": "NFS",
"size": 1,
"share_type": "dhss_true"
}
},
"sla": {
"failure_rate": {
"max": 0
}
}
}
]
}

View File

@ -0,0 +1,27 @@
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
quotas:
manila:
shares: -1
gigabytes: -1
share_networks: -1
users:
tenants: 1
users_per_tenant: 1
manila_share_networks:
use_share_networks: True
manila_shares:
shares_per_tenant: 1
share_proto: "NFS"
size: 1
share_type: "dhss_true"
sla:
failure_rate:
max: 0

View File

@ -0,0 +1,41 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"quotas": {
"manila": {
"shares": -1,
"gigabytes": -1,
"share_networks": -1
}
},
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"manila_share_networks": {
"use_share_networks": true
},
"manila_shares": {
"shares_per_tenant": 1,
"share_proto": "NFS",
"size": 1,
"share_type": "dhss_true"
}
},
"sla": {
"failure_rate": {
"max": 0
}
}
}
]
}

View File

@ -0,0 +1,27 @@
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
quotas:
manila:
shares: -1
gigabytes: -1
share_networks: -1
users:
tenants: 1
users_per_tenant: 1
manila_share_networks:
use_share_networks: True
manila_shares:
shares_per_tenant: 1
share_proto: "NFS"
size: 1
share_type: "dhss_true"
sla:
failure_rate:
max: 0

View File

@ -0,0 +1,32 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"roles": [
"monasca-user"
],
"monasca_metrics": {
"dimensions": {
"region": "RegionOne",
"service": "identity",
"hostname": "fake_host",
"url": "http://fake_host:5000/v2.0"
},
"metrics_per_tenant": 10
}
}
}
]
}

View File

@ -0,0 +1,22 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
roles:
- "monasca-user"
monasca_metrics:
dimensions:
region: "RegionOne"
service: "identity"
hostname: "fake_host"
url: "http://fake_host:5000/v2.0"
metrics_per_tenant: 10

View File

@ -0,0 +1,23 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 2,
"users_per_tenant": 2
},
"murano_environments": {
"environments_per_tenant": 2
}
}
}
]
}

View File

@ -0,0 +1,15 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 2
users_per_tenant: 2
murano_environments:
environments_per_tenant: 2

View File

@ -0,0 +1,44 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"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": {
"sleep": 0.1
},
"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"]
}
}
]
}

View File

@ -0,0 +1,32 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
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:
sleep: 0.1
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"

View File

@ -0,0 +1,44 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"network": {}
}
},
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"network": {
"start_cidr": "10.2.0.0/24",
"networks_per_tenant": 1,
"subnets_per_network": 1,
"network_create_args": {},
"dns_nameservers": ["10.2.0.1"]
}
}
}
]
}

View File

@ -0,0 +1,32 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
network: {}
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
network:
start_cidr: "10.2.0.0/24"
networks_per_tenant: 1
subnets_per_network: 1
network_create_args: {}
dns_nameservers:
- "10.2.0.1"

View File

@ -0,0 +1,32 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 3,
"concurrency": 1
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"profiles": {
"type": "os.nova.server",
"version": "1.0",
"properties": {
"name": "cirros_server",
"flavor": 1,
"image": "cirros-0.3.5-x86_64-disk",
"networks": [
{ "network": "private" }
]
}
}
}
}
]
}

View File

@ -0,0 +1,22 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 3
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1
profiles:
type: "os.nova.server"
version: "1.0"
properties:
name: "cirros_server"
flavor: 1
image: "cirros-0.3.5-x86_64-disk"
networks:
- network: "private"

View File

@ -0,0 +1,46 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"quotas": {
"manila": {
"share_networks": -1
}
}
}
},
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"quotas": {
"cinder": {
"volumes": -1
}
}
}
}
]
}

View File

@ -0,0 +1,30 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
quotas:
manila:
share_networks: -1
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
quotas:
cinder:
volumes: -1

View File

@ -0,0 +1,21 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"roles": ["role"]
}
}
]
}

View File

@ -0,0 +1,15 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
roles:
- "role"

View File

@ -0,0 +1,29 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"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": {}
}
}
]
}

View File

@ -0,0 +1,21 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
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: {}

View File

@ -0,0 +1,27 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"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": {}
}
}
]
}

View File

@ -0,0 +1,19 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
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: {}

View File

@ -0,0 +1,29 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"sahara_input_data_sources": {
"input_type": "hdfs",
"input_url": "/"
},
"sahara_output_data_sources": {
"output_type": "hdfs",
"output_url_prefix": "/out_"
},
"network": {}
}
}
]
}

View File

@ -0,0 +1,20 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
sahara_input_data_sources:
input_type: "hdfs"
input_url: "/"
sahara_output_data_sources:
output_type: "hdfs"
output_url_prefix: "/out_"
network: {}

View File

@ -0,0 +1,54 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"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"
}]
},
"network": {}
}
},
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"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"
}]
},
"network": {}
}
}
]
}

View File

@ -0,0 +1,40 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
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"
network: {}
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
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"
network: {}

View File

@ -0,0 +1,29 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"sahara_input_data_sources": {
"input_type": "hdfs",
"input_url": "/"
},
"sahara_output_data_sources": {
"output_type": "hdfs",
"output_url_prefix": "/out_"
},
"network": {}
}
}
]
}

View File

@ -0,0 +1,20 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 1
sahara_input_data_sources:
input_type: "hdfs"
input_url: "/"
sahara_output_data_sources:
output_type: "hdfs"
output_url_prefix: "/out_"
network: {}

View File

@ -0,0 +1,30 @@
{% set flavor_name = flavor_name or "m1.tiny" %}
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 1,
"concurrency": 1
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"servers": {
"flavor": {
"name": "{{flavor_name}}"
},
"image": {
"name": "^cirros.*-disk$"
},
"servers_per_tenant": 2
}
}
}
]
}

View File

@ -0,0 +1,20 @@
{% set flavor_name = flavor_name or "m1.tiny" %}
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 1
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 2
servers:
flavor:
name: "{{flavor_name}}"
image:
name: "^cirros.*-disk$"
servers_per_tenant: 2

View File

@ -0,0 +1,24 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 1
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"stacks": {
"stacks_per_tenant": 2,
"resources_per_stack": 10
}
}
}
]
}

View File

@ -0,0 +1,16 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 1
context:
users:
tenants: 1
users_per_tenant: 1
stacks:
stacks_per_tenant: 2
resources_per_stack: 10

View File

@ -0,0 +1,28 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 6,
"concurrency": 3
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"roles": [
"admin"
],
"swift_objects": {
"containers_per_tenant": 1,
"objects_per_container": 10,
"object_size": 1024
}
}
}
]
}

View File

@ -0,0 +1,19 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 6
concurrency: 3
context:
users:
tenants: 1
users_per_tenant: 1
roles:
- "admin"
swift_objects:
containers_per_tenant: 1
objects_per_container: 10
object_size: 1024

View File

@ -0,0 +1,40 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
}
}
},
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2,
"resource_management_workers": 1,
"project_domain": "project",
"user_domain": "demo",
"user_choice_method": "random"
}
}
}
]
}

View File

@ -0,0 +1,28 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
resource_management_workers: 1
project_domain: "project"
user_domain: "demo"
user_choice_method: "random"

View File

@ -0,0 +1,21 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"volume_types": ["test"]
}
}
]
}

View File

@ -0,0 +1,15 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
volume_types:
- test

View File

@ -0,0 +1,24 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"volumes": {
"size": 1,
"volumes_per_tenant": 4
}
}
}
]
}

View File

@ -0,0 +1,16 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
volumes:
size: 1
volumes_per_tenant: 4

View File

@ -0,0 +1,23 @@
{
"Dummy.openstack": [
{
"args": {
"sleep": 0.1
},
"runner": {
"type": "constant",
"times": 4,
"concurrency": 2
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 2
},
"zones": {
"zones_per_tenant": 1
}
}
}
]
}

View File

@ -0,0 +1,15 @@
---
Dummy.openstack:
-
args:
sleep: 0.1
runner:
type: "constant"
times: 4
concurrency: 2
context:
users:
tenants: 1
users_per_tenant: 2
zones:
zones_per_tenant: 1

View File

@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import inspect
import json
import mock
import os
@ -21,17 +22,18 @@ import traceback
import yaml
import rally
from rally import api
from rally.task import context
from rally.task import engine
from rally.task import scenario
from tests.unit import test
RALLY_PATH = os.path.join(os.path.dirname(rally.__file__), os.pardir)
class TaskSampleTestCase(test.TestCase):
samples_path = os.path.join(
os.path.dirname(__file__),
os.pardir, os.pardir, os.pardir,
"samples", "tasks")
samples_path = os.path.join(RALLY_PATH, "samples", "tasks")
def setUp(self):
super(TaskSampleTestCase, self).setUp()
@ -145,3 +147,18 @@ class TaskSampleTestCase(test.TestCase):
"Following sample task filenames contain "
"underscores (_) but must use dashes (-) instead: "
"{}".format(bad_filenames))
def test_context_samples_found(self):
all_plugins = context.Context.get_all()
context_samples_path = os.path.join(self.samples_path, "contexts")
for p in all_plugins:
# except contexts which belongs to tests module
if not inspect.getfile(p).startswith(
os.path.dirname(rally.__file__)):
continue
file_name = p.get_name().replace("_", "-")
file_path = os.path.join(context_samples_path, file_name)
if not os.path.exists("%s.json" % file_path):
self.fail(("There is no json sample file of %s,"
"plugin location: %s" %
(p.get_name(), p.__module__)))