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 | 2017-07-29 00:01:29 Found /home/sergio/workspace/snapcore/snapd/spread.yaml.
2017-07-29 00:01:31 Project content is packed for delivery (1.31MB).
2017-07-29 00:01:31 Sequence of jobs produced with -seed=1501297291
2017-07-29 00:01:31 Allocating external:ubuntu-core-16-arm-32...
2017-07-29 00:01:31 Waiting for external:ubuntu-core-16-arm-32 to make SSH available at 10.42.0.66...
2017-07-29 00:01:31 Allocated external:ubuntu-core-16-arm-32.
2017-07-29 00:01:31 If killed, discard servers with: spread -reuse-pid=31513 -discard
2017-07-29 00:01:31 Connecting to external:ubuntu-core-16-arm-32...
2017-07-29 00:01:31 Connected to external:ubuntu-core-16-arm-32 at 10.42.0.66.
2017-07-29 00:01:31 Sending project content to external:ubuntu-core-16-arm-32...
2017-07-29 00:01:33 Preparing project on external:ubuntu-core-16-arm-32...
2017-07-29 00:01:58 Preparing external:ubuntu-core-16-arm-32:tests/main/...
2017-07-29 00:02:53 Error preparing external:ubuntu-core-16-arm-32:tests/main/ :
-----
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/prepare.sh
++ set -eux
++ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/dirs.sh
+++ export SNAPMOUNTDIR=/snap
+++ SNAPMOUNTDIR=/snap
+++ export LIBEXECDIR=/usr/lib
+++ LIBEXECDIR=/usr/lib
+++ case "$SPREAD_SYSTEM" in
++ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps.sh
++ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/pkgdb.sh
+++ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/quiet.sh
+++ DISTRO_BUILD_DEPS=()
+++ export DISTRO_BUILD_DEPS
+++ case "$SPREAD_SYSTEM" in
+++ DISTRO_BUILD_DEPS=(build-essential curl devscripts expect gdebi-core jq rng-tools git netcat-openbsd)
+ [[ ubuntu-core-16-arm-32 == ubuntu-core-16-* ]]
+ prepare_all_snap
+ '[' -e /var/lib/dpkg/status ']'
+ '[' 0 = 1 ']'
+ echo 'Wait for firstboot change to be ready'
Wait for firstboot change to be ready
+ snap changes
+ grep Done
1 Done 2017-07-29T00:04:17Z 2017-07-29T00:04:46Z Initialize system state
2 Done 2017-07-29T00:04:42Z 2017-07-29T02:57:55Z Initialize device
3 Done 2017-07-29T03:01:34Z 2017-07-29T03:01:48Z Install "test-snapd-snapbuild" snap from "edge" channel
4 Done 2017-07-29T03:01:49Z 2017-07-29T03:01:54Z Remove "test-snapd-snapbuild" snap
5 Done 2017-07-29T03:01:55Z 2017-07-29T03:01:58Z Change configuration of "core" snap
+ echo 'Ensure fundamental snaps are still present'
Ensure fundamental snaps are still present
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/names.sh
+++ snap list
+++ sed -n 's/^\(pc\|pi[23]\|dragonboard\) .*/\1/p'
++ gadget_name=pi2
++ kernel_name=pi2-kernel
++ '[' pi2-kernel = pi3-kernel ']'
+ for name in '"$gadget_name"' '"$kernel_name"' core
+ snap list pi2
Name Version Rev Developer Notes
pi2 16.04-0.17 29 canonical gadget
+ for name in '"$gadget_name"' '"$kernel_name"' core
+ snap list pi2-kernel
Name Version Rev Developer Notes
pi2-kernel 4.4.0-1065.73 35 canonical kernel
+ for name in '"$gadget_name"' '"$kernel_name"' core
+ snap list core
Name Version Rev Developer Notes
core 16-2.27 2515 canonical core
+ '[' -e /snap/core/current/meta/hooks/configure ']'
++ date +%a --date=2days
+ snap set core refresh.schedule=Mon@12:00-14:00
+ snap set core refresh.disabled=true
+ '[' '!' -f /home/gopath/src/github.com/snapcore/snapd/snapd-state.tar.gz ']'
+ BOOT=
+ ls /boot/uboot/bcm2708-rpi-b-plus.dtb /boot/uboot/bcm2708-rpi-b.dtb /boot/uboot/bcm2709-rpi-2-b.dtb /boot/uboot/bcm2710-rpi-3-b.dtb /boot/uboot/bcm2710-rpi-cm3.dtb /boot/uboot/bootcode.bin /boot/uboot/cmdline.txt /boot/uboot/config.txt /boot/uboot/fixup.dat /boot/uboot/fixup_cd.dat /boot/uboot/fixup_x.dat /boot/uboot/pi2-kernel_35.snap /boot/uboot/start.elf /boot/uboot/start_cd.elf /boot/uboot/start_x.elf /boot/uboot/uboot.bin /boot/uboot/uboot.env
/boot/uboot/bcm2708-rpi-b-plus.dtb
/boot/uboot/bcm2708-rpi-b.dtb
/boot/uboot/bcm2709-rpi-2-b.dtb
/boot/uboot/bcm2710-rpi-3-b.dtb
/boot/uboot/bcm2710-rpi-cm3.dtb
/boot/uboot/bootcode.bin
/boot/uboot/cmdline.txt
/boot/uboot/config.txt
/boot/uboot/fixup.dat
/boot/uboot/fixup_cd.dat
/boot/uboot/fixup_x.dat
/boot/uboot/start.elf
/boot/uboot/start_cd.elf
/boot/uboot/start_x.elf
/boot/uboot/uboot.bin
/boot/uboot/uboot.env
/boot/uboot/pi2-kernel_35.snap:
dtbs
initrd.img
kernel.img
+ BOOT=/boot/uboot/
+ systemctl stop snapd.service snapd.socket
+ tar czf /home/gopath/src/github.com/snapcore/snapd/snapd-state.tar.gz /var/lib/snapd /boot/uboot/ /etc/systemd/system/snap-core-2515.mount
tar: Removing leading `/' from member names
gzip: stdout: No space left on device
-----
.
2017-07-29 00:02:53 Restoring external:ubuntu-core-16-arm-32:tests/main/...
2017-07-29 00:02:58 Error restoring external:ubuntu-core-16-arm-32:tests/main/ :
-----
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/reset.sh --store
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/dirs.sh
++ export SNAPMOUNTDIR=/snap
++ SNAPMOUNTDIR=/snap
++ export LIBEXECDIR=/usr/lib
++ LIBEXECDIR=/usr/lib
++ case "$SPREAD_SYSTEM" in
+ [[ ubuntu-core-16-arm-32 == ubuntu-core-16-* ]]
+ reset_all_snap --store
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/names.sh
+++ snap list
+++ sed -n 's/^\(pc\|pi[23]\|dragonboard\) .*/\1/p'
error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: connection refused
++ gadget_name=
++ kernel_name=-kernel
++ '[' -kernel = pi3-kernel ']'
+ for snap in '"$SNAPMOUNTDIR"/*'
+ snap=bin
+ case "$snap" in
+ for snap in '"$SNAPMOUNTDIR"/*'
+ snap=core
+ case "$snap" in
+ for snap in '"$SNAPMOUNTDIR"/*'
+ snap=pi2
+ case "$snap" in
+ snap remove pi2
error: cannot communicate with server: Post http://localhost/v2/snaps/pi2: dial unix /run/snapd.socket: connect: connection refused
-----
.
2017-07-29 00:02:58 Restoring external:ubuntu-core-16-arm-32:tests/main/...
2017-07-29 00:03:03 Error restoring external:ubuntu-core-16-arm-32:tests/main/ :
-----
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/reset.sh --store
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/dirs.sh
++ export SNAPMOUNTDIR=/snap
++ SNAPMOUNTDIR=/snap
++ export LIBEXECDIR=/usr/lib
++ LIBEXECDIR=/usr/lib
++ case "$SPREAD_SYSTEM" in
+ [[ ubuntu-core-16-arm-32 == ubuntu-core-16-* ]]
+ reset_all_snap --store
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/names.sh
+++ snap list
+++ sed -n 's/^\(pc\|pi[23]\|dragonboard\) .*/\1/p'
error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: connection refused
++ gadget_name=
++ kernel_name=-kernel
++ '[' -kernel = pi3-kernel ']'
+ for snap in '"$SNAPMOUNTDIR"/*'
+ snap=bin
+ case "$snap" in
+ for snap in '"$SNAPMOUNTDIR"/*'
+ snap=core
+ case "$snap" in
+ for snap in '"$SNAPMOUNTDIR"/*'
+ snap=pi2
+ case "$snap" in
+ snap remove pi2
error: cannot communicate with server: Post http://localhost/v2/snaps/pi2: dial unix /run/snapd.socket: connect: connection refused
-----
.
2017-07-29 00:03:03 Restoring project on external:ubuntu-core-16-arm-32...
2017-07-29 00:03:05 Error restoring project on external:ubuntu-core-16-arm-32 :
-----
+ '[' external = external ']'
+ '[' -e /snap/core/current/meta/hooks/configure ']'
+ systemctl enable --now snapd.refresh.timer
Created symlink from /etc/systemd/system/timers.target.wants/snapd.refresh.timer to /lib/systemd/system/snapd.refresh.timer.
+ snap set core refresh.disabled=false
error: cannot communicate with server: Put http://localhost/v2/snaps/core/conf: dial unix /run/snapd.socket: connect: connection refused
-----
.
2017-07-29 00:03:05 Discarding external:ubuntu-core-16-arm-32...
2017-07-29 00:03:05 Successful tasks: 0
2017-07-29 00:03:05 Aborted tasks: 129
2017-07-29 00:03:05 Failed suite prepare: 1
- external:ubuntu-core-16-arm-32:tests/main/
2017-07-29 00:03:05 Failed suite restore: 2
- external:ubuntu-core-16-arm-32:tests/main/
- external:ubuntu-core-16-arm-32:tests/main/
2017-07-29 00:03:05 Failed project restore: 1
- external:ubuntu-core-16-arm-32:project
error: unsuccessful run
|