DebugMetricsCommandSuite.TearDownTest fails due to "no reachable servers."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Unassigned |
Bug Description
As seen at: http://
The unit test teardown (DebugMetricsCo
failed: no reachable servers")
... error stack:
no reachable servers
github.
Which is potentially caused by a socket connection refusal:
[LOG] 0:03.650 DEBUG juju.mongo connection failed, will retry: dial tcp 127.0.0.1:43893: getsockopt: connection refused
setmeterstatus_
c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.
... error stack:
EOF
github.
github.
no longer affects: | juju-core |
tags: | added: intermittent-failure mongodb unit-tests |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → 2.0.1 |
I don't think this is anything to do with the test itself. I think it's a general flakiness that I've observed in MgoTestSuite lately. I see lots of connection refused errors in CI test attempts. And, they seem to occur in different tests.
I wonder if it'd be helpful for testing/mgo to keep track of the mongod logs and dump them when dialing fails like this -- especially in setup/teardown, to help us understand & fix the problem.