From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1U1HEq-000371-2E for ltp-list@lists.sourceforge.net; Fri, 01 Feb 2013 14:05:08 +0000 Received: from mpbam6ip2.mphasis.com ([203.12.223.66]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1U1HEl-0006Q8-Pv for ltp-list@lists.sourceforge.net; Fri, 01 Feb 2013 14:05:07 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 1 Feb 2013 19:34:21 +0530 Message-ID: From: "Bhushan Kumar" Subject: [LTP] LTP] [PATCH ]: network stress interfaces part of the LTP stress fails List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1948027876105416113==" Errors-To: ltp-list-bounces@lists.sourceforge.net To: ltp-list@lists.sourceforge.net This is a multi-part message in MIME format. --===============1948027876105416113== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CE0085.08D7B687" This is a multi-part message in MIME format. ------_=_NextPart_001_01CE0085.08D7B687 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All , = Description of problem: = I am getting error while running if4-mtu-change and if6-updown network s= tress interfaces test case from LTP version 20120903 (ltp-full-20120903.t= ar) i.e. on Linux 3.2 kernel. Below are the outputs for error. = = The Network stress interfaces part of the LTP stress fails. = network_stress.interface:if4-mtu-change FAIL 2 = network_stress.interface:if6-updown FAIL 2 = = Below are the cause for failing above mentioned testcase: = if4-mtu-change01 0 TINFO : Verify the IPv4 connectivity is not broken= when ifconfig command changes MTU 128 times every 5 seconds if4-mtu-change01 1 TFAIL : eth1 is broken. if4-mtu-change02 0 TINFO : Verify the IPv4 connectivity is not broken= when ip command changes MTU 128 times every 5 seconds if4-mtu-change02 2 TBROK : Test Link 0 is somthing wrong. = if6-updown 1 TBROK : Link-local address is not found at eth1 on the r= emote host = Suggested Code changes: = To resolve above mentioned error by making changes in ltp-full-2012090= 3/testcases/network/stress/interface/if4-mtu-change and ltp-full-20120903= /testcases/network/stress/interface/if6-updown b/ltp-full-20120903/testcase= s/network/stress/interface/if6-updown file. Below are the code changes: = = diff -Nurp a/ltp-full-20120903/testcases/network/stress/interface/if4-mtu-c= hange b/ltp-full-20120903/testcases/network/stress/interface/if4-mtu-change --- a/ltp-full-20120903/testcases/network/stress/interface/if4-mtu-change = 2013-01-09 02:07:21.000000000 -0700 +++ b/ltp-full-20120903/testcases/network/stress/interface/if4-mtu-change = 2013-02-01 05:09:51.000000000 -0700 @@ -190,6 +190,7 @@ test_body() = # Check the connctivity check_icmpv4_connectivity $lhost_ifname $rhost_ipv4addr + sleep 5 if [ $? -ne 0 ]; then tst_resm TBROK "Test Link $LINK_NUM is somthing wrong." return 1 @@ -237,6 +238,7 @@ test_body() = # Check the connectivity again check_icmpv4_connectivity $lhost_ifname $rhost_ipv4addr + sleep 5 if [ $? -ne 0 ]; then tst_resm TFAIL "$lhost_ifname is broken." return 1 diff -Nurp a/ltp-full-20120903/testcases/network/stress/interface/if6-updow= n b/ltp-full-20120903/testcases/network/stress/interface/if6-updown --- a/ltp-full-20120903/testcases/network/stress/interface/if6-updown 201= 3-01-09 02:07:21.000000000 -0700 +++ b/ltp-full-20120903/testcases/network/stress/interface/if6-updown 201= 3-02-01 05:12:40.000000000 -0700 @@ -93,7 +93,7 @@ do_setup() # Initialize the interfaces initialize_if lhost ${LINK_NUM} initialize_if rhost ${LINK_NUM} - + sleep 5 # Get the Interface name of local host lhost_ifname=3D`get_ifname lhost ${LINK_NUM}` if [ $? -ne 0 ]; then = After the mentioned changes I got output = = <<>> /opt/ltp/testcases/bin/bg_tcp_traffic: line 269: $2: unbound variable if4-mtu-change01 0 TINFO : Verify the IPv4 connectivity is not broken= when ifconfig command changes MTU 128 times every 5 seconds /opt/ltp/testcases/bin/bg_tcp_traffic: line 269: $2: unbound variable if4-mtu-change01 1 TPASS : Test is finished correctly. if4-mtu-change02 0 TINFO : Verify the IPv4 connectivity is not broken= when ip command changes MTU 128 times every 5 seconds if4-mtu-change02 2 TPASS : Test is finished correctly. <<>> tag=3Dif6-updown stime=3D1359722982 cmdline=3D" if6-updown" contacts=3D"" analysis=3Dexit <<>> if6-updown01 0 TINFO : Verify the IPv6 connectivity is not broken whe= n the ifconfig command ups, then downs an interface 128 times if6-updown01 1 TPASS : Test is finished successfully. if6-updown02 0 TINFO : Verify the IPv6 connectivity is not broken whe= n the ip command ups, then downs an interface 128 times if6-updown02 2 TPASS : Test is finished successfully. incrementing stop <<>> initiation_status=3D"ok" duration=3D1449 termination_type=3Dexited termination_id=3D0 corefile=3Dno cutime=3D103 cstime=3D456 <<>> = Could you please let me know that above code changes are valid or not ? Ple= ase suggest me if there are any other solutions to resolve above error. Any help would be appreciated !!!! = Thanks, Bhushan = = = Information transmitted by this e-mail is proprietary to MphasiS, its assoc= iated companies and/ or its customers and is intended = for use only by the individual or entity to which it is addressed, and may = contain information that is privileged, confidential or = exempt from disclosure under applicable law. If you are not the intended re= cipient or it appears that this mail has been forwarded = to you without proper authority, you are notified that any use or dissemina= tion of this information in any manner is strictly = prohibited. In such cases, please notify us immediately at mailmaster@mphas= is.com and delete this mail from your records. ------_=_NextPart_001_01CE0085.08D7B687 MIME-Version: 1.0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi All ,=

 

