1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123 | ----------------------------------------------------------------------
FAIL: watcher_test.go:188: WatcherSuite.TestActionsReceived
[LOG] 0:00.001 DEBUG juju.worker.uniter.remotestate got action change: [] ok=true
[LOG] 0:00.001 DEBUG juju.worker.uniter.remotestate got config change: ok=true
[LOG] 0:00.001 DEBUG juju.worker.uniter.remotestate got leader settings change: ok=true
[LOG] 0:00.001 DEBUG juju.worker.uniter.remotestate got service change
[LOG] 0:00.001 DEBUG juju.worker.uniter.remotestate got address change: ok=true
[LOG] 0:00.001 DEBUG juju.worker.uniter.remotestate got relations change: ok=true
[LOG] 0:00.001 DEBUG juju.worker.uniter.remotestate got unit change
[LOG] 0:00.001 DEBUG juju.worker.uniter.remotestate got storage change: [] ok=true
watcher_test.go:204:
assertNotifyEvent(c, w.RemoteStateChanged(), "waiting for remote state change")
utils_test.go:26:
c.Fatalf("timed out " + activity)
... Error: timed out waiting for remote state change
[LOG] 0:10.038 ERROR juju.worker.uniter.remotestate remote state watcher exited: tomb: dying
[LOG] 0:10.039 ERROR juju.worker.uniter.remotestate remote state watcher exited: tomb: dying
==================
WARNING: DATA RACE
Write by goroutine 15:
github.com/juju/juju/worker/uniter/remotestate_test.(*WatcherSuite).SetUpTest()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher_test.go:37 +0x43c
runtime.call32()
/home/dfc/go/src/runtime/asm_amd64.s:442 +0x3d
reflect.Value.Call()
/home/dfc/go/src/reflect/value.go:300 +0xcd
gopkg.in/check%2ev1.(*suiteRunner).runFixture.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:721 +0x1b8
gopkg.in/check%2ev1.(*suiteRunner).forkCall.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:666 +0x80
Previous read by goroutine 11:
github.com/juju/juju/worker/uniter/remotestate_test.(*mockState).StorageAttachment()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/mock_test.go:108 +0xe4
github.com/juju/juju/worker/uniter/remotestate.getStorageSnapshot()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/storagewatcher.go:67 +0xc3
github.com/juju/juju/worker/uniter/remotestate.(*storageAttachmentWatcher).loop()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/storagewatcher.go:91 +0x2f7
github.com/juju/juju/worker/uniter/remotestate.newStorageAttachmentWatcher.func1()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/storagewatcher.go:33 +0xd8
Goroutine 15 (running) created at:
gopkg.in/check%2ev1.(*suiteRunner).forkCall()
/home/dfc/src/gopkg.in/check.v1/check.go:667 +0x486
gopkg.in/check%2ev1.(*suiteRunner).runFunc()
/home/dfc/src/gopkg.in/check.v1/check.go:673 +0x71
gopkg.in/check%2ev1.(*suiteRunner).runFixture()
/home/dfc/src/gopkg.in/check.v1/check.go:722 +0x76
gopkg.in/check%2ev1.(*suiteRunner).runFixtureWithPanic()
/home/dfc/src/gopkg.in/check.v1/check.go:735 +0x92
gopkg.in/check%2ev1.(*suiteRunner).forkTest.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:760 +0x1a0
gopkg.in/check%2ev1.(*suiteRunner).forkCall.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:666 +0x80
Goroutine 11 (running) created at:
github.com/juju/juju/worker/uniter/remotestate.newStorageAttachmentWatcher()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/storagewatcher.go:34 +0x1c8
github.com/juju/juju/worker/uniter/remotestate.(*RemoteStateWatcher).watchStorageAttachment()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher.go:657 +0x625
github.com/juju/juju/worker/uniter/remotestate.(*RemoteStateWatcher).storageChanged()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher.go:601 +0xc76
github.com/juju/juju/worker/uniter/remotestate.(*RemoteStateWatcher).loop()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher.go:351 +0x26a9
github.com/juju/juju/worker/uniter/remotestate.NewWatcher.func1()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher.go:84 +0x9b
==================
==================
WARNING: DATA RACE
Write by goroutine 15:
github.com/juju/juju/worker/uniter/remotestate_test.(*WatcherSuite).SetUpTest()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher_test.go:37 +0x43c
runtime.call32()
/home/dfc/go/src/runtime/asm_amd64.s:442 +0x3d
reflect.Value.Call()
/home/dfc/go/src/reflect/value.go:300 +0xcd
gopkg.in/check%2ev1.(*suiteRunner).runFixture.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:721 +0x1b8
gopkg.in/check%2ev1.(*suiteRunner).forkCall.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:666 +0x80
Previous read by goroutine 11:
github.com/juju/juju/worker/uniter/remotestate_test.(*mockState).StorageAttachment()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/mock_test.go:111 +0x37f
github.com/juju/juju/worker/uniter/remotestate.getStorageSnapshot()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/storagewatcher.go:67 +0xc3
github.com/juju/juju/worker/uniter/remotestate.(*storageAttachmentWatcher).loop()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/storagewatcher.go:91 +0x2f7
github.com/juju/juju/worker/uniter/remotestate.newStorageAttachmentWatcher.func1()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/storagewatcher.go:33 +0xd8
Goroutine 15 (running) created at:
gopkg.in/check%2ev1.(*suiteRunner).forkCall()
/home/dfc/src/gopkg.in/check.v1/check.go:667 +0x486
gopkg.in/check%2ev1.(*suiteRunner).runFunc()
/home/dfc/src/gopkg.in/check.v1/check.go:673 +0x71
gopkg.in/check%2ev1.(*suiteRunner).runFixture()
/home/dfc/src/gopkg.in/check.v1/check.go:722 +0x76
gopkg.in/check%2ev1.(*suiteRunner).runFixtureWithPanic()
/home/dfc/src/gopkg.in/check.v1/check.go:735 +0x92
gopkg.in/check%2ev1.(*suiteRunner).forkTest.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:760 +0x1a0
gopkg.in/check%2ev1.(*suiteRunner).forkCall.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:666 +0x80
Goroutine 11 (running) created at:
github.com/juju/juju/worker/uniter/remotestate.newStorageAttachmentWatcher()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/storagewatcher.go:34 +0x1c8
github.com/juju/juju/worker/uniter/remotestate.(*RemoteStateWatcher).watchStorageAttachment()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher.go:657 +0x625
github.com/juju/juju/worker/uniter/remotestate.(*RemoteStateWatcher).storageChanged()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher.go:601 +0xc76
github.com/juju/juju/worker/uniter/remotestate.(*RemoteStateWatcher).loop()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher.go:351 +0x26a9
github.com/juju/juju/worker/uniter/remotestate.NewWatcher.func1()
/home/dfc/src/github.com/juju/juju/worker/uniter/remotestate/watcher.go:84 +0x9b
==================
OOPS: 15 passed, 1 FAILED
--- FAIL: TestPackage (10.98s)
FAIL
FAIL github.com/juju/juju/worker/uniter/remotestate 11.128s
|