Hi,
This is lavanya, I am a user of QAT framework.
I am getting some problem in using it,need some help from you.
My setup details:
Harness is running on i386 architecture,
I have started agent on PPC architecture box, when I try to add agents to harness using edit option, harness is not detecting the agent. It throws an error
java.net. ConnectException: Connection timed out
My agent is running the port and it gave me the message
"Listening for connections on port 9000"
The output of netstat -tap on my agent box :
netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:9000 *:* LISTEN 25106/agent
tcp6 0 0 *:ssh *:* LISTEN 24115/sshd
Could you please tell me what might be the problem.
Thanks for the help in advance
Lavanya
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is your agent running on a different subnet to the QAT harness? If so, you will need to configure the router to forward UDP messages (used for discovery protocol).
If you manually add the agent, does it connect ok?
thanks
wh
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
************************************
I am able to ping harness ip address from agent box and vice versa
Ping from agent to harness
root@ATCA-F101-1:~# ping 10.130.96.148
PING 10.130.96.148 (10.130.96.148) 56(84) bytes of data.
64 bytes from 10.130.96.148: icmp_seq=1 ttl=63 time=2.01 ms
64 bytes from 10.130.96.148: icmp_seq=2 ttl=63 time=0.459 ms
64 bytes from 10.130.96.148: icmp_seq=3 ttl=63 time=0.458 ms
--- 10.130.96.148 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.458/0.977/2.014/0.733 ms
Ping from harness to agent
GSG-HYD-PC16:~ # ping 10.130.97.164
PING 10.130.97.164 (10.130.97.164) 56(84) bytes of data.
64 bytes from 10.130.97.164: icmp_seq=1 ttl=63 time=0.493 ms
64 bytes from 10.130.97.164: icmp_seq=2 ttl=63 time=0.390 ms
--- 10.130.97.164 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.390/0.441/0.493/0.055 m
*******************************************
If I manually add the agent, it is giving ,
java.net.SocketTimeoutException: Read timed out
I assume manually means going to harness window and adding agent by
Agent -> Agent Settings -> Add
If I am wrong pl correct me and pl tell me how to add the same manually
****************************************
My .qash file code:
qat.test.name="LAV_TEST 3"
qat.test.author="lavanya"
qat.test.description="this is lavanya's send cript and execute test"
qat.test.buginfo=""
qat.test.keywords="pass"
FOR I=1 TO qat.agent.count DO
PRINT "agent count no:" qat.agent.count
agent_index = I
agent_tmp_dir = ("agent"+agent_index+"_tmp_dir")
agent_fs = ("agent"+agent_index+"_fs")
agent_port = ("agent"+agent_index+".port")
agent_name = ("agent"+agent_index+".name")
PRINT "currently running on agent no:" I
PRINT "agent_id: " agent_id
CHECKAGENT(result, agent_name, agent_port)
PRINT " Result of CHECKAGENT cmd is " result
***************************************
Test Result of above code when I executed on my harness:
[ Starting parse :Wed Aug 27 08:01:10 IST 2008 ]
agent count no:1
agent_name: 10.130.97.164
agent_port:9000
agent_tmp_dir:agent1_tmp_dir
currently running on agent no:1
agent_id: 0
[ Error (32000) :Problem processing CHECKAGENT command (java.net.SocketTimeoutException: Read timed out) : on line 58 in file /home/blavanya/Tools/QAT/qat-2.7.2/examples/qash_examples/syntax_tests/qat/commands.qash ]
lavi: file found location :agent1_tmp_dir/sample.sh
[ The command tmp_id exited normally ]
[ AUTOCLEAN enabled ] [ Processing AUTOCLEAN of 0 agent(s) ] [ Finished parse :Wed Aug 27 08:03:41 IST 2008 ( 151267ms ) ]
****************************************
Console log on my agent box:
root@ATCA-F101-1:~# Connection established with 10.130.96.148
Processing CHECKFILE request
File does not exist :agent1_tmp_dir
Closing input and output streams
======================================================================
======================================================================
Listening for connections on port 9000
Connection established with 10.130.96.148
Processing MKDIR request
Attempting to create :agent1_tmp_dir
Error creating directory :agent1_tmp_dir
Closing input and output streams
======================================================================
======================================================================
Listening for connections on port 9000
Connection established with 10.130.96.148
Processing CHECKAGENT request
Closing input and output streams
======================================================================
======================================================================
Listening for connections on port 9000
Connection established with 10.130.96.148
Processing SENDFILE request
Error reading long
Attempting to read :0 bytes from the socket connection
Opening file agent1_tmp_dir/sample.sh
Opened file agent1_tmp_dir/sample.sh
Read :0 bytes
Closing input and output streams
Thanks
Lavanya
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I suspect it's a problem with your router which bridges the two subnets. Perhaps it only allows bridging in one direction?
Try the following :
1) swop agent and harness around and see if it works then, or if the error is different
2)Check your router/bridge is enabling UDP connections between subnets (this will only affect agent discovery, normal agent-qat communication only uses plain tcp sockets)
3)Try to telnet to the agent on the correct port from the other subnet - if no connection can be made it's definitely a routing problem
e.g. telnet 10.130.97.164 9000
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
This is lavanya, I am a user of QAT framework.
I am getting some problem in using it,need some help from you.
My setup details:
Harness is running on i386 architecture,
I have started agent on PPC architecture box, when I try to add agents to harness using edit option, harness is not detecting the agent. It throws an error
java.net. ConnectException: Connection timed out
My agent is running the port and it gave me the message
"Listening for connections on port 9000"
The output of netstat -tap on my agent box :
netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:9000 *:* LISTEN 25106/agent
tcp6 0 0 *:ssh *:* LISTEN 24115/sshd
Could you please tell me what might be the problem.
Thanks for the help in advance
Lavanya
Hi,
Is your agent running on a different subnet to the QAT harness? If so, you will need to configure the router to forward UDP messages (used for discovery protocol).
If you manually add the agent, does it connect ok?
thanks
wh
Hi Webhiker,
Thanks for your speedy reply.
My agent and harness are in different subnets.
Harness: Agent
IP: 10.130.96.148 10.130.97.164
Subnet Mask:255.255.255.128 255.255.255.0
Subnet Addr: 10.130.96.128 10.130.97.0
************************************
I am able to ping harness ip address from agent box and vice versa
Ping from agent to harness
root@ATCA-F101-1:~# ping 10.130.96.148
PING 10.130.96.148 (10.130.96.148) 56(84) bytes of data.
64 bytes from 10.130.96.148: icmp_seq=1 ttl=63 time=2.01 ms
64 bytes from 10.130.96.148: icmp_seq=2 ttl=63 time=0.459 ms
64 bytes from 10.130.96.148: icmp_seq=3 ttl=63 time=0.458 ms
--- 10.130.96.148 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.458/0.977/2.014/0.733 ms
Ping from harness to agent
GSG-HYD-PC16:~ # ping 10.130.97.164
PING 10.130.97.164 (10.130.97.164) 56(84) bytes of data.
64 bytes from 10.130.97.164: icmp_seq=1 ttl=63 time=0.493 ms
64 bytes from 10.130.97.164: icmp_seq=2 ttl=63 time=0.390 ms
--- 10.130.97.164 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.390/0.441/0.493/0.055 m
*******************************************
If I manually add the agent, it is giving ,
java.net.SocketTimeoutException: Read timed out
I assume manually means going to harness window and adding agent by
Agent -> Agent Settings -> Add
If I am wrong pl correct me and pl tell me how to add the same manually
****************************************
My .qash file code:
qat.test.name="LAV_TEST 3"
qat.test.author="lavanya"
qat.test.description="this is lavanya's send cript and execute test"
qat.test.buginfo=""
qat.test.keywords="pass"
FOR I=1 TO qat.agent.count DO
PRINT "agent count no:" qat.agent.count
agent_index = I
agent_tmp_dir = ("agent"+agent_index+"_tmp_dir")
agent_fs = ("agent"+agent_index+"_fs")
agent_port = ("agent"+agent_index+".port")
agent_name = ("agent"+agent_index+".name")
PRINT "agent_name: " agent_name
PRINT "agent_port:" agent_port
PRINT "agent_tmp_dir:" agent_tmp_dir
SETAGENT(agent_id, agent_name, agent_port, agent_tmp_dir);
PRINT "currently running on agent no:" I
PRINT "agent_id: " agent_id
CHECKAGENT(result, agent_name, agent_port)
PRINT " Result of CHECKAGENT cmd is " result
***************************************
Test Result of above code when I executed on my harness:
[ Starting parse :Wed Aug 27 08:01:10 IST 2008 ]
agent count no:1
agent_name: 10.130.97.164
agent_port:9000
agent_tmp_dir:agent1_tmp_dir
currently running on agent no:1
agent_id: 0
[ Error (32000) :Problem processing CHECKAGENT command (java.net.SocketTimeoutException: Read timed out) : on line 58 in file /home/blavanya/Tools/QAT/qat-2.7.2/examples/qash_examples/syntax_tests/qat/commands.qash ]
lavi: file found location :agent1_tmp_dir/sample.sh
[ The command tmp_id exited normally ]
[ AUTOCLEAN enabled ] [ Processing AUTOCLEAN of 0 agent(s) ] [ Finished parse :Wed Aug 27 08:03:41 IST 2008 ( 151267ms ) ]
****************************************
Console log on my agent box:
root@ATCA-F101-1:~# Connection established with 10.130.96.148
Processing CHECKFILE request
File does not exist :agent1_tmp_dir
Closing input and output streams
======================================================================
======================================================================
Listening for connections on port 9000
Connection established with 10.130.96.148
Processing MKDIR request
Attempting to create :agent1_tmp_dir
Error creating directory :agent1_tmp_dir
Closing input and output streams
======================================================================
======================================================================
Listening for connections on port 9000
Connection established with 10.130.96.148
Processing CHECKAGENT request
Closing input and output streams
======================================================================
======================================================================
Listening for connections on port 9000
Connection established with 10.130.96.148
Processing SENDFILE request
Error reading long
Attempting to read :0 bytes from the socket connection
Opening file agent1_tmp_dir/sample.sh
Opened file agent1_tmp_dir/sample.sh
Read :0 bytes
Closing input and output streams
Thanks
Lavanya
I suspect it's a problem with your router which bridges the two subnets. Perhaps it only allows bridging in one direction?
Try the following :
1) swop agent and harness around and see if it works then, or if the error is different
2)Check your router/bridge is enabling UDP connections between subnets (this will only affect agent discovery, normal agent-qat communication only uses plain tcp sockets)
3)Try to telnet to the agent on the correct port from the other subnet - if no connection can be made it's definitely a routing problem
e.g. telnet 10.130.97.164 9000
Hi Webhiker,
Could you please help me in resolving above issue
Thanks
Lavanya
Thanks webhiker,
I will try the same.
Lavanya