Revert "Add server name check for multiple creations"
This reverts commit b59f458f2823bfcfd8a530003d34e912110c2f3a.
This breaks the nova-cells-v1 job since the cells v1 API
does not honor the same multi-create instance name format.
Furthermore, prior to Rocky [1], the
multi_instance_display_name_template config option could be used to
customize the display name for multiple servers in a single request.
Since Tempest is branchless, this means deployments older than Rocky
could now fail this test if they are customizing that option.
Really, the change to assert the server names shouldn't be possible
until the nova pike series enters extended maintenance mode since that
would be the last branch that supports the
multi_instance_display_name_template config option.
[1] https://review.openstack.org/499612/
Change-Id: Ia9273be6bf9fd55822dfe46f56503f70953c3ff3
Closes-Bug: #1776684
diff --git a/tempest/api/compute/servers/test_multiple_create.py b/tempest/api/compute/servers/test_multiple_create.py
index b75306e..059454d 100644
--- a/tempest/api/compute/servers/test_multiple_create.py
+++ b/tempest/api/compute/servers/test_multiple_create.py
@@ -23,24 +23,18 @@
@decorators.idempotent_id('61e03386-89c3-449c-9bb1-a06f423fd9d1')
def test_multiple_create(self):
tenant_network = self.get_tenant_network()
- server_names = set()
body, servers = compute.create_test_server(
self.os_primary,
- name='VM',
wait_until='ACTIVE',
min_count=2,
tenant_network=tenant_network)
for server in servers:
self.addCleanup(self.servers_client.delete_server, server['id'])
- server_names.add(server['name'])
# NOTE(maurosr): do status response check and also make sure that
# reservation_id is not in the response body when the request send
# contains return_reservation_id=False
self.assertNotIn('reservation_id', body)
self.assertEqual(2, len(servers))
- # NOTE: If specifying a server name on the request API,
- # server names should be "(name)-(index)" on Nova API side.
- self.assertEqual(set(['VM-1', 'VM-2']), server_names)
@decorators.idempotent_id('864777fb-2f1e-44e3-b5b9-3eb6fa84f2f7')
def test_multiple_create_with_reservation_return(self):