|
worker/uniter: startup with correct relation state
The uniter's runListener is not started until after relation state is set
up; and relation state setup is fixed to use true relation state from the
API server rather than the local best guess, which is inaccurate when any
joined relation has never seen a remote unit.
This involves a new API, which the unit agent will wait for, in case it
connects to an API server which hasn't yet been upgraded.
https://code.launchpad.net/~fwereade/juju-core/uniter-relation-states/+merge/215003
(do not edit description out of merge proposal)
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+356 lines, -67 lines) |
Patch |
|
A |
[revision details]
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/api/uniter/unit.go
|
View
|
|
1 chunk |
+20 lines, -0 lines |
2 comments
|
Download
|
|
M |
state/api/uniter/unit_test.go
|
View
|
|
2 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/api/uniter/uniter.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/apiserver/uniter/uniter.go
|
View
|
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/uniter/uniter_test.go
|
View
|
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/unit.go
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/unit_test.go
|
View
|
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
M |
testing/filetesting/filetesting_test.go
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
worker/uniter/modes.go
|
View
|
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
|
M |
worker/uniter/relationer.go
|
View
|
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
worker/uniter/relationer_test.go
|
View
|
|
6 chunks |
+28 lines, -13 lines |
0 comments
|
Download
|
|
M |
worker/uniter/uniter.go
|
View
|
|
4 chunks |
+75 lines, -38 lines |
0 comments
|
Download
|
|
M |
worker/uniter/uniter_test.go
|
View
|
|
4 chunks |
+72 lines, -1 line |
0 comments
|
Download
|
Total messages: 4
|