Create autoscaling stack w/o a network
currently tests pick up the first non-router-external network available
to create servers with for the autoscaling test.
Since there could be other tests running at the same time that create
and delete networks, this could lead to test failures as the network
is all of a sudden deleted.
Since this autoscaling test does not actually require actual access
to servers and between them, we can create those servers w/o network
and this speed things up and simplify test setup.
Related-Prod: PRODX-19207
Change-Id: I8ed99c68f8012cd0bf9244f749138ccbd9a3420b
(cherry picked from commit 897fc64ddefa3579c88254509683e78bd7bcab4d)
diff --git a/telemetry_tempest_plugin/scenario/telemetry_integration_gabbits/create_stack.json b/telemetry_tempest_plugin/scenario/telemetry_integration_gabbits/create_stack.json
index 6bb6d30..191f7da 100644
--- a/telemetry_tempest_plugin/scenario/telemetry_integration_gabbits/create_stack.json
+++ b/telemetry_tempest_plugin/scenario/telemetry_integration_gabbits/create_stack.json
@@ -12,7 +12,7 @@
"resource": {
"type": "OS::Nova::Server",
"properties": {
- "networks": [{ "network": "$ENVIRON['NEUTRON_NETWORK']" }],
+ "networks": [{ "allocate_network": "none" }],
"flavor": "$ENVIRON['NOVA_FLAVOR_REF']",
"image": "$ENVIRON['GLANCE_IMAGE_NAME']",
"metadata": {
diff --git a/telemetry_tempest_plugin/scenario/test_telemetry_integration.py b/telemetry_tempest_plugin/scenario/test_telemetry_integration.py
index 3cd7301..7042fa5 100644
--- a/telemetry_tempest_plugin/scenario/test_telemetry_integration.py
+++ b/telemetry_tempest_plugin/scenario/test_telemetry_integration.py
@@ -77,8 +77,6 @@
def _prep_test(self, filename):
admin_auth = self.os_admin.auth_provider.get_auth()
auth = self.os_primary.auth_provider.get_auth()
- networks = self.os_primary.networks_client.list_networks(
- **{'router:external': False, 'fields': 'id'})['networks']
os.environ.update({
"ADMIN_TOKEN": admin_auth[0],
@@ -98,7 +96,6 @@
str(config.CONF.telemetry.sg_core_service_url),
"GLANCE_IMAGE_NAME": self.image_create(),
"NOVA_FLAVOR_REF": config.CONF.compute.flavor_ref,
- "NEUTRON_NETWORK": networks[0].get('id'),
"STACK_NAME": data_utils.rand_name('telemetry'),
})