{% set flavor_name = "m1.tiny" %}
{% set image_name = "^cirros.*-disk$" %}
{% set smoke = 0 %}

---
  version: 2
  title: Rally task that is called for an evironment with existing users
  description: >
    The task contains various scenarios that do not require admin user
  subtasks:
    -
      title: Test main Cinder actions
      workloads:
        -
          scenario:
            CinderVolumes.create_volume:
              size: 1
          runner:
            constant:
              times: 2
              concurrency: 2
          sla:
            failure_rate:
              max: 0
        -
          scenario:
            CinderVolumes.create_volume:
              size: 1
              image:
                name: {{image_name}}
          runner:
            constant:
              times: 1
              concurrency: 1
          sla:
            failure_rate:
              max: 0
        -
          scenario:
            CinderVolumes.create_snapshot_and_attach_volume:
              volume_type: "lvmdriver-1"
              size:
                min: 1
                max: 1
              image:
                name: {{image_name}}
              flavor:
                name: {{flavor_name}}
          runner:
            constant:
              times: 2
              concurrency: 2
          sla:
            failure_rate:
              max: 0
    -
      title: Test main Nova actions
      workloads:
        -
          scenario:
            NovaServers.boot_and_list_server:
              flavor:
                  name: {{flavor_name}}
              image:
                  name: {{image_name}}
              detailed: True
          runner:
            constant:
              times: 2
              concurrency: 2
          sla:
            failure_rate:
              max: 0

    -
      title: Test main Neutron actions
      workloads:
        -
          scenario:
            NeutronNetworks.create_and_list_networks: {}
          runner:
            constant:
              times: 2
              concurrency: 2
          sla:
            failure_rate:
              max: 0
        -
          scenario:
            NeutronNetworks.create_and_list_subnets:
              subnet_cidr_start: "1.1.0.0/30"
              subnets_per_network: 2
          contexts:
            network: {}
          runner:
            constant:
              times: 2
              concurrency: 2
          sla:
            failure_rate:
              max: 0
        -
          scenario:
            NeutronNetworks.create_and_list_floating_ips:
              floating_network: "public"
              floating_ip_args: {}
          runner:
            constant:
              times: 2
              concurrency: 2
          sla:
            failure_rate:
              max: 0
