[LTP] [PATCH 2/3] test_net.sh: delete netns before testing

Petr Vorel pvorel@suse.cz
Fri Dec 23 12:04:34 CET 2016


Hi Alexey,
> Hmm, could you describe the error you are getting?
> I cannot reproduce it in my environment.

> ...or is it about setting IPv6 address for the second time on the interface,
> because network.sh and test_net.sh are both using the same '-6' option?
> network_settings 1 TINFO : set local addr fd00:1:1:1::2/64
> RTNETLINK answers: File exists
I don't know why (probably bad setup or something on my side), but sometimes it even it's
ltp_ns setup (/var/run/netns/ltp_ns exists), ltp_ns_veth2 device is not available
(directory /sys/class/net/ltp_ns_veth2/ doesn't exist):

/opt/ltp/testscripts/network.sh -6
...
cmdline="ping01.sh -6"
contacts=""
analysis=exit
<<<test_output>>>
cat: /sys/class/net/ltp_ns_veth2/address: No such file or directory
...
ping01 1 TINFO : ping6 with 8 16 32 64 128 256 512 1024 2048 4064 ICMP packets
ping01 1 TFAIL : ping6 -c 3 -s 8 fd00:1:1:1::1 >/dev/null failed unexpectedly

> Moreover, it's not needed to set TST_USE_NETNS.
OK, do I understand that for netns I don't need to setup any variable?

Kind regards,
Petr


More information about the ltp mailing list