All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [Query] Regarding broken_ip4_version testcase
@ 2015-12-16  8:53 Manjeet Pawar
  2015-12-21  6:45 ` Alexey Kodanev
  0 siblings, 1 reply; 4+ messages in thread
From: Manjeet Pawar @ 2015-12-16  8:53 UTC (permalink / raw)
  To: ltp-list; +Cc: ajeet.y, pankaj.m

HI,

I am running broken_ip testcases. I am using below env setting

export NETWORK_DELAY=30
export LTP_RSH="ssh -q  -o StrictHostKeyChecking=no -i /root/.ssh/id_rsa -l root"

Testcase:- "broken_ip4_version"
Logs: here (xxx.xxx.xxx.xxx is rhost address)
++ssh -n -q root@xxx.xxx.xxx.xxx 'sh -c    '\' ip link set eth0 down  || echo RTERR'\'''
<testcase stuck here>

I am not able to proceed after this command. I checked my remote machine, its network is already down when this command executed, but the testcase stuck at this moment and not returning anything.
Am I missing anything?
I checked with all my env settings, they are working for rest of the other testcases but not for this category "broken_ip_*).

Thanks
Manjeet 
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] [Query] Regarding broken_ip4_version testcase
  2015-12-16  8:53 [LTP] [Query] Regarding broken_ip4_version testcase Manjeet Pawar
@ 2015-12-21  6:45 ` Alexey Kodanev
  0 siblings, 0 replies; 4+ messages in thread
From: Alexey Kodanev @ 2015-12-21  6:45 UTC (permalink / raw)
  To: ltp

Hi,
On 12/16/2015 11:53 AM, Manjeet Pawar wrote:
> HI,
>
> I am running broken_ip testcases. I am using below env setting
>
> export NETWORK_DELAY=30
> export LTP_RSH="ssh -q  -o StrictHostKeyChecking=no -i /root/.ssh/id_rsa -l root"

LTP_RSH is not used in test_net.sh/tst_rhost_run(), which is sourced by 
broken_ip test group.
So it will be as you wrote below without your private key.

You could try to create alias ssh='ssh -o StrictHostKeyChecking=no -i 
/root/.ssh/id_rsa'
and then run the test.


