[LTP] [RFC PATCH v6 0/2] *** Rmmod causes failures of netns based tests ***
Petr Vorel
pvorel@suse.cz
Fri Jun 16 03:56:50 CEST 2017
Hi Alexey,
this patch tries to fix problems with dhcp based tests when they call TCONF:
/opt/ltp/testscripts/network.sh -6
dhcpd 1 TCONF: 'dhcpd' not found
...
cat: /sys/class/net/ltp_ns_veth2/address: No such file or directory
With this patchset:
/opt/ltp/testscripts/network.sh -6
dhcpd 1 TCONF: 'dhcpd' not found
...
ns_exec 0 TINFO : no namespace entries in /proc/2699/ns/
It doesn't help to kill also ns_exec. reset_ltp_netspace() is obviously wrong.
IMHO without trying to manually call reset_ltp_netspace() we should have better
detection of netns problems in init_ltp_netspace().
Kind regards,
Petr
Petr Vorel (2):
lib/test_net.sh: reset_ltp_netspace()
network/dhcp: Fix netns after removing kernel module
testcases/lib/test_net.sh | 10 +++++++++-
testcases/network/dhcp/dhcp_lib.sh | 2 +-
2 files changed, 10 insertions(+), 2 deletions(-)
--
2.12.2
More information about the ltp
mailing list