File: task.yaml

package info (click to toggle)
rally-openstack 3.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,928 kB
  • sloc: python: 53,131; sh: 262; makefile: 38
file content (163 lines) | stat: -rw-r--r-- 4,536 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{%- set floating_network = floating_network|default("public") %}
{%- set image_name = image_name|default("^(cirros.*-disk|TestVM)$") %}
{%- set flavor_name = flavor_name|default("m1.tiny") %}

{%- set availability_zone = availability_zone|default("default") %}

{%- set enable_auth = enable_auth|default(true) %}
{%- set enable_nova = enable_nova|default(true) %}
{%- set enable_glance = enable_glance|default(true) %}
{%- set enable_cinder = enable_cinder|default(true) %}
{%- set enable_neutron = enable_neutron|default(true) %}

{%- set load = load|default(1) %}

{%- set enable_admin = enable_admin|default(false) %}

---
  version: 2
  title: "Collect Key OpenStack Metrics"
  description: |
    Use this task to collect performance metrics for key OpenStack projects
    You can use arguments to specify image, flavor, load and what services
    should be tested
  subtasks:
    {% if enable_auth %}
    -
      title: "Test performance of authentication"
      scenario:
        Authenticate.keystone: {}
      runner:
        constant:
          times: {{ load }}
          concurrency: {{ load }}
    {% endif %}
    {% if enable_nova %}
    -
      title: "Test performance of key VM operations"
      scenario:
        NovaServers.boot_and_bounce_server:
          flavor:
            name: "{{flavor_name}}"
          image:
            name: "{{image_name}}"
          availability_zone: "{{availability_zone}}"
          force_delete: false
          actions:
            -
              hard_reboot: 1
            -
              soft_reboot: 1
            -
              stop_start: 1
            -
              rescue_unrescue: 1
      runner:
        constant:
          times: {{ load }}
          concurrency: {{ load }}
    -
      title: "Key pair performance"
      workloads:
        -
          scenario:
            NovaKeypair.create_and_delete_keypair: {}
          runner:
            constant:
              times: {{ load }}
              concurrency: {{ load }}
        -
          scenario:
            NovaKeypair.create_and_list_keypairs: {}
          runner:
            constant:
              times: {{ load }}
              concurrency: {{ load }}
    -
      title: "List flavors and servers"
      workloads:
        -
          scenario:
            NovaServers.list_servers:
              detailed: True
          runner:
            constant:
              times: {{ load }}
              concurrency: {{ load }}
        -
          scenario:
            NovaFlavors.list_flavors:
              detailed: True
          runner:
            constant:
              times: {{ load }}
              concurrency: {{ load }}
    {% endif %}

    {% if enable_glance %}
    -
      title: "Glance Image List"
      scenario:
        GlanceImages.list_images:
          detailed: True
      runner:
        constant:
          times: {{ load }}
          concurrency: {{ load }}
    {% endif %}
    {% if enable_neutron %}
    -
      title: "Test Floating Ips"
      scenario:
        NeutronNetworks.create_and_delete_floating_ips:
          floating_network: {{ floating_network }}
          floating_ip_args: {}
      runner:
        constant:
          times: {{ load }}
          concurrency: {{ load }}
    -
      title: "Test Security Groups"
      scenario:
        NeutronSecurityGroup.create_and_delete_security_group_rule:
          security_group_args: {}
          security_group_rule_args: {}
      runner:
        constant:
          times: {{ load }}
          concurrency: {{ load }}
    {% if enable_admin %}
    -
      title: "Test performance networks, subnetworks, routers and interfaces"
      scenario:
        NeutronNetworks.create_and_delete_routers:
          network_create_args: {}
          subnet_create_args: {}
          subnet_cidr_start: "1.1.0.0/30"
          subnets_per_network: 1
          router_create_args: {}
      runner:
        constant:
          times: {{ load }}
          concurrency: {{ load }}
      contexts:
        network: {}
    {% endif %}
    {% endif %}
    {% if enable_cinder %}
    -
      title: "Cinder volumes create, delete, attach and detach"
      scenario:
        CinderVolumes.create_and_attach_volume:
          size: 1
          image:
            name: {{ image_name }}
          flavor:
            name: {{ flavor_name }}
          create_vm_params:
            availability_zone: "{{ availability_zone }}"
      runner:
        constant:
          times: {{ load }}
          concurrency: {{ load }}
    {% endif %}