Use metadata server grouping as default
Metadata seems like a better way to group instances for autoscaling, so
switch metadata to be the default option. Note that stable/2024.2 and
older versions don't support metadata grouping, so the jobs are defined
to use prefix grouping instead.
Change-Id: Id1c62255e58e9ceeffad2512a3e8e083c3d13f8b
diff --git a/telemetry_tempest_plugin/config.py b/telemetry_tempest_plugin/config.py
index 136356a..e2e1766 100644
--- a/telemetry_tempest_plugin/config.py
+++ b/telemetry_tempest_plugin/config.py
@@ -94,14 +94,19 @@
default=15,
help="Scrape interval configured for prometheus. This can "
"be used in test cases to properly configure autoscaling"),
- cfg.StrOpt('autoscaling_instance_grouping',
- default='prefix',
- choices=['prefix', 'metadata'],
- help="How to group instances for autoscaling testing. "
- "'prefix' relies on the instances having a common string "
- "at the start of their name. 'metadata' is a new and "
- "prefered way of grouping since 2024.2 relying on "
- "metering.server_group instance metadata")
+ cfg.StrOpt(
+ 'autoscaling_instance_grouping',
+ default='metadata',
+ choices=[
+ ('prefix', 'Use a common string at the start of instance names to '
+ 'group instances'),
+ ('metadata', 'Use metering.server_group instance metadata to '
+ 'group instances. This is preferred method since '
+ '2025.1')
+ ],
+ help="The method to group instances for autoscaling testing. Note "
+ "that this option affects only tests with prometheus metric "
+ "backend")
]
telemetry_services_opts = [