juju ssh gives i/o timeout if latency is more than 500ms

Bug #2009008 reported by Vidar Tyldum
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Unassigned

Bug Description

We have a remote site with an RTT of about 580ms, and "juju ssh" will fail with an i/o timeout during the host key checking phase.

50:09 DEBUG juju.network.ssh reachable.go:156 dialing 111.111.173.32:22 to check host keys
09:50:09 DEBUG juju.network.ssh reachable.go:156 dialing 111.111.171.186:22 to check host keys
09:50:10 DEBUG juju.network.ssh reachable.go:159 dial 111.111.173.32:22 failed with: dial tcp 10.104.173.32:22: i/o timeout
09:50:10 DEBUG juju.network.ssh reachable.go:159 dial 111.111.171.186:22 failed with: dial tcp 10.104.171.186:22: i/o timeout

I could reproduce this by simulating the latency with tc:
  sudo tc qdisc add dev ens3 root netem delay 510ms

Tags: ssh
tags: added: ssh timeout
tags: removed: timeout
Changed in juju:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Vidar Tyldum (tyldum) wrote (last edit ):

Just confirming that this patch works (up to 1 second RTT) for juju v2.9:
https://github.com/tyldum/juju/commit/df22134ddc360fd95bffff5b9cb0fe2c58a8caba

Revision history for this message
Erlon R. Cruz (sombrafam) wrote :

Hi folks,

I have created a pull request to implement this fix: https://github.com/juju/juju/pull/16140

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.