Merge "Log port details when FloatingIP port details test fails"
diff --git a/neutron_tempest_plugin/scenario/test_floatingip.py b/neutron_tempest_plugin/scenario/test_floatingip.py
index 38833cd..be57475 100644
--- a/neutron_tempest_plugin/scenario/test_floatingip.py
+++ b/neutron_tempest_plugin/scenario/test_floatingip.py
@@ -310,10 +310,12 @@
timed_out = int(time.time()) - start >= timeout
if status != lib_constants.PORT_STATUS_DOWN and timed_out:
+ port_id = fip.get("port_id")
+ port = self.os_admin.network_client.show_port(port_id)['port']
message = ('Floating IP %s attached port status failed to '
'transition to DOWN (current status %s) within '
- 'the required time (%s s).' %
- (fip_id, status, timeout))
+ 'the required time (%s s). Port details: %s' %
+ (fip_id, status, timeout, port))
raise exceptions.TimeoutException(message)
return fip