Comment 1 for bug 1785623

John A Meinel (jameinel) wrote :

The one thing google-fu turns up is that
  Failed to connect to <machine-1>:37017 - HostUnreachable: short read

might be occurring if one machine is configured for SSL and the other is not. However, AFAIK we always run mongod with --ssl.

As for:
2018-08-05 10:08:55 ERROR juju.worker.dependency engine.go:551 "api-caller" manifold worker returned unexpected error: cannot open api: try was stopped

I was able to track down that it occurs when we start trying to connect, and something causes us to abort (that error is given during tomb.Dying() which means something called try.Kill())

However, it isn't clear why we would have called try.Kill(). The connect function: dialWebsocketMulti will call kill at any point that it returns (it calls defer try.Kill()), but it should only really exit with either an error or succeed. I wonder if the issue is that the 'try was stopped' is that we are suppressing the actual erorr.