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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233 | 2017/07/05 16:53:28 Error executing external:ubuntu-core-16-64:tests/main/listing :
-----
+ echo 'List prints core snap version'
List prints core snap version
+ '[' external = linode -o external == qemu ']'
+ expected='^core .* [0-9]{2}-[0-9.]+(\+git[0-9]+\.[0-9a-f]+)? +[0-9]+ +canonical +- *$'
+ snap list
+ grep -Pq '^core .* [0-9]{2}-[0-9.]+(\+git[0-9]+\.[0-9a-f]+)? +[0-9]+ +canonical +- *$'
+ echo 'List prints installed snap version'
List prints installed snap version
+ expected='^test-snapd-tools +(\d+)(\.\d+)* +x[0-9]+ +-'
+ grep -Pq '^test-snapd-tools +(\d+)(\.\d+)* +x[0-9]+ +-'
+ snap list
+ echo 'Install test-snapd-tools again'
Install test-snapd-tools again
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps.sh
+ install_local test-snapd-tools
+ local SNAP_NAME=test-snapd-tools
+ shift
+ local SNAP_FILE=/home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-tools/test-snapd-tools_1.0_all.snap
++ dirname /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-tools/test-snapd-tools_1.0_all.snap
+ local SNAP_DIR=/home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-tools
+ '[' '!' -f /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-tools/test-snapd-tools_1.0_all.snap ']'
+ snap install --dangerous /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-tools/test-snapd-tools_1.0_all.snap
test-snapd-tools 1.0 installed
+ echo 'And run snap list --all'
And run snap list --all
++ snap list --all
++ grep test-snapd-tools
error: cannot list snaps: cannot list local snaps! cannot find installed snap "core" at revision 1441
+ output=
-----
2017/07/05 16:53:28 Debug output for external:ubuntu-core-16-64:tests/main/listing :
-----
+ echo '# journal messages for snapd'
# journal messages for snapd
+ journalctl -u snapd
-- Logs begin at Wed 2017-07-05 14:53:16 UTC, end at Wed 2017-07-05 14:53:28 UTC. --
Jul 05 14:53:16 localhost.localdomain /usr/lib/snapd/snapd[5739]: daemon.go:250: DEBUG: init done in 679.775µs
Jul 05 14:53:16 localhost.localdomain /usr/lib/snapd/snapd[5739]: daemon.go:251: started snapd/2.26.8 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-71-generic.
Jul 05 14:53:16 localhost.localdomain snapd[5739]: 2017/07/05 14:53:16.644408 daemon.go:251: started snapd/2.26.8 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-71-generic.
Jul 05 14:53:17 localhost.localdomain /usr/lib/snapd/snapd[5739]: snapmgr.go:504: DEBUG: Next refresh scheduled for 2017-07-05 14:53:17.339649285 +0000 UTC.
Jul 05 14:53:17 localhost.localdomain /usr/lib/snapd/snapd[5739]: daemon.go:176: DEBUG: uid=0;@ GET /v2/snaps 548.752236ms 200
Jul 05 14:53:17 localhost.localdomain systemd[1]: Stopping Snappy daemon...
Jul 05 14:53:17 localhost.localdomain snapd[5739]: 2017/07/05 14:53:17.344785 main.go:71: Exiting on terminated signal.
Jul 05 14:53:17 localhost.localdomain /usr/lib/snapd/snapd[5739]: main.go:71: Exiting on terminated signal.
Jul 05 14:53:19 localhost.localdomain /usr/lib/snapd/snapd[5739]: snapmgr.go:422: No snaps to auto-refresh found
Jul 05 14:53:19 localhost.localdomain snapd[5739]: 2017/07/05 14:53:19.069710 snapmgr.go:422: No snaps to auto-refresh found
Jul 05 14:53:19 localhost.localdomain systemd[1]: Stopped Snappy daemon.
Jul 05 14:53:23 localhost.localdomain systemd[1]: Started Snappy daemon.
Jul 05 14:53:23 localhost.localdomain /usr/lib/snapd/snapd[5795]: daemon.go:250: DEBUG: init done in 486.958µs
Jul 05 14:53:23 localhost.localdomain /usr/lib/snapd/snapd[5795]: daemon.go:251: started snapd/2.26.8 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-71-generic.
Jul 05 14:53:23 localhost.localdomain snapd[5795]: 2017/07/05 14:53:23.780026 daemon.go:251: started snapd/2.26.8 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-71-generic.
Jul 05 14:53:24 localhost.localdomain /usr/lib/snapd/snapd[5795]: snapmgr.go:504: DEBUG: Next refresh scheduled for 2017-07-05 14:53:24.420492175 +0000 UTC.
Jul 05 14:53:24 localhost.localdomain /usr/lib/snapd/snapd[5795]: daemon.go:176: DEBUG: uid=0;@ POST /v2/snaps 673.775806ms 202
Jul 05 14:53:26 localhost.localdomain /usr/lib/snapd/snapd[5795]: snapmgr.go:422: No snaps to auto-refresh found
Jul 05 14:53:26 localhost.localdomain snapd[5795]: 2017/07/05 14:53:26.241824 snapmgr.go:422: No snaps to auto-refresh found
Jul 05 14:53:26 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 98 on Do: Prepare snap "/tmp/snapd-sideload-pkg-172008176" (unset)
Jul 05 14:53:26 localhost.localdomain /usr/lib/snapd/snapd[5795]: snapmgr.go:504: DEBUG: Next refresh scheduled for 2017-07-05 23:42:37.266870655 +0000 UTC.
Jul 05 14:53:26 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 99 on Do: Mount snap "test-snapd-tools" (unset)
Jul 05 14:53:26 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 100 on Do: Copy snap "test-snapd-tools" data
Jul 05 14:53:26 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 101 on Do: Setup snap "test-snapd-tools" (unset) security profiles
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 102 on Do: Make snap "test-snapd-tools" (unset) available to the system
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 103 on Do: Setup snap "test-snapd-tools" (unset) security profiles (phase 2)
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 104 on Do: Set automatic aliases for snap "test-snapd-tools"
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 105 on Do: Setup snap "test-snapd-tools" aliases
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 106 on Do: Start snap "test-snapd-tools" (unset) services
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 107 on Do: Run configure hook of "test-snapd-tools" snap if present
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: daemon.go:176: DEBUG: uid=0;@ GET /v2/snaps?snaps=test-snapd-tools 535.269µs 200
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: daemon.go:176: DEBUG: uid=0;@ GET /v2/snaps 1.368054ms 200
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: daemon.go:176: DEBUG: uid=0;@ GET /v2/snaps 853.202µs 200
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: daemon.go:176: DEBUG: uid=0;@ POST /v2/snaps 10.123604ms 202
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 108 on Do: Prepare snap "/tmp/snapd-sideload-pkg-074539812" (unset)
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 109 on Do: Mount snap "test-snapd-tools" (unset)
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 110 on Do: Stop snap "test-snapd-tools" services
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 111 on Do: Remove aliases for snap "test-snapd-tools"
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 112 on Do: Make current revision for snap "test-snapd-tools" unavailable
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 113 on Do: Copy snap "test-snapd-tools" data
Jul 05 14:53:27 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 114 on Do: Setup snap "test-snapd-tools" (unset) security profiles
Jul 05 14:53:28 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 115 on Do: Make snap "test-snapd-tools" (unset) available to the system
Jul 05 14:53:28 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 116 on Do: Setup snap "test-snapd-tools" (unset) security profiles (phase 2)
Jul 05 14:53:28 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 117 on Do: Set automatic aliases for snap "test-snapd-tools"
Jul 05 14:53:28 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 118 on Do: Setup snap "test-snapd-tools" aliases
Jul 05 14:53:28 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 119 on Do: Start snap "test-snapd-tools" (unset) services
Jul 05 14:53:28 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 120 on Do: Clean up "test-snapd-tools" (unset) install
Jul 05 14:53:28 localhost.localdomain /usr/lib/snapd/snapd[5795]: taskrunner.go:367: DEBUG: Running task 121 on Do: Run configure hook of "test-snapd-tools" snap if present
Jul 05 14:53:28 localhost.localdomain /usr/lib/snapd/snapd[5795]: daemon.go:176: DEBUG: uid=0;@ GET /v2/snaps?snaps=test-snapd-tools 342.494µs 200
Jul 05 14:53:28 localhost.localdomain /usr/lib/snapd/snapd[5795]: daemon.go:176: DEBUG: uid=0;@ GET /v2/snaps?select=all 7.800006ms 500
+ echo '# apparmor denials '
# apparmor denials
+ dmesg --ctime
+ grep DENIED
+ true
+ echo '# seccomp denials (kills) '
# seccomp denials (kills)
+ dmesg --ctime
+ grep type=1326
+ true
+ echo '# snap interfaces'
# snap interfaces
+ snap interfaces
Slot Plug
:account-control -
:alsa -
:autopilot-introspection -
:bluetooth-control -
:browser-support -
:camera -
:classic-support -
:core-support core:core-support-plug
:dcdbas-control -
:docker-support -
:firewall-control -
:framebuffer -
:fuse-support -
:hardware-observe -
:hardware-random-control -
:hardware-random-observe -
:home -
:io-ports-control -
:joystick -
:kernel-module-control -
:kubernetes-support -
:log-observe -
:lxd-support -
:mount-observe -
:netlink-audit -
:netlink-connector -
:network -
:network-bind -
:network-control -
:network-observe -
:network-setup-control -
:network-setup-observe -
:opengl -
:openvswitch-support -
:physical-memory-control -
:physical-memory-observe -
:ppp -
:process-control -
:raw-usb -
:removable-media -
:shutdown -
:snapd-control -
:system-observe -
:system-trace -
:time-control -
:timeserver-control -
:timezone-control -
:tpm -
:uhid -
-----
2017/07/05 16:53:28 Starting shell to debug...
external:ubuntu-core-16-64 .../tests/main/listing# snap list
Name Version Rev Developer Notes
core 16-2.26.8 2329 canonical -
pc 16.04-0.8 9 canonical -
pc-kernel 4.4.0-71.92 60 canonical -
test-snapd-tools 1.0 x2 -
external:ubuntu-core-16-64 .../tests/main/listing# snap list --all
error: cannot list snaps: cannot list local snaps! cannot find installed snap "core" at revision 1441
external:ubuntu-core-16-64 .../tests/main/listing# ls /var/lib/snapd/snaps/
core_1441.snap core_2312.snap core_2329.snap pc-kernel_45.snap pc-kernel_60.snap pc_9.snap test-snapd-tools_x1.snap test-snapd-tools_x2.snap
external:ubuntu-core-16-64 .../tests/main/listing# snap changes
ID Status Spawn Ready Summary
1 Done 2017-07-05T14:20:00Z 2017-07-05T14:20:03Z Initialize system state
2 Done 2017-07-05T14:20:02Z 2017-07-05T14:20:05Z Initialize device
3 Done 2017-07-05T14:21:45Z 2017-07-05T14:23:55Z Refresh snaps "core", "pc-kernel"
4 Done 2017-07-05T14:24:44Z 2017-07-05T14:25:46Z Refresh "core" snap from "beta" channel
5 Done 2017-07-05T14:26:58Z 2017-07-05T14:26:58Z Refresh all snaps: no updates
6 Done 2017-07-05T14:27:30Z 2017-07-05T14:27:33Z Install "test-snapd-snapbuild" snap from "edge" channel
7 Done 2017-07-05T14:27:33Z 2017-07-05T14:27:34Z Remove "test-snapd-snapbuild" snap
8 Done 2017-07-05T14:27:34Z 2017-07-05T14:27:34Z Change configuration of "core" snap
9 Done 2017-07-05T14:27:34Z 2017-07-05T14:27:34Z Change configuration of "core" snap
10 Done 2017-07-05T14:27:34Z 2017-07-05T14:27:35Z Change configuration of "core" snap
11 Done 2017-07-05T14:53:24Z 2017-07-05T14:53:27Z Install "test-snapd-tools" snap from file "/home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-tools/test-snapd-tools_1.0_all.snap"
12 Done 2017-07-05T14:53:27Z 2017-07-05T14:53:28Z Install "test-snapd-tools" snap from file "/home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-tools/test-snapd-tools_1.0_all.snap"
external:ubuntu-core-16-64 .../tests/main/listing# snap change 3
Status Spawn Ready Summary
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:07Z Download snap "core" (2312) from channel "stable"
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:09Z Fetch and check assertions for snap "core" (2312)
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:09Z Mount snap "core" (2312)
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:09Z Stop snap "core" services
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:09Z Remove aliases for snap "core"
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:09Z Make current revision for snap "core" unavailable
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:09Z Copy snap "core" data
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:09Z Setup snap "core" (2312) security profiles
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:09Z Make snap "core" (2312) available to the system
Done 2017-07-05T14:21:45Z 2017-07-05T14:23:55Z Setup snap "core" (2312) security profiles (phase 2)
Done 2017-07-05T14:21:45Z 2017-07-05T14:23:55Z Set automatic aliases for snap "core"
Done 2017-07-05T14:21:45Z 2017-07-05T14:23:55Z Setup snap "core" aliases
Done 2017-07-05T14:21:45Z 2017-07-05T14:23:55Z Start snap "core" (2312) services
Done 2017-07-05T14:21:45Z 2017-07-05T14:23:55Z Clean up "core" (2312) install
Done 2017-07-05T14:21:45Z 2017-07-05T14:23:55Z Run configure hook of "core" snap if present
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:12Z Download snap "pc-kernel" (60) from channel "stable"
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Fetch and check assertions for snap "pc-kernel" (60)
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Mount snap "pc-kernel" (60)
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Stop snap "pc-kernel" services
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Remove aliases for snap "pc-kernel"
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Make current revision for snap "pc-kernel" unavailable
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Copy snap "pc-kernel" data
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Setup snap "pc-kernel" (60) security profiles
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Make snap "pc-kernel" (60) available to the system
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Set automatic aliases for snap "pc-kernel"
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Setup snap "pc-kernel" aliases
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Start snap "pc-kernel" (60) services
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Clean up "pc-kernel" (60) install
Done 2017-07-05T14:21:45Z 2017-07-05T14:22:14Z Run configure hook of "pc-kernel" snap if present
......................................................................
Make snap "core" (2312) available to the system
2017-07-05T14:22:09Z INFO Requested system restart.
......................................................................
Setup snap "core" (2312) security profiles (phase 2)
2017-07-05T14:22:14Z INFO Waiting for restart...
2017-07-05T14:22:14Z INFO Waiting for restart...
2017-07-05T14:22:14Z INFO Waiting for restart...
2017-07-05T14:22:14Z INFO Waiting for restart...
2017-07-05T14:22:14Z INFO Waiting for restart...
2017-07-05T14:22:14Z INFO Waiting for restart...
2017-07-05T14:22:14Z INFO Waiting for restart...
2017-07-05T14:22:14Z INFO Waiting for restart...
2017-07-05T14:22:14Z INFO Waiting for restart...
2017-07-05T14:22:14Z INFO Waiting for restart...
......................................................................
Make snap "pc-kernel" (60) available to the system
2017-07-05T14:22:14Z INFO Requested system restart.
|