Description of problem:

 

I am getting error while= running   if4-mtu-change and if6-updown  network stress int= erfaces test case  from LTP version  20120903 (ltp-full-20120903.= tar) i.e.  on Linux 3.2 kernel. Below are the outputs for error= .

 

 

The Network stress interfaces part of the LTP stress fails.

 

network_stress.interface:if4-mtu-change     =             FAIL&nbs= p;      2   

network_stress.interface:if6-updown     &nbs= p;            &= nbsp;  FAIL       2 


 

Below are the cause for failing above mentioned testcase:

 

if4-mtu-change01    0  TINFO  :  Verify= the IPv4 connectivity is not broken when ifconfig command changes MTU 128 = times every 5 seconds

if4-mtu-change01    1  TFAIL  :  eth1 i= s broken.

if4-mtu-change02    0  TINFO  :  Verify= the IPv4 connectivity is not broken when ip command changes MTU 128 times = every 5 seconds

if4-mtu-change02    2  TBROK  :  Test L= ink 0 is somthing wrong.

 

if6-updown    1  TBROK  :  Link-local a= ddress is not found at eth1 on the remote host

 

Suggested Code changes:

 

To  resolve above mentioned  error  by making &n= bsp;changes in  ltp-full-20120903/testcases/network/stress/interface/i= f4-mtu-change  and  ltp-full-20120903/testcases/network/stress/in= terface/if6-updown b/ltp-full-20120903/testcases/network/stress/interface/i= f6-updown  file. Below are the code changes:

 

 

diff -Nurp a/ltp-full-20120903/testcases/network/stress/interface/if4= -mtu-change b/ltp-full-20120903/testcases/network/stress/interface/if4-mtu-= change

--- a/ltp-full-20120903/testcases/network/stress/interface/if4-mtu-ch= ange       2013-01-09 02:07:21.000000000 -070= 0

