CDV ❯ L1 <-> ssh tunnel <-> L2's ; try all the L2's, not only the first one secified in the config file
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Cannot Reproduce
-
DSO:L1
-
-
SylvainG
-
Reporter: eg.trab
-
March 19, 2009
-
0
-
Watchers: 2
-
July 27, 2012
-
April 01, 2009
Attachments
Description
L1 <-> ssh tunnel <-> L2’s
using attached config.
setup:
- L2S2 & L2S3 are on machineA
- L1 is on machineB
- ssh tunnel created by executing on machineA: ssh -v -o “KeepAlive=yes” -Llocalhost:7101:localhost:7101 -Llocalhost:7102:localhost:7102 -Llocalhost:7103:localhost:7103 -Rlocalhost:7201:localhost:7201 -Rlocalhost:7202:localhost:7202 -Rlocalhost:7203:localhost:7203 -Rlocalhost:7301:localhost:7301 -Rlocalhost:7302:localhost:7302 -Rlocalhost:7303:localhost:7303 ssh@machineB
steps to replicate issue:
- L2S2 - active
- L2S3 - passive
- start L1, can connect to active; kill L1
- force L2 failover
- L2S3 - active
- L2S2 - passive
- start L1, can Not connect to active (do not kill L1). message repeated: “WARN - Timeout connecting to server: localhost:7202. Timeout of 10000 milliseconds occurred”
- force L2 failover
- L2S2 - active
- L2S3 - passive
- now L1 (from 7.) can connect
- force L2 failover
- L2S3 - active
- L2S2 - passive
- L1 still connected (jmx thisNodeDisconnect & thisNodeConnect received)
issue: behavior should be the same as when ssh tunnels aren’t used; searching for all the L2’s not only the first one secified in the config file.
for normal behavior, modify config file, replacing “localhost” with appropriate values
environment:
- using 2.7.3
- machineA - solaris 10 on sparc
- machineB - windows xp sp3
Hi there,
I think that there is a problem with the ssh tunnel configuration. -Llocalhost:7101:localhost:7101 for example is forwarding the port 7101 on machineA to port 7101 on machineA.
I ran a couple of tests with ssh tunneling and I was not able to reproduce the problem: everything including failover is working as expected. Here is my configuration:
On sales04, I created the ssh tunnel using the following command: ssh -f -N -L9510:sales02:9510 sales02 && ssh -f -N -L9511:sales03:9511 sales03
The trick is that the tc-config.xml for the L2 and L1 are differents. I have attached the 2 tc-config.xml I am using:
Differences between tc-config.xml and tc-config-server.xml: tc-config-server.xml:
Unable to reproduce