>
> Testcase:- "broken_ip4_version"
> Logs: here (xxx.xxx.xxx.xxx is rhost address)
> ++ssh -n -q root@xxx.xxx.xxx.xxx 'sh -c    '\' ip link set eth0 down  || echo RTERR'\'''
> <testcase stuck here>

requesting a pswd?

Best regards,
Alexey

Also please send any further emails to the following ML:

ltp@lists.linux.it

> I am not able to proceed after this command. I checked my remote machine, its network is already down when this command executed, but the testcase stuck at this moment and not returning anything.
> Am I missing anything?
> I checked with all my env settings, they are working for rest of the other testcases but not for this category "broken_ip_*).
> Thanks
> Manjeet
> ------------------------------------------------------------------------------
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] [Query] Regarding broken_ip4_version testcase
  2015-12-21  8:54 Manjeet Pawar
@ 2015-12-21 11:31 ` Alexey Kodanev
  0 siblings, 0 replies; 4+ messages in thread
From: Alexey Kodanev @ 2015-12-21 11:31 UTC (permalink / raw)
  To: ltp


On 12/21/2015 11:54 AM, Manjeet Pawar wrote:
> HI,
>>> Testcase:- "broken_ip4_version"
>>> Logs: here (xxx.xxx.xxx.xxx is rhost address)
>>> ++ssh -n -q root@xxx.xxx.xxx.xxx 'sh -c    '\' ip link set eth0 down  || echo RTERR'\'''
>>>
>> requesting a pswd?
> No it does not ask for a password. if I execute command on my target shell :- ssh -n -q root@xxx.xxx.xxx.xxx 'sh -c    '\' ip link set eth0 down  || echo RTERR'\''' , It runs successfully and doesn't stuck and not asking for password, i have made password authentication "no" . But when same command execute within testcase it stuck there.
>
> Another thing is test_net.sh does not use LTP_RSH as you told. It is using below command :
>   if [ -n "$TST_USE_SSH" ]; then
>          output=`ssh -n -q $user@$RHOST "sh -c \
>              '$BIN_PATH$pre_cmd $cmd $post_cmd'" $out 2>&1 || echo 'RTERR'`
> So the env variable LTP_RSH exported by me does not have any role here. test_net.sh simply use ssh to connect  remote machine which it is able to connect but command doesn't return  anything and stuck at this moment.
>
> If you see it is actually doing "ip link set eth0 down  " for the remote host. And I can see the eth0 becomes down on remote machine. But command  stuck after making eth0 down.

Probably, your test interface is the same interface the management link 
is working on, i.e. eth0 is used to connect two machines over ssh. Try 
to set RHOST to the name or IP address that is not routed through eth0 
or use another test interface to perform the test. This is a requirement 
for network/stress group.

You can also remove "tst_restore_ipaddr()" from broken_*lib.sh scripts, 
if eth0 has already been configured with IPs.

I'm going to send a patch to remove this code from them, because most 
network tests expect IP addresses have already been set, and some of  
network/stress tests, broken_ip in particular, don't really need to 
restore the addresses.

Best regards,
Alexey


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] [Query] Regarding broken_ip4_version testcase
@ 2015-12-21  8:54 Manjeet Pawar
  2015-12-21 11:31 ` Alexey Kodanev
  0 siblings, 1 reply; 4+ messages in thread
From: Manjeet Pawar @ 2015-12-21  8:54 UTC (permalink / raw)
  To: ltp

HI,
>> Testcase:- "broken_ip4_version"
>> Logs: here (xxx.xxx.xxx.xxx is rhost address)
>> ++ssh -n -q root@xxx.xxx.xxx.xxx 'sh -c    '\' ip link set eth0 down  || echo RTERR'\'''
>> 

>requesting a pswd?
No it does not ask for a password. if I execute command on my target shell :- ssh -n -q root@xxx.xxx.xxx.xxx 'sh -c    '\' ip link set eth0 down  || echo RTERR'\''' , It runs successfully and doesn't stuck and not asking for password, i have made password authentication "no" . But when same command execute within testcase it stuck there.

Another thing is test_net.sh does not use LTP_RSH as you told. It is using below command :
 if [ -n "$TST_USE_SSH" ]; then
        output=`ssh -n -q $user@$RHOST "sh -c \
            '$BIN_PATH$pre_cmd $cmd $post_cmd'" $out 2>&1 || echo 'RTERR'`
So the env variable LTP_RSH exported by me does not have any role here. test_net.sh simply use ssh to connect  remote machine which it is able to connect but command doesn't return  anything and stuck at this moment.

If you see it is actually doing "ip link set eth0 down  " for the remote host. And I can see the eth0 becomes down on remote machine. But command  stuck after making eth0 down.

Thanks
------- Original Message -------
Sender : Alexey Kodanev<alexey.kodanev@oracle.com>
Date : Dec 21, 2015 15:45 (GMT+09:00)
Title : Re: [LTP] [Query] Regarding broken_ip4_version testcase

Hi,
On 12/16/2015 11:53 AM, Manjeet Pawar wrote:
> HI,
>
> I am running broken_ip testcases. I am using below env setting
>
> export NETWORK_DELAY=30
> export LTP_RSH="ssh -q  -o StrictHostKeyChecking=no -i /root/.ssh/id_rsa -l root"

LTP_RSH is not used in test_net.sh/tst_rhost_run(), which is sourced by 
broken_ip test group.
So it will be as you wrote below without your private key.

You could try to create alias ssh='ssh -o StrictHostKeyChecking=no -i 
/root/.ssh/id_rsa'
and then run the test.


>
> Testcase:- "broken_ip4_version"
> Logs: here (xxx.xxx.xxx.xxx is rhost address)
> ++ssh -n -q root@xxx.xxx.xxx.xxx 'sh -c    '\' ip link set eth0 down  || echo RTERR'\'''
> 

requesting a pswd?

Best regards,
Alexey

Also please send any further emails to the following ML:

ltp@lists.linux.it

> I am not able to proceed after this command. I checked my remote machine, its network is already down when this command executed, but the testcase stuck at this moment and not returning anything.
> Am I missing anything?
> I checked with all my env settings, they are working for rest of the other testcases but not for this category "broken_ip_*).
> Thanks
> Manjeet
> ------------------------------------------------------------------------------
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-21 11:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-16  8:53 [LTP] [Query] Regarding broken_ip4_version testcase Manjeet Pawar
2015-12-21  6:45 ` Alexey Kodanev
2015-12-21  8:54 Manjeet Pawar
2015-12-21 11:31 ` Alexey Kodanev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.