Check whether server is located on the requested host
In TestServerMultinode, we create one server on each host,
and we should check whether server is located on the
requested host, e.g., maybe create_server(hostA) ends up
with hostB, and create_server(hostB) ends up with hostA,
and the current check won't find it.
Change-Id: I05522b141163ffec923402cba3b0dbbdbb9b61a3
diff --git a/tempest/scenario/test_server_multinode.py b/tempest/scenario/test_server_multinode.py
index df83063..79067e7 100644
--- a/tempest/scenario/test_server_multinode.py
+++ b/tempest/scenario/test_server_multinode.py
@@ -78,6 +78,8 @@
availability_zone='%(zone)s:%(host_name)s' % host,
wait_until='ACTIVE')
server = self.servers_client.show_server(inst['id'])['server']
+ # ensure server is located on the requested host
+ self.assertEqual(host['host_name'], server['OS-EXT-SRV-ATTR:host'])
servers.append(server)
# make sure we really have the number of servers we think we should