Browse Source

Make tempest config more configurable

Change-Id: I7f0a7dbad1f12f538b8ff07625559161bd74eb4c
Sergey Reshetnyak 2 years ago
parent
commit
c2dc839b19
2 changed files with 35 additions and 15 deletions
  1. 16
    1
      service/files/defaults.yaml
  2. 19
    14
      service/files/tempest.conf.j2

+ 16
- 1
service/files/defaults.yaml View File

@@ -1,6 +1,21 @@
1 1
 configs:
2 2
   rally:
3
-    openstack_release: mitaka
3
+    tempest:
4
+      openstack_release: mitaka
5
+      compute:
6
+        min_compute_nodes: 2
7
+      compute_feature:
8
+        block_migration_for_live_migration: false
9
+        live_migration: false
10
+        nova_cert: false
11
+        personality: true
12
+      network_feature:
13
+        ipv6: false
14
+        ipv6_subnet_attributes: false
15
+      object_storage_feature:
16
+        discoverability: false
17
+      volume:
18
+        storage_protocol: ceph
4 19
 
5 20
 sources:
6 21
   openstack/rally:

+ 19
- 14
service/files/tempest.conf.j2 View File

@@ -1,21 +1,26 @@
1
-[network-feature-enabled]
2
-ipv6_subnet_attributes = false
3
-ipv6 = false
4
-
5 1
 [compute]
6 2
 min_microversion = 2.1
3
+{% if rally.tempest.openstack_release == "mitaka" %}
4
+max_microversion = 2.25
5
+{% elif rally.tempest.openstack_release == "newton" %}
7 6
 max_microversion = 2.38
8
-min_compute_nodes = 2
7
+{% endif %}
8
+min_compute_nodes = {{ rally.tempest.compute.min_compute_nodes }}
9 9
 
10
-[volume]
11
-build_timeout = 300
12
-storage_protocol = ceph
10
+{% set compute_feature = rally.tempest.compute_feature %}
11
+[compute-feature-enabled]
12
+block_migration_for_live_migration = {{ compute_feature.block_migration_for_live_migration }}
13
+live_migration = {{ compute_feature.live_migration }}
14
+nova_cert = {{ compute_feature.nova_cert }}
15
+personality = {{ compute_feature.personality }}
16
+
17
+{% set network_feature = rally.tempest.network_feature %}
18
+[network-feature-enabled]
19
+ipv6 = {{ network_feature.ipv6 }}
20
+ipv6_subnet_attributes = {{ network_feature.ipv6_subnet_attributes }}
13 21
 
14 22
 [object-storage-feature-enabled]
15
-discoverability = false
23
+discoverability = {{ rally.tempest.object_storage_feature.discoverability }}
16 24
 
17
-[compute-feature-enabled]
18
-nova_cert = false
19
-personality = true
20
-block_migration_for_live_migration = false
21
-live_migration = true
25
+[volume]
26
+storage_protocol = {{ rally.tempest.volume.storage_protocol }}

Loading…
Cancel
Save