[COMPASS-4474] SSH tunnel can only connect from the "More options" screen Created: 21/Oct/20  Updated: 10/Jan/24  Resolved: 11/Mar/21

Status: Closed
Project: Compass
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: 1.26.1

Type: Bug Priority: Major - P3
Reporter: Maurizio Casimirri Assignee: Sergey Petushkov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2020-10-21 at 19.37.50.png    
Epic Link: COMPASS-4362
Story Points: 5
Documentation Changes: Not Needed
Sprint: Iteration Vegetable, Iteration Watermelon, Iteration Xylocarpus Granatum

 Description   

When connecting with SSH tunnel the connection only works from the "More options" screen, and it hangs and times out from the "hostname" tab, unless the connection is new.

To reproduce use the docker images in compass.

Create a new connection and fill all the fields with the SSH tunnel and password method. (see the README.md in docker/ssh).

Go back to the 'Hostname' tab and connect. The first time will work. Then disconnect and try to connect again.



 Comments   
Comment by Githook User [ 10/Mar/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix: Use latest connection-model and keep reference to tunnel to be able to close it when disconnecting native client COMPASS-4474 (#308)

  • fix: Use latest connection-model and keep reference to tunnel to be able to close it when disconnecting native client COMPASS-4474
  • feat: Do not allow to call connect multiple times without disconnecting first
Comment by Githook User [ 04/Mar/21 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix: Use latest connection-model and keep reference to tunnel to be able to close it when disconnecting native client COMPASS-4474
Branch: compass-4474-make-sure-ssh-tunnel-is-closed-on-disconnect
https://github.com/mongodb-js/data-service/commit/44c801e782cdf9e02683754087451289d0a72b7d

Comment by Githook User [ 04/Mar/21 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix: Use latest connection-model and keep reference to tunnel to be able to close it when diconnecting native client COMPASS-4474
Branch: compass-4474-make-sure-ssh-tunnel-is-closed-on-disconnect
https://github.com/mongodb-js/data-service/commit/1f6391df9b08c9450081adf54e055ff97920302a

Comment by Githook User [ 04/Mar/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix: Wait for the tunnel to close before finishing client close COMPASS-4474 (#352)

  • fix: Wait for the tunnel to close before finishing client close
  • fix: Update ssh-tunnel mock to match new implementation
  • fix: Only pick up errors that originated in ssh-client
  • fix: Increase the timeout to make sure tunnel has a chance to start (and fail) before server stops trying
  • refactor: Async-ify create tunnel and connect tasks; Expose tunnel through connect instead of overriding client.close method
  • refactor: Pass tunnel as function parameter
  • fix: Bump ssh-tunnel version once more
  • refactor: Asyncify awaiting on tunnel error

Co-authored-by: Anna Henningsen <anna@addaleax.net>

  • fix: Change spied close method

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: master
https://github.com/mongodb-js/connection-model/commit/299b63251107b6cbb029ec33c0de8e6cc9508ea6

Generated at Wed Feb 07 22:36:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.