test_mtu_sized_frames: sanity check connectivity first
When the test case fails, it's often hard to distinguish between the
actual case of MTU-sized frames not allowed through without
fragmentation, or a general connectivity issue that affects the server.
To simplify debugging failures, the patch makes tempest first validate
that connectivity works at all for the instance before switching to
validating a more specific scenario.
Change-Id: I8f254ff79806533bf8a297e1bc07ed2216d8940c
diff --git a/tempest/scenario/test_network_basic_ops.py b/tempest/scenario/test_network_basic_ops.py
index 2d38b06..2d5c8e1 100644
--- a/tempest/scenario/test_network_basic_ops.py
+++ b/tempest/scenario/test_network_basic_ops.py
@@ -416,6 +416,10 @@
def test_mtu_sized_frames(self):
"""Validate that network MTU sized frames fit through."""
self._setup_network_and_servers()
+ # first check that connectivity works in general for the instance
+ self.check_public_network_connectivity(should_connect=True)
+ # now that we checked general connectivity, test that full size frames
+ # can also pass between nodes
self.check_public_network_connectivity(
should_connect=True, mtu=self.network['mtu'])