diff mbox series

[ovs-dev,v2,7/9] system-tests: Verbose cleanup of ports and namespaces.

Message ID 20241030135043.3139987-8-i.maximets@ovn.org
State Superseded
Headers show
Series ipsec: Resiliency to Libreswan failures. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed

Commit Message

Ilya Maximets Oct. 30, 2024, 1:50 p.m. UTC
Removal of ports and network namespaces can take a significant amount
of time, and it is not clear if the test is stuck or actually doing
something during that time.  Add some logging to cleanup commands
to see what is going on.

Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
---
 tests/system-common-macros.at | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Comments

Eelco Chaudron Oct. 31, 2024, 11:03 a.m. UTC | #1
On 30 Oct 2024, at 14:50, Ilya Maximets wrote:

> Removal of ports and network namespaces can take a significant amount
> of time, and it is not clear if the test is stuck or actually doing
> something during that time.  Add some logging to cleanup commands
> to see what is going on.
>
> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>

This looks good to me.

Acked-by: Eelco Chaudron <echaudro@redhat.com>
diff mbox series

Patch

diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at
index e9be021f3..ff86d15cd 100644
--- a/tests/system-common-macros.at
+++ b/tests/system-common-macros.at
@@ -2,10 +2,7 @@ 
 #
 # Delete namespaces from the running OS
 m4_define([DEL_NAMESPACES],
-   [m4_foreach([ns], [$@],
-               [ip netns del ns
-])
-   ]
+   [m4_foreach([ns], [$@], [echo removing namespace ns; ip netns del ns])]
 )
 
 # ADD_NAMESPACES(ns [, ns ... ])
@@ -72,7 +69,7 @@  m4_define([ADD_INT],
 #
 m4_define([ADD_VETH],
     [ AT_CHECK([ip link add $1 type veth peer name ovs-$1 || return 77])
-      on_exit 'ip link del ovs-$1'
+      on_exit 'echo removing interface ovs-$1; ip link del ovs-$1'
       CONFIGURE_VETH_OFFLOADS([$1])
       AT_CHECK([ip link set $1 netns $2])
       AT_CHECK([ip link set dev ovs-$1 up])