Activity log for bug #1755142

Date Who What changed Old value New value Message
2018-03-12 11:09:25 John A Meinel bug added bug
2018-03-12 11:10:04 John A Meinel description As seen here: http://10.125.0.203:8080/job/RunUnittests-race-amd64/176/console [LOG] 0:05.024 DEBUG juju.api error dialing websocket: dial tcp 127.0.0.1:37180: context deadline exceeded apiclient_test.go:797: c.Assert(err, gc.ErrorMatches, `cannot log in: context deadline exceeded`) ... error string = "unable to connect to API: dial tcp 127.0.0.1:37180: context deadline exceeded" ... regex string = "cannot log in: context deadline exceeded" Oddly, we see this before the test info: === RUN TestAll 2018/03/12 11:00:27 http: TLS handshake error from 127.0.0.1:48562: EOF I wonder if the context deadline we are setting is sometimes so short that the TLS handshake fails first, and then we get cut off before we even get to Log In which is why we get a failure to "connect to API" rather than a failure "cannot log in". I'll check if the code actually cares, or if we can just look for either message. Note, this *particular* instance of the failure is under "-race" but probably that just changes the timing to make it more possible. As seen here: http://10.125.0.203:8080/job/RunUnittests-race-amd64/176/console github.com/juju/juju/api FAIL: apiclient_test.go:770: apiclientSuite.TestOpenTimesOutOnLogin [LOG] 0:05.024 DEBUG juju.api error dialing websocket: dial tcp 127.0.0.1:37180: context deadline exceeded apiclient_test.go:797:     c.Assert(err, gc.ErrorMatches, `cannot log in: context deadline exceeded`) ... error string = "unable to connect to API: dial tcp 127.0.0.1:37180: context deadline exceeded" ... regex string = "cannot log in: context deadline exceeded" Oddly, we see this before the test info: === RUN TestAll 2018/03/12 11:00:27 http: TLS handshake error from 127.0.0.1:48562: EOF I wonder if the context deadline we are setting is sometimes so short that the TLS handshake fails first, and then we get cut off before we even get to Log In which is why we get a failure to "connect to API" rather than a failure "cannot log in". I'll check if the code actually cares, or if we can just look for either message. Note, this *particular* instance of the failure is under "-race" but probably that just changes the timing to make it more possible.
2018-03-12 11:23:38 John A Meinel nominated for series juju/2.3
2018-03-12 11:23:38 John A Meinel bug task added juju/2.3
2018-03-12 11:23:44 John A Meinel juju/2.3: status New In Progress
2018-03-12 11:23:46 John A Meinel juju/2.3: importance Undecided High
2018-03-12 11:23:48 John A Meinel juju/2.3: assignee John A Meinel (jameinel)
2018-03-12 11:23:49 John A Meinel juju/2.3: milestone 2.3.5
2018-03-12 11:23:52 John A Meinel juju: milestone 2.4-beta1
2018-03-13 10:12:00 John A Meinel juju/2.3: status In Progress Fix Committed
2018-03-14 04:09:57 John A Meinel juju: status In Progress Fix Committed
2018-03-28 03:30:48 Canonical Juju QA Bot juju/2.3: status Fix Committed Fix Released
2018-07-10 22:23:25 Anastasia juju: status Fix Committed Fix Released