Intermittent unit test failure: juju.worker.dependency
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
Low
|
Unassigned |
Bug Description
Runtime panic during firewall worker loop. See the full logs here: http://
The following stacktrace was captured from the logs for posterity:
[LOG] 0:02.726 DEBUG juju.worker.
[LOG] 0:02.726 ERROR juju.worker.
[LOG] 0:02.726 DEBUG juju.worker.
panic resulted in: runtime error: invalid memory address or nil pointer dereference
stacktrace:
goroutine 15754 [running]:
runtime/
/snap/
github.
/workspace/
panic(0x2ee7180, 0x54194f0)
/snap/
github.
<autogenerated>:1 +0x36
github.
/workspace/
github.
/workspace/
github.
/workspace/
github.
/workspace/
github.
/workspace/
gopkg.in/
/workspace/
created by gopkg.in/
/workspace/
Changed in juju: | |
status: | New → Incomplete |
Changed in juju: | |
assignee: | Anastasia (anastasia-macmood) → Simon Richardson (simonrichardson) |
Changed in juju: | |
assignee: | Simon Richardson (simonrichardson) → Yang Kelvin Liu (kelvin.liu) |
Changed in juju: | |
status: | In Progress → Triaged |
assignee: | Yang Kelvin Liu (kelvin.liu) → nobody |
@Simon Richardson,
Looking at the log you were trying to merge into develop. I have been chasing down the same problem yesterday.
Attached stack trace, whilst scary, may not be the cause of the problem. At this stage, I am narrowing it down to a test in cmd/juju/ appplication/ deploy_ test that we have been skipping for a very long time and I have recently unskipped.
In my case, I was also getting issues in TestTearDown coming from mongo and tomb and some workers not releasing the connection (attaching).
The real solution here is to re-write these tests without JujuConnSuite.
Alternatively, we can again skip the test. Although, I fail to see that value of keeping skipped tests. My preference, in that case, would be to delete it altogether.
I'll have a look at it today.