The failed information is as follow: Cannot find device "veth16@veth15" netns_child_1.sh 1 TFAIL : FAIL: Unable to ping the Parent1 from Child1 WARNING: kernel is not very fresh, upgrade is recommended. netns_child_2.sh 1 TFAIL : FAIL: Unable to ping Child1NS from Child2NS ! netns_child_1.sh 2 TFAIL : CHILD2 is unable to reach CHILD1 netns_2children 1 TFAIL : netns_two_children_ns.c:126: waitpid() returns 150757, errno 255
this is caused by the wrong device name like"veth16@veth15" so correct the device name. Signed-off-by: Wentao Ma <mawen...@inspur.com> --- testcases/kernel/containers/netns/netns_parent_1.sh | 4 ++-- testcases/kernel/containers/netns/netns_parent_2.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testcases/kernel/containers/netns/netns_parent_1.sh b/testcases/kernel/containers/netns/netns_parent_1.sh index 9398459..bc0f702 100755 --- a/testcases/kernel/containers/netns/netns_parent_1.sh +++ b/testcases/kernel/containers/netns/netns_parent_1.sh @@ -36,8 +36,8 @@ export TST_TOTAL echo 1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/conf/$netdev/proxy_arp create_veth - vnet0=$dev0 - vnet1=$dev1 + vnet0=`echo $dev0 | awk -F@ '{print $1}'` + vnet1=`echo $dev1 | awk -F@ '{print $1}'` if [ -z "$vnet0" -o -z "$vnet1" ] ; then tst_resm TFAIL "Error: unable to create veth pair in $0" exit 1 diff --git a/testcases/kernel/containers/netns/netns_parent_2.sh b/testcases/kernel/containers/netns/netns_parent_2.sh index 349cf9e..fcee38b 100755 --- a/testcases/kernel/containers/netns/netns_parent_2.sh +++ b/testcases/kernel/containers/netns/netns_parent_2.sh @@ -32,8 +32,8 @@ export TST_TOTAL . netns_initialize.sh create_veth - vnet2=$dev0 - vnet3=$dev1 + vnet2=`echo $dev0 | awk -F@ '{print $1}'` + vnet3=`echo $dev1 | awk -F@ '{print $1}'` if [ -z "$vnet2" -o -z "$vnet3" ] ; then tst_resm TFAIL "Error: unable to create veth pair in $0" -- 1.8.3.1 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list