Oleksii Zhurba | 0aa4670 | 2018-02-07 16:17:39 -0600 | [diff] [blame^] | 1 | {% set flavor_name = flavor_name or "m1.tiny" %} |
| 2 | {% set image_name = image_name or "Test2VM" %} |
| 3 | {% set volume_type = volume_type or "default" %} |
| 4 | {% set availability_zone = "nova" %} |
| 5 | {% set concurrency = 10 %} |
| 6 | {% set volume_size = 1 %} |
| 7 | {% set times = 100 %} |
| 8 | {% set users = 2 %} |
| 9 | {% set tenants = 3 %} |
| 10 | {% set rbd_image = "/home/rally/cvp-configuration/cirros-0.3.4-x86_64-disk.img" %} |
| 11 | {% set heat_template = "/home/rally/cvp-configuration/rally/default.yaml.template" %} |
| 12 | { |
| 13 | "KeystoneBasic.authenticate_user_and_validate_token": [ |
| 14 | { |
| 15 | "args": {}, |
| 16 | "runner": { |
| 17 | "type": "constant", |
| 18 | "times": {{times}}, |
| 19 | "concurrency": {{concurrency}} |
| 20 | }, |
| 21 | "sla": { |
| 22 | "failure_rate": { |
| 23 | "max": 0 |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | ], |
| 28 | "NovaServers.boot_and_associate_floating_ip": [ |
| 29 | { |
| 30 | "runner": { |
| 31 | "type": "constant", |
| 32 | "concurrency": {{concurrency}}, |
| 33 | "times": {{times}} |
| 34 | }, |
| 35 | "args": { |
| 36 | "flavor": { |
| 37 | "name": "{{flavor_name}}" |
| 38 | }, |
| 39 | "image": { |
| 40 | "name": "{{image_name}}" |
| 41 | }, |
| 42 | "auto_assign_nic": true, |
| 43 | "availability_zone": "{{availability_zone}}" |
| 44 | }, |
| 45 | "context": { |
| 46 | "users": { |
| 47 | "users_per_tenant": {{users}}, |
| 48 | "tenants": {{tenants}} |
| 49 | }, |
| 50 | "network": {}, |
| 51 | "quotas": { |
| 52 | "nova": { |
| 53 | "instances": -1, |
| 54 | "cores": -1, |
| 55 | "ram": -1, |
| 56 | "floating_ips": -1, |
| 57 | "key_pairs": -1, |
| 58 | "security_groups": -1, |
| 59 | "security_group_rules": -1 |
| 60 | } |
| 61 | } |
| 62 | }, |
| 63 | "sla": { |
| 64 | "failure_rate": { |
| 65 | "max": 0 |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | ], |
| 70 | "NovaServers.boot_and_list_server": [ |
| 71 | { |
| 72 | "args": { |
| 73 | "flavor": { |
| 74 | "name": "{{flavor_name}}" |
| 75 | }, |
| 76 | "image": { |
| 77 | "name": "{{image_name}}" |
| 78 | }, |
| 79 | "detailed": true, |
| 80 | "auto_assign_nic": true, |
| 81 | "availability_zone": "{{availability_zone}}" |
| 82 | }, |
| 83 | "runner": { |
| 84 | "type": "constant", |
| 85 | "concurrency": {{concurrency}}, |
| 86 | "times": {{times}} |
| 87 | }, |
| 88 | "context": { |
| 89 | "users": { |
| 90 | "tenants": {{users}}, |
| 91 | "users_per_tenant": {{tenants}} |
| 92 | }, |
| 93 | "network": {}, |
| 94 | "quotas": { |
| 95 | "nova": { |
| 96 | "instances": -1, |
| 97 | "cores": -1, |
| 98 | "ram": -1, |
| 99 | "floating_ips": -1, |
| 100 | "key_pairs": -1, |
| 101 | "security_groups": -1, |
| 102 | "security_group_rules": -1 |
| 103 | } |
| 104 | } |
| 105 | }, |
| 106 | "sla": { |
| 107 | "failure_rate": { |
| 108 | "max": 0 |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | ], |
| 113 | "NovaServers.boot_server_from_volume_and_delete": [ |
| 114 | { |
| 115 | "args": { |
| 116 | "flavor": { |
| 117 | "name": "{{flavor_name}}" |
| 118 | }, |
| 119 | "image": { |
| 120 | "name": "{{image_name}}" |
| 121 | }, |
| 122 | "volume_size": {{volume_size}}, |
| 123 | "volume_type": "{{volume_type}}", |
| 124 | "force_delete": false, |
| 125 | "auto_assign_nic": true, |
| 126 | "availability_zone": "{{availability_zone}}" |
| 127 | }, |
| 128 | "runner": { |
| 129 | "type": "constant", |
| 130 | "concurrency": {{concurrency}}, |
| 131 | "times": {{times}} |
| 132 | }, |
| 133 | "context": { |
| 134 | "users": { |
| 135 | "tenants": {{users}}, |
| 136 | "users_per_tenant": {{tenants}} |
| 137 | }, |
| 138 | "network": {}, |
| 139 | "quotas": { |
| 140 | "nova": { |
| 141 | "instances": -1, |
| 142 | "cores": -1, |
| 143 | "ram": -1, |
| 144 | "floating_ips": -1, |
| 145 | "key_pairs": -1, |
| 146 | "security_groups": -1, |
| 147 | "security_group_rules": -1 |
| 148 | }, |
| 149 | "cinder": { |
| 150 | "volumes": -1 |
| 151 | } |
| 152 | } |
| 153 | }, |
| 154 | "sla": { |
| 155 | "failure_rate": { |
| 156 | "max": 0 |
| 157 | } |
| 158 | } |
| 159 | } |
| 160 | ], |
| 161 | "NeutronNetworks.create_and_delete_networks": [ |
| 162 | { |
| 163 | "args": { |
| 164 | "network_create_args": {} |
| 165 | }, |
| 166 | "runner": { |
| 167 | "type": "constant", |
| 168 | "concurrency": {{concurrency}}, |
| 169 | "times": {{times}} |
| 170 | }, |
| 171 | "context": { |
| 172 | "users": { |
| 173 | "tenants": {{users}}, |
| 174 | "users_per_tenant": {{tenants}} |
| 175 | }, |
| 176 | "quotas": { |
| 177 | "neutron": { |
| 178 | "network": -1 |
| 179 | } |
| 180 | } |
| 181 | }, |
| 182 | "sla": { |
| 183 | "failure_rate": { |
| 184 | "max": 0 |
| 185 | } |
| 186 | } |
| 187 | } |
| 188 | ], |
| 189 | "NeutronNetworks.create_and_delete_ports": [ |
| 190 | { |
| 191 | "args": { |
| 192 | "network_create_args": {}, |
| 193 | "port_create_args": {}, |
| 194 | "ports_per_network": 10 |
| 195 | }, |
| 196 | "runner": { |
| 197 | "type": "constant", |
| 198 | "concurrency": {{concurrency}}, |
| 199 | "times": {{times}} |
| 200 | }, |
| 201 | "context": { |
| 202 | "network": {}, |
| 203 | "users": { |
| 204 | "tenants": {{users}}, |
| 205 | "users_per_tenant": {{tenants}} |
| 206 | }, |
| 207 | "quotas": { |
| 208 | "neutron": { |
| 209 | "network": -1, |
| 210 | "port": -1 |
| 211 | } |
| 212 | } |
| 213 | }, |
| 214 | "sla": { |
| 215 | "failure_rate": { |
| 216 | "max": 0 |
| 217 | } |
| 218 | } |
| 219 | } |
| 220 | ], |
| 221 | "NeutronNetworks.create_and_delete_routers": [ |
| 222 | { |
| 223 | "args": { |
| 224 | "network_create_args": {}, |
| 225 | "subnet_create_args": {}, |
| 226 | "subnet_cidr_start": "1.1.0.0/30", |
| 227 | "subnets_per_network": 2, |
| 228 | "router_create_args": {} |
| 229 | }, |
| 230 | "runner": { |
| 231 | "type": "constant", |
| 232 | "concurrency": {{concurrency}}, |
| 233 | "times": {{times}} |
| 234 | }, |
| 235 | "context": { |
| 236 | "network": {}, |
| 237 | "users": { |
| 238 | "tenants": {{users}}, |
| 239 | "users_per_tenant": {{tenants}} |
| 240 | }, |
| 241 | "quotas": { |
| 242 | "neutron": { |
| 243 | "network": -1, |
| 244 | "subnet": -1, |
| 245 | "router": -1 |
| 246 | } |
| 247 | } |
| 248 | }, |
| 249 | "sla": { |
| 250 | "failure_rate": { |
| 251 | "max": 0 |
| 252 | } |
| 253 | } |
| 254 | } |
| 255 | ], |
| 256 | "CinderVolumes.create_and_attach_volume": [ |
| 257 | { |
| 258 | "args": { |
| 259 | "size": {{volume_size}}, |
| 260 | "image": { |
| 261 | "name": "{{image_name}}" |
| 262 | }, |
| 263 | "flavor": { |
| 264 | "name": "{{flavor_name}}" |
| 265 | }, |
| 266 | "create_volume_params": { |
| 267 | }, |
| 268 | "auto_assign_nic": true, |
| 269 | "availability_zone": "{{availability_zone}}" |
| 270 | }, |
| 271 | "runner": { |
| 272 | "type": "constant", |
| 273 | "concurrency": {{concurrency}}, |
| 274 | "times": {{times}} |
| 275 | }, |
| 276 | "context": { |
| 277 | "users": { |
| 278 | "tenants": {{users}}, |
| 279 | "users_per_tenant": {{tenants}} |
| 280 | }, |
| 281 | "network": {}, |
| 282 | "quotas": { |
| 283 | "cinder": { |
| 284 | "volumes": -1 |
| 285 | } |
| 286 | } |
| 287 | }, |
| 288 | "sla": { |
| 289 | "failure_rate": { |
| 290 | "max": 0 |
| 291 | } |
| 292 | } |
| 293 | } |
| 294 | ], |
| 295 | "CinderVolumes.create_and_delete_snapshot": [ |
| 296 | { |
| 297 | "args": { |
| 298 | "force": false |
| 299 | }, |
| 300 | "runner": { |
| 301 | "type": "constant", |
| 302 | "concurrency": {{concurrency}}, |
| 303 | "times": {{times}} |
| 304 | }, |
| 305 | "context": { |
| 306 | "users": { |
| 307 | "tenants": {{users}}, |
| 308 | "users_per_tenant": {{tenants}} |
| 309 | }, |
| 310 | "volumes": { |
| 311 | "size": {{volume_size}} |
| 312 | }, |
| 313 | "quotas": { |
| 314 | "cinder": { |
| 315 | "snapshots": -1, |
| 316 | "volumes": -1 |
| 317 | } |
| 318 | } |
| 319 | }, |
| 320 | "sla": { |
| 321 | "failure_rate": { |
| 322 | "max": 0 |
| 323 | } |
| 324 | } |
| 325 | } |
| 326 | ], |
| 327 | "CinderVolumes.create_and_upload_volume_to_image": [ |
| 328 | { |
| 329 | "args": { |
| 330 | "size": {{volume_size}}, |
| 331 | "force": false, |
| 332 | "container_format": "bare", |
| 333 | "disk_format": "raw", |
| 334 | "do_delete": true, |
| 335 | "image": { |
| 336 | "name": "{{image_name}}" |
| 337 | } |
| 338 | }, |
| 339 | "runner": { |
| 340 | "type": "constant", |
| 341 | "concurrency": {{concurrency}}, |
| 342 | "times": {{times}} |
| 343 | }, |
| 344 | "context": { |
| 345 | "users": { |
| 346 | "tenants": {{users}}, |
| 347 | "users_per_tenant": {{tenants}} |
| 348 | }, |
| 349 | "quotas": { |
| 350 | "cinder": { |
| 351 | "snapshots": -1, |
| 352 | "volumes": -1 |
| 353 | } |
| 354 | } |
| 355 | }, |
| 356 | "sla": { |
| 357 | "failure_rate": { |
| 358 | "max": 0 |
| 359 | } |
| 360 | } |
| 361 | } |
| 362 | ], |
| 363 | "GlanceImages.create_and_delete_image": [ |
| 364 | { |
| 365 | "args": { |
| 366 | "image_location": "{{rbd_image}}", |
| 367 | "container_format": "bare", |
| 368 | "disk_format": "qcow2" |
| 369 | }, |
| 370 | "runner": { |
| 371 | "type": "constant", |
| 372 | "concurrency": {{concurrency}}, |
| 373 | "times": {{times}} |
| 374 | }, |
| 375 | "context": { |
| 376 | "users": { |
| 377 | "tenants": {{users}}, |
| 378 | "users_per_tenant": {{tenants}} |
| 379 | } |
| 380 | }, |
| 381 | "sla": { |
| 382 | "failure_rate": { |
| 383 | "max": 0 |
| 384 | } |
| 385 | } |
| 386 | } |
| 387 | ], |
| 388 | "HeatStacks.create_and_delete_stack": [ |
| 389 | { |
| 390 | "args": { |
| 391 | "template_path": "{{heat_template}}" |
| 392 | }, |
| 393 | "runner": { |
| 394 | "type": "constant", |
| 395 | "concurrency": {{concurrency}}, |
| 396 | "times": {{times}} |
| 397 | }, |
| 398 | "context": { |
| 399 | "users": { |
| 400 | "tenants": {{users}}, |
| 401 | "users_per_tenant": {{tenants}} |
| 402 | } |
| 403 | }, |
| 404 | "sla": { |
| 405 | "failure_rate": { |
| 406 | "max": 0 |
| 407 | } |
| 408 | } |
| 409 | } |
| 410 | ], |
| 411 | "KeystoneBasic.create_tenant_with_users": [ |
| 412 | { |
| 413 | "args": { |
| 414 | "users_per_tenant": 10 |
| 415 | }, |
| 416 | "runner": { |
| 417 | "type": "constant", |
| 418 | "concurrency": {{concurrency}}, |
| 419 | "times": {{times}} |
| 420 | }, |
| 421 | "sla": { |
| 422 | "failure_rate": { |
| 423 | "max": 0 |
| 424 | } |
| 425 | } |
| 426 | } |
| 427 | ] |
| 428 | } |