+++ b/ltp-full-20120903/testcases/network/stress/interface/if4-mtu-ch= ange       2013-02-01 05:09:51.000000000 -070= 0

@@ -190,6 +190,7 @@ test_body()

 

     # Check the connctivity

     check_icmpv4_connectivity $lhost_ifname $rho= st_ipv4addr

+    sleep 5

     if [ $? -ne 0 ]; then

        tst_resm TBROK "Test Link = $LINK_NUM is somthing wrong."

        return 1

@@ -237,6 +238,7 @@ test_body()

 

     # Check the connectivity again

     check_icmpv4_connectivity $lhost_ifname $rho= st_ipv4addr

+    sleep 5

     if [ $? -ne 0 ]; then

        tst_resm TFAIL "$lhost_ifn= ame is broken."

        return 1

diff -Nurp a/ltp-full-20120903/testcases/network/stress/interface/if6= -updown b/ltp-full-20120903/testcases/network/stress/interface/if6-updown

--- a/ltp-full-20120903/testcases/network/stress/interface/if6-updown=    2013-01-09 02:07:21.000000000 -0700

+++ b/ltp-full-20120903/testcases/network/stress/interface/if6-updown=    2013-02-01 05:12:40.000000000 -0700

@@ -93,7 +93,7 @@ do_setup()

     # Initialize the interfaces

     initialize_if lhost ${LINK_NUM}

     initialize_if rhost ${LINK_NUM}

-

+    sleep 5

     # Get the Interface name of local host

     lhost_ifname=3D`get_ifname lhost ${LINK_NUM}= `

     if [ $? -ne 0 ]; then

 

After the mentioned changes I got output

 

<<<test_output>>>

/opt/ltp/testcases/bin/bg_tcp_traffic: line 269: $2: unbound variable=

if4-mtu-change01    0  TINFO  :  Verify= the IPv4 connectivity is not broken when ifconfig command changes MTU 128 = times every 5 seconds

/opt/ltp/testcases/bin/bg_tcp_traffic: line 269: $2: unbound variable=

if4-mtu-change01    1  TPASS  :  Test i= s finished correctly.

if4-mtu-change02    0  TINFO  :  Verify= the IPv4 connectivity is not broken when ip command changes MTU 128 times = every 5 seconds

if4-mtu-change02    2  TPASS  :  Test i= s finished correctly.

<<<execution_status>>>

tag=3Dif6-updown stime=3D1359722982

cmdline=3D" if6-updown"

contacts=3D""

analysis=3Dexit

<<<test_output>>>

if6-updown01    0  TINFO  :  Verify the= IPv6 connectivity is not broken when the ifconfig command ups, then downs = an interface 128 times

if6-updown01    1  TPASS  :  Test is fi= nished successfully.

if6-updown02    0  TINFO  :  Verify the= IPv6 connectivity is not broken when the ip command ups, then downs an int= erface 128 times

if6-updown02    2  TPASS  :  Test is fi= nished successfully.

incrementing stop

<<<execution_status>>>

initiation_status=3D"ok"

duration=3D1449 termination_type=3Dexited termination_id=3D0 corefile= =3Dno

cutime=3D103 cstime=3D456

<<<test_end>>>

 

Could you please let me know that above code changes are valid or not= ? Please suggest me if there are any other solutions to resolve above erro= r.

Any help would be appreciated !!!!

 

Thanks,

Bhushan

 
 


Information transmitted by this e-mail is proprietary to MphasiS, its assoc= iated companies and/ or its customers and is intended
for use only by the individual or entity to which it is addressed, and may = contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended re= cipient or it appears that this mail has been forwarded
to you without proper authority, you are notified that any use or dissemina= tion of this information in any manner is strictly
prohibited. In such cases, please notify us immediately at mailmaster@mphas= is.com and delete this mail from your records.

------_=_NextPart_001_01CE0085.08D7B687-- --===============1948027876105416113== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan --===============1948027876105416113== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list --===============1948027876105416113==--