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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963 | sergio@cachiomachine:~/workspace/snapcore/snapd$ ../spread/spread -v external:ubuntu-core-16-64 | tee resultsamd64.log
2017-08-01 00:20:37 Found /home/sergio/workspace/snapcore/snapd/spread.yaml.
2017-08-01 00:20:38 Project content is packed for delivery (1.42MB).
2017-08-01 00:20:38 Sequence of jobs produced with -seed=1501557638
2017-08-01 00:20:38 Allocating external:ubuntu-core-16-64...
2017-08-01 00:20:38 Waiting for external:ubuntu-core-16-64 to make SSH available at localhost:8023...
2017-08-01 00:20:38 Allocated external:ubuntu-core-16-64.
2017-08-01 00:20:38 If killed, discard servers with: spread -reuse-pid=10161 -discard
2017-08-01 00:20:38 Connecting to external:ubuntu-core-16-64...
2017-08-01 00:20:38 Connected to external:ubuntu-core-16-64 at localhost:8023.
2017-08-01 00:20:38 Sending project content to external:ubuntu-core-16-64...
2017-08-01 00:20:39 Preparing project on external:ubuntu-core-16-64...
2017-08-01 00:21:17 Preparing external:ubuntu-core-16-64:tests/main/...
2017-08-01 00:21:40 Preparing external:ubuntu-core-16-64:tests/main/revert:fake...
2017-08-01 00:21:44 Executing external:ubuntu-core-16-64:tests/main/revert:fake (1/140)...
2017-08-01 00:21:44 Restoring external:ubuntu-core-16-64:tests/main/revert:fake...
2017-08-01 00:21:44 Preparing external:ubuntu-core-16-64:tests/main/install-sideload:reexec0...
2017-08-01 00:21:49 Executing external:ubuntu-core-16-64:tests/main/install-sideload:reexec0 (2/140)...
2017-08-01 00:21:59 Restoring external:ubuntu-core-16-64:tests/main/install-sideload:reexec0...
2017-08-01 00:21:59 Preparing external:ubuntu-core-16-64:tests/main/snap-service...
2017-08-01 00:22:07 Executing external:ubuntu-core-16-64:tests/main/snap-service (3/140)...
2017-08-01 00:22:07 Preparing external:ubuntu-core-16-64:tests/main/snap-debug-get-base-declaration...
2017-08-01 00:22:13 Executing external:ubuntu-core-16-64:tests/main/snap-debug-get-base-declaration (4/140)...
2017-08-01 00:22:13 Preparing external:ubuntu-core-16-64:tests/main/op-remove...
2017-08-01 00:22:17 Executing external:ubuntu-core-16-64:tests/main/op-remove (5/140)...
2017-08-01 00:22:19 Restoring external:ubuntu-core-16-64:tests/main/op-remove...
2017-08-01 00:22:19 Preparing external:ubuntu-core-16-64:tests/main/remove-errors...
2017-08-01 00:22:23 Executing external:ubuntu-core-16-64:tests/main/remove-errors (6/140)...
2017-08-01 00:22:25 Preparing external:ubuntu-core-16-64:tests/main/security-profiles...
2017-08-01 00:22:29 Executing external:ubuntu-core-16-64:tests/main/security-profiles (7/140)...
2017-08-01 00:22:31 Restoring external:ubuntu-core-16-64:tests/main/security-profiles...
2017-08-01 00:22:31 Preparing external:ubuntu-core-16-64:tests/main/alias...
2017-08-01 00:22:37 Executing external:ubuntu-core-16-64:tests/main/alias (8/140)...
2017-08-01 00:22:39 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-custom-device-reg-extras...
2017-08-01 00:22:43 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-custom-device-reg-extras (9/140)...
2017-08-01 00:22:43 Restoring external:ubuntu-core-16-64:tests/main/ubuntu-core-custom-device-reg-extras...
2017-08-01 00:22:43 Preparing external:ubuntu-core-16-64:tests/main/interfaces-account-control...
2017-08-01 00:22:48 Executing external:ubuntu-core-16-64:tests/main/interfaces-account-control (10/140)...
2017-08-01 00:22:49 Error executing external:ubuntu-core-16-64:tests/main/interfaces-account-control :
-----
+ . /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
+ /snap/bin/account-control-consumer.useradd --extrausers alice
useradd: user 'alice' already exists
-----
.
2017-08-01 00:22:49 Debug output for external:ubuntu-core-16-64:tests/main/interfaces-account-control :
-----
+ echo '# journal messages for snapd'
# journal messages for snapd
+ journalctl -u snapd
-- Logs begin at Tue 2017-08-01 03:22:43 UTC, end at Tue 2017-08-01 03:22:49 UTC. --
Aug 01 03:22:43 localhost.localdomain systemd[1]: Stopping Snappy daemon...
Aug 01 03:22:43 localhost.localdomain snapd[10028]: 2017/08/01 03:22:43.745706 main.go:78: Exiting on terminated signal.
Aug 01 03:22:43 localhost.localdomain systemd[1]: Stopped Snappy daemon.
Aug 01 03:22:47 localhost.localdomain systemd[1]: Starting Snappy daemon...
Aug 01 03:22:47 localhost.localdomain snapd[10087]: 2017/08/01 03:22:47.676357 daemon.go:252: started snapd/2.27~rc4 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-83-generic.
Aug 01 03:22:47 localhost.localdomain systemd[1]: Started Snappy daemon.
+ echo '# apparmor denials '
# apparmor denials
+ dmesg --ctime
+ grep DENIED
[Tue Aug 1 03:22:48 2017] audit: type=1400 audit(1501557769.185:381): apparmor="DENIED" operation="create" profile="snap.account-control-consumer.useradd" pid=10272 comm="snap-exec" family="inet" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
+ echo '# seccomp denials (kills) '
# seccomp denials (kills)
+ dmesg --ctime
+ grep type=1326
+ true
+ echo '# snap interfaces'
# snap interfaces
+ snap interfaces
Slot Plug
:account-control account-control-consumer
: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 -
:greengrass-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-08-01 00:22:49 Preparing external:ubuntu-core-16-64:tests/main/failover:rclocalcrash...
2017-08-01 00:22:53 Executing external:ubuntu-core-16-64:tests/main/failover:rclocalcrash (11/140)...
2017-08-01 00:23:34 Rebooting external:ubuntu-core-16-64 as requested...
2017-08-01 00:23:55 Restoring external:ubuntu-core-16-64:tests/main/failover:rclocalcrash...
2017-08-01 00:23:55 Preparing external:ubuntu-core-16-64:tests/main/interfaces-kernel-module-control...
2017-08-01 00:24:22 Executing external:ubuntu-core-16-64:tests/main/interfaces-kernel-module-control (12/140)...
2017-08-01 00:24:23 Restoring external:ubuntu-core-16-64:tests/main/interfaces-kernel-module-control...
2017-08-01 00:24:23 Preparing external:ubuntu-core-16-64:tests/main/interfaces-mount-observe...
2017-08-01 00:24:30 Executing external:ubuntu-core-16-64:tests/main/interfaces-mount-observe (13/140)...
2017-08-01 00:24:32 Restoring external:ubuntu-core-16-64:tests/main/interfaces-mount-observe...
2017-08-01 00:24:32 Preparing external:ubuntu-core-16-64:tests/main/interfaces-network...
2017-08-01 00:24:39 Executing external:ubuntu-core-16-64:tests/main/interfaces-network (14/140)...
2017-08-01 00:24:41 Restoring external:ubuntu-core-16-64:tests/main/interfaces-network...
2017-08-01 00:24:41 Preparing external:ubuntu-core-16-64:tests/main/interfaces-cli...
2017-08-01 00:24:46 Executing external:ubuntu-core-16-64:tests/main/interfaces-cli (15/140)...
2017-08-01 00:24:46 Restoring external:ubuntu-core-16-64:tests/main/interfaces-cli...
2017-08-01 00:24:46 Preparing external:ubuntu-core-16-64:tests/main/snap-seccomp...
2017-08-01 00:24:51 Executing external:ubuntu-core-16-64:tests/main/snap-seccomp (16/140)...
2017-08-01 00:27:08 Preparing external:ubuntu-core-16-64:tests/main/refresh-undo...
2017-08-01 00:27:12 Executing external:ubuntu-core-16-64:tests/main/refresh-undo (17/140)...
2017-08-01 00:27:18 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-grub:vmlinuz...
2017-08-01 00:27:23 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-grub:vmlinuz (18/140)...
2017-08-01 00:27:23 Preparing external:ubuntu-core-16-64:tests/main/enable-disable-units-gpio...
2017-08-01 00:27:27 Executing external:ubuntu-core-16-64:tests/main/enable-disable-units-gpio (19/140)...
2017-08-01 00:27:27 Restoring external:ubuntu-core-16-64:tests/main/enable-disable-units-gpio...
2017-08-01 00:27:27 Preparing external:ubuntu-core-16-64:tests/main/help:install...
2017-08-01 00:27:31 Executing external:ubuntu-core-16-64:tests/main/help:install (20/140)...
2017-08-01 00:27:31 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-apt...
2017-08-01 00:27:35 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-apt (21/140)...
2017-08-01 00:27:35 Preparing external:ubuntu-core-16-64:tests/main/snap-discard-ns...
2017-08-01 00:27:41 Executing external:ubuntu-core-16-64:tests/main/snap-discard-ns (22/140)...
2017-08-01 00:27:41 Preparing external:ubuntu-core-16-64:tests/main/ack...
2017-08-01 00:27:46 Executing external:ubuntu-core-16-64:tests/main/ack (23/140)...
2017-08-01 00:27:46 Preparing external:ubuntu-core-16-64:tests/main/searching...
2017-08-01 00:27:50 Executing external:ubuntu-core-16-64:tests/main/searching (24/140)...
2017-08-01 00:27:58 Preparing external:ubuntu-core-16-64:tests/main/xauth-migration...
2017-08-01 00:28:01 Executing external:ubuntu-core-16-64:tests/main/xauth-migration (25/140)...
2017-08-01 00:28:14 Preparing external:ubuntu-core-16-64:tests/main/interfaces-locale-control...
2017-08-01 00:28:19 Executing external:ubuntu-core-16-64:tests/main/interfaces-locale-control (26/140)...
2017-08-01 00:28:19 Restoring external:ubuntu-core-16-64:tests/main/interfaces-locale-control...
2017-08-01 00:28:19 Preparing external:ubuntu-core-16-64:tests/main/interfaces-log-observe...
2017-08-01 00:28:24 Executing external:ubuntu-core-16-64:tests/main/interfaces-log-observe (27/140)...
2017-08-01 00:28:25 Restoring external:ubuntu-core-16-64:tests/main/interfaces-log-observe...
2017-08-01 00:28:25 Preparing external:ubuntu-core-16-64:tests/main/interfaces-alsa...
2017-08-01 00:28:31 Executing external:ubuntu-core-16-64:tests/main/interfaces-alsa (28/140)...
2017-08-01 00:28:31 Restoring external:ubuntu-core-16-64:tests/main/interfaces-alsa...
2017-08-01 00:28:31 Preparing external:ubuntu-core-16-64:tests/main/security-device-cgroups:uinput...
2017-08-01 00:28:36 Executing external:ubuntu-core-16-64:tests/main/security-device-cgroups:uinput (29/140)...
2017-08-01 00:28:38 Restoring external:ubuntu-core-16-64:tests/main/security-device-cgroups:uinput...
2017-08-01 00:28:38 Preparing external:ubuntu-core-16-64:tests/main/snap-info...
2017-08-01 00:28:55 Executing external:ubuntu-core-16-64:tests/main/snap-info (30/140)...
2017-08-01 00:28:58 Restoring external:ubuntu-core-16-64:tests/main/snap-info...
2017-08-01 00:28:58 Preparing external:ubuntu-core-16-64:tests/main/snapctl...
2017-08-01 00:29:05 Executing external:ubuntu-core-16-64:tests/main/snapctl (31/140)...
2017-08-01 00:29:05 Restoring external:ubuntu-core-16-64:tests/main/snapctl...
2017-08-01 00:29:05 Preparing external:ubuntu-core-16-64:tests/main/snapctl-from-snap...
2017-08-01 00:29:21 Executing external:ubuntu-core-16-64:tests/main/snapctl-from-snap (32/140)...
2017-08-01 00:29:24 Restoring external:ubuntu-core-16-64:tests/main/snapctl-from-snap...
2017-08-01 00:29:24 Preparing external:ubuntu-core-16-64:tests/main/auto-aliases...
2017-08-01 00:29:29 Executing external:ubuntu-core-16-64:tests/main/auto-aliases (33/140)...
2017-08-01 00:29:43 Preparing external:ubuntu-core-16-64:tests/main/interfaces-udev...
2017-08-01 00:29:49 Executing external:ubuntu-core-16-64:tests/main/interfaces-udev (34/140)...
2017-08-01 00:29:49 Restoring external:ubuntu-core-16-64:tests/main/interfaces-udev...
2017-08-01 00:29:49 Preparing external:ubuntu-core-16-64:tests/main/snapd-notify...
2017-08-01 00:29:53 Executing external:ubuntu-core-16-64:tests/main/snapd-notify (35/140)...
2017-08-01 00:29:54 Error executing external:ubuntu-core-16-64:tests/main/snapd-notify :
-----
++ seq 5
+ for _ in '$(seq 5)'
+ MATCH 'Active: active'
+ systemctl status snapd.service
+ journalctl -u snapd
+ MATCH 'activation done in'
error: pattern not found, got:
-- Logs begin at Tue 2017-08-01 03:29:49 UTC, end at Tue 2017-08-01 03:29:54 UTC. --
Aug 01 03:29:50 localhost.localdomain systemd[1]: Stopping Snappy daemon...
Aug 01 03:29:50 localhost.localdomain snapd[8306]: 2017/08/01 03:29:50.146515 main.go:78: Exiting on terminated signal.
Aug 01 03:29:50 localhost.localdomain systemd[1]: Stopped Snappy daemon.
Aug 01 03:29:53 localhost.localdomain systemd[1]: Starting Snappy daemon...
Aug 01 03:29:54 localhost.localdomain snapd[8673]: 2017/08/01 03:29:54.123089 daemon.go:252: started snapd/2.27~rc4 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-83-generic.
Aug 01 03:29:54 localhost.localdomain systemd[1]: Started Snappy daemon.
-----
.
2017-08-01 00:29:54 Debug output for external:ubuntu-core-16-64:tests/main/snapd-notify :
-----
+ echo '# journal messages for snapd'
# journal messages for snapd
+ journalctl -u snapd
-- Logs begin at Tue 2017-08-01 03:29:49 UTC, end at Tue 2017-08-01 03:29:54 UTC. --
Aug 01 03:29:50 localhost.localdomain systemd[1]: Stopping Snappy daemon...
Aug 01 03:29:50 localhost.localdomain snapd[8306]: 2017/08/01 03:29:50.146515 main.go:78: Exiting on terminated signal.
Aug 01 03:29:50 localhost.localdomain systemd[1]: Stopped Snappy daemon.
Aug 01 03:29:53 localhost.localdomain systemd[1]: Starting Snappy daemon...
Aug 01 03:29:54 localhost.localdomain snapd[8673]: 2017/08/01 03:29:54.123089 daemon.go:252: started snapd/2.27~rc4 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-83-generic.
Aug 01 03:29:54 localhost.localdomain systemd[1]: Started Snappy daemon.
+ 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 -
:greengrass-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-08-01 00:29:54 Preparing external:ubuntu-core-16-64:tests/main/security-device-cgroups:kmsg...
2017-08-01 00:29:58 Executing external:ubuntu-core-16-64:tests/main/security-device-cgroups:kmsg (36/140)...
2017-08-01 00:30:00 Restoring external:ubuntu-core-16-64:tests/main/security-device-cgroups:kmsg...
2017-08-01 00:30:00 Preparing external:ubuntu-core-16-64:tests/main/security-apparmor...
2017-08-01 00:30:06 Executing external:ubuntu-core-16-64:tests/main/security-apparmor (37/140)...
2017-08-01 00:30:06 Restoring external:ubuntu-core-16-64:tests/main/security-apparmor...
2017-08-01 00:30:06 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-writablepaths...
2017-08-01 00:30:11 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-writablepaths (38/140)...
2017-08-01 00:30:11 Preparing external:ubuntu-core-16-64:tests/main/interfaces-network-control...
2017-08-01 00:30:16 Executing external:ubuntu-core-16-64:tests/main/interfaces-network-control (39/140)...
2017-08-01 00:30:19 Restoring external:ubuntu-core-16-64:tests/main/interfaces-network-control...
2017-08-01 00:30:19 Preparing external:ubuntu-core-16-64:tests/main/server-snap:pythonServer...
2017-08-01 00:33:19 WARNING: external:ubuntu-core-16-64 running late. Current output:
-----
(... 54 lines above ...)
++ . /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-64 != ubuntu-core-16-* ]]
+ snap install test-snapd-python-webserver
test-snapd-python-webserver 7.27 MB / 8.44 MB 86.06% 44.49 KB/s 27sss48s
-----
.
2017-08-01 00:33:52 Executing external:ubuntu-core-16-64:tests/main/server-snap:pythonServer (40/140)...
2017-08-01 00:33:53 Restoring external:ubuntu-core-16-64:tests/main/server-snap:pythonServer...
2017-08-01 00:33:53 Preparing external:ubuntu-core-16-64:tests/main/help:changes...
2017-08-01 00:33:58 Executing external:ubuntu-core-16-64:tests/main/help:changes (41/140)...
2017-08-01 00:33:58 Preparing external:ubuntu-core-16-64:tests/main/help:find...
2017-08-01 00:34:02 Executing external:ubuntu-core-16-64:tests/main/help:find (42/140)...
2017-08-01 00:34:02 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-gadget-config-defaults...
2017-08-01 00:34:06 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-gadget-config-defaults (43/140)...
2017-08-01 00:34:06 Restoring external:ubuntu-core-16-64:tests/main/ubuntu-core-gadget-config-defaults...
2017-08-01 00:34:06 Preparing external:ubuntu-core-16-64:tests/main/install-store:reexec1...
2017-08-01 00:34:10 Executing external:ubuntu-core-16-64:tests/main/install-store:reexec1 (44/140)...
2017-08-01 00:34:52 Preparing external:ubuntu-core-16-64:tests/main/find-private...
2017-08-01 00:34:57 Executing external:ubuntu-core-16-64:tests/main/find-private (45/140)...
2017-08-01 00:35:00 Restoring external:ubuntu-core-16-64:tests/main/find-private...
2017-08-01 00:35:00 Preparing external:ubuntu-core-16-64:tests/main/econnreset...
2017-08-01 00:35:04 Executing external:ubuntu-core-16-64:tests/main/econnreset (46/140)...
2017-08-01 00:35:15 Restoring external:ubuntu-core-16-64:tests/main/econnreset...
2017-08-01 00:35:15 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-grub:initrdimg...
2017-08-01 00:35:19 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-grub:initrdimg (47/140)...
2017-08-01 00:35:19 Preparing external:ubuntu-core-16-64:tests/main/revert-devmode:remote...
2017-08-01 00:35:32 Executing external:ubuntu-core-16-64:tests/main/revert-devmode:remote (48/140)...
2017-08-01 00:35:50 Restoring external:ubuntu-core-16-64:tests/main/revert-devmode:remote...
2017-08-01 00:35:50 Preparing external:ubuntu-core-16-64:tests/main/snap-auto-import-asserts-spools...
2017-08-01 00:35:55 Executing external:ubuntu-core-16-64:tests/main/snap-auto-import-asserts-spools (49/140)...
2017-08-01 00:35:55 Restoring external:ubuntu-core-16-64:tests/main/snap-auto-import-asserts-spools...
2017-08-01 00:35:55 Preparing external:ubuntu-core-16-64:tests/main/snap-env...
2017-08-01 00:36:01 Executing external:ubuntu-core-16-64:tests/main/snap-env (50/140)...
2017-08-01 00:36:01 Restoring external:ubuntu-core-16-64:tests/main/snap-env...
2017-08-01 00:36:01 Preparing external:ubuntu-core-16-64:tests/main/op-remove-retry...
2017-08-01 00:36:06 Executing external:ubuntu-core-16-64:tests/main/op-remove-retry (51/140)...
2017-08-01 00:36:09 Restoring external:ubuntu-core-16-64:tests/main/op-remove-retry...
2017-08-01 00:36:09 Preparing external:ubuntu-core-16-64:tests/main/snap-run-hook:reexec1...
2017-08-01 00:36:13 Executing external:ubuntu-core-16-64:tests/main/snap-run-hook:reexec1 (52/140)...
2017-08-01 00:36:14 Restoring external:ubuntu-core-16-64:tests/main/snap-run-hook:reexec1...
2017-08-01 00:36:14 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-reboot...
2017-08-01 00:36:20 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-reboot (53/140)...
2017-08-01 00:36:20 Rebooting external:ubuntu-core-16-64 as requested...
2017-08-01 00:36:46 Preparing external:ubuntu-core-16-64:tests/main/interfaces-firewall-control...
2017-08-01 00:36:54 Executing external:ubuntu-core-16-64:tests/main/interfaces-firewall-control (54/140)...
2017-08-01 00:36:57 Restoring external:ubuntu-core-16-64:tests/main/interfaces-firewall-control...
2017-08-01 00:36:58 Preparing external:ubuntu-core-16-64:tests/main/interfaces-fuse_support...
2017-08-01 00:38:41 Executing external:ubuntu-core-16-64:tests/main/interfaces-fuse_support (55/140)...
2017-08-01 00:38:41 Restoring external:ubuntu-core-16-64:tests/main/interfaces-fuse_support...
2017-08-01 00:38:41 Preparing external:ubuntu-core-16-64:tests/main/snap-set...
2017-08-01 00:38:48 Executing external:ubuntu-core-16-64:tests/main/snap-set (56/140)...
2017-08-01 00:38:52 Restoring external:ubuntu-core-16-64:tests/main/snap-set...
2017-08-01 00:38:52 Preparing external:ubuntu-core-16-64:tests/main/snap-repair...
2017-08-01 00:38:58 Executing external:ubuntu-core-16-64:tests/main/snap-repair (57/140)...
2017-08-01 00:38:58 Error executing external:ubuntu-core-16-64:tests/main/snap-repair :
-----
+ . /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
+ grep -q ID=ubuntu-core /etc/os-release
+ echo 'Check that the snap-repair timer is active'
Check that the snap-repair timer is active
+ systemctl list-timers
+ MATCH snap-repair.timer
error: pattern not found, got:
NEXT LEFT LAST PASSED UNIT ACTIVATES
Tue 2017-08-01 03:51:27 UTC 12min left n/a n/a systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
1 timers listed.
Pass --all to see loaded but inactive timers, too.
-----
.
2017-08-01 00:38:58 Debug output for external:ubuntu-core-16-64:tests/main/snap-repair :
-----
+ echo '# journal messages for snapd'
# journal messages for snapd
+ journalctl -u snapd
-- Logs begin at Tue 2017-08-01 03:38:52 UTC, end at Tue 2017-08-01 03:38:58 UTC. --
Aug 01 03:38:54 localhost.localdomain systemd[1]: Stopping Snappy daemon...
Aug 01 03:38:54 localhost.localdomain snapd[2171]: 2017/08/01 03:38:54.193283 main.go:78: Exiting on terminated signal.
Aug 01 03:38:54 localhost.localdomain systemd[1]: Stopped Snappy daemon.
Aug 01 03:38:58 localhost.localdomain systemd[1]: Starting Snappy daemon...
Aug 01 03:38:58 localhost.localdomain snapd[2815]: 2017/08/01 03:38:58.098603 daemon.go:252: started snapd/2.27~rc4 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-83-generic.
Aug 01 03:38:58 localhost.localdomain systemd[1]: Started Snappy daemon.
+ 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 -
:greengrass-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-08-01 00:38:58 Preparing external:ubuntu-core-16-64:tests/main/help:abort...
2017-08-01 00:39:02 Executing external:ubuntu-core-16-64:tests/main/help:abort (58/140)...
2017-08-01 00:39:02 Preparing external:ubuntu-core-16-64:tests/main/regression-home-snap-root-owned...
2017-08-01 00:39:07 Executing external:ubuntu-core-16-64:tests/main/regression-home-snap-root-owned (59/140)...
2017-08-01 00:39:07 Preparing external:ubuntu-core-16-64:tests/main/install-store-laaaarge...
2017-08-01 00:39:12 Executing external:ubuntu-core-16-64:tests/main/install-store-laaaarge (60/140)...
2017-08-01 00:39:28 Restoring external:ubuntu-core-16-64:tests/main/install-store-laaaarge...
2017-08-01 00:39:28 Preparing external:ubuntu-core-16-64:tests/main/install-remove-multi...
2017-08-01 00:39:32 Executing external:ubuntu-core-16-64:tests/main/install-remove-multi (61/140)...
2017-08-01 00:39:44 Preparing external:ubuntu-core-16-64:tests/main/failover:emptysystemd...
2017-08-01 00:39:48 Executing external:ubuntu-core-16-64:tests/main/failover:emptysystemd (62/140)...
2017-08-01 00:40:28 Rebooting external:ubuntu-core-16-64 as requested...
2017-08-01 00:40:50 Restoring external:ubuntu-core-16-64:tests/main/failover:emptysystemd...
2017-08-01 00:40:50 Preparing external:ubuntu-core-16-64:tests/main/refresh-devmode:remote...
2017-08-01 00:41:04 Executing external:ubuntu-core-16-64:tests/main/refresh-devmode:remote (63/140)...
2017-08-01 00:41:11 Restoring external:ubuntu-core-16-64:tests/main/refresh-devmode:remote...
2017-08-01 00:41:11 Preparing external:ubuntu-core-16-64:tests/main/revert:remote...
2017-08-01 00:41:26 Executing external:ubuntu-core-16-64:tests/main/revert:remote (64/140)...
2017-08-01 00:41:42 Restoring external:ubuntu-core-16-64:tests/main/revert:remote...
2017-08-01 00:41:42 Preparing external:ubuntu-core-16-64:tests/main/snap-get...
2017-08-01 00:41:50 Executing external:ubuntu-core-16-64:tests/main/snap-get (65/140)...
2017-08-01 00:41:51 Restoring external:ubuntu-core-16-64:tests/main/snap-get...
2017-08-01 00:41:51 Preparing external:ubuntu-core-16-64:tests/main/install-store:reexec0...
2017-08-01 00:41:56 Executing external:ubuntu-core-16-64:tests/main/install-store:reexec0 (66/140)...
2017-08-01 00:42:30 Preparing external:ubuntu-core-16-64:tests/main/revert-devmode:fake...
2017-08-01 00:42:36 Executing external:ubuntu-core-16-64:tests/main/revert-devmode:fake (67/140)...
2017-08-01 00:42:36 Restoring external:ubuntu-core-16-64:tests/main/revert-devmode:fake...
2017-08-01 00:42:36 Preparing external:ubuntu-core-16-64:tests/main/interfaces-hooks...
2017-08-01 00:42:41 Executing external:ubuntu-core-16-64:tests/main/interfaces-hooks (68/140)...
2017-08-01 00:42:42 Restoring external:ubuntu-core-16-64:tests/main/interfaces-hooks...
2017-08-01 00:42:42 Preparing external:ubuntu-core-16-64:tests/main/interfaces-snapd-control...
2017-08-01 00:42:57 Executing external:ubuntu-core-16-64:tests/main/interfaces-snapd-control (69/140)...
2017-08-01 00:43:03 Restoring external:ubuntu-core-16-64:tests/main/interfaces-snapd-control...
2017-08-01 00:43:03 Preparing external:ubuntu-core-16-64:tests/main/refresh:strict_fake...
2017-08-01 00:43:09 Executing external:ubuntu-core-16-64:tests/main/refresh:strict_fake (70/140)...
2017-08-01 00:43:09 Restoring external:ubuntu-core-16-64:tests/main/refresh:strict_fake...
2017-08-01 00:43:09 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-create-user...
2017-08-01 00:43:13 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-create-user (71/140)...
2017-08-01 00:43:13 Restoring external:ubuntu-core-16-64:tests/main/ubuntu-core-create-user...
2017-08-01 00:43:13 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-os-release...
2017-08-01 00:43:17 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-os-release (72/140)...
2017-08-01 00:43:17 Preparing external:ubuntu-core-16-64:tests/main/interfaces-home...
2017-08-01 00:43:22 Executing external:ubuntu-core-16-64:tests/main/interfaces-home (73/140)...
2017-08-01 00:43:25 Restoring external:ubuntu-core-16-64:tests/main/interfaces-home...
2017-08-01 00:43:25 Preparing external:ubuntu-core-16-64:tests/main/refresh-devmode:fake...
2017-08-01 00:43:29 Executing external:ubuntu-core-16-64:tests/main/refresh-devmode:fake (74/140)...
2017-08-01 00:43:29 Restoring external:ubuntu-core-16-64:tests/main/refresh-devmode:fake...
2017-08-01 00:43:29 Preparing external:ubuntu-core-16-64:tests/main/interfaces-iio...
2017-08-01 00:43:33 Executing external:ubuntu-core-16-64:tests/main/interfaces-iio (75/140)...
2017-08-01 00:43:33 Restoring external:ubuntu-core-16-64:tests/main/interfaces-iio...
2017-08-01 00:43:33 Preparing external:ubuntu-core-16-64:tests/main/interfaces-hardware-observe...
2017-08-01 00:43:38 Executing external:ubuntu-core-16-64:tests/main/interfaces-hardware-observe (76/140)...
2017-08-01 00:43:39 Restoring external:ubuntu-core-16-64:tests/main/interfaces-hardware-observe...
2017-08-01 00:43:39 Preparing external:ubuntu-core-16-64:tests/main/interfaces-time-control...
2017-08-01 00:43:44 Executing external:ubuntu-core-16-64:tests/main/interfaces-time-control (77/140)...
2017-08-01 00:43:44 Preparing external:ubuntu-core-16-64:tests/main/known...
2017-08-01 00:43:47 Executing external:ubuntu-core-16-64:tests/main/known (78/140)...
2017-08-01 00:43:48 Preparing external:ubuntu-core-16-64:tests/main/refresh:classic_fake...
2017-08-01 00:43:52 Executing external:ubuntu-core-16-64:tests/main/refresh:classic_fake (79/140)...
2017-08-01 00:43:52 Restoring external:ubuntu-core-16-64:tests/main/refresh:classic_fake...
2017-08-01 00:43:52 Preparing external:ubuntu-core-16-64:tests/main/enable-disable...
2017-08-01 00:43:56 Executing external:ubuntu-core-16-64:tests/main/enable-disable (80/140)...
2017-08-01 00:43:58 Preparing external:ubuntu-core-16-64:tests/main/snap-download...
2017-08-01 00:44:03 Executing external:ubuntu-core-16-64:tests/main/snap-download (81/140)...
2017-08-01 00:44:29 Restoring external:ubuntu-core-16-64:tests/main/snap-download...
2017-08-01 00:44:29 Preparing external:ubuntu-core-16-64:tests/main/interfaces-network-bind...
2017-08-01 00:44:34 Executing external:ubuntu-core-16-64:tests/main/interfaces-network-bind (82/140)...
2017-08-01 00:44:37 Restoring external:ubuntu-core-16-64:tests/main/interfaces-network-bind...
2017-08-01 00:44:37 Preparing external:ubuntu-core-16-64:tests/main/interfaces-system-observe...
2017-08-01 00:46:26 Executing external:ubuntu-core-16-64:tests/main/interfaces-system-observe (83/140)...
2017-08-01 00:46:27 Restoring external:ubuntu-core-16-64:tests/main/interfaces-system-observe...
2017-08-01 00:46:27 Preparing external:ubuntu-core-16-64:tests/main/snap-connect...
2017-08-01 00:46:33 Executing external:ubuntu-core-16-64:tests/main/snap-connect (84/140)...
2017-08-01 00:46:55 Preparing external:ubuntu-core-16-64:tests/main/snap-multi-service-failing...
2017-08-01 00:47:02 Executing external:ubuntu-core-16-64:tests/main/snap-multi-service-failing (85/140)...
2017-08-01 00:47:06 Preparing external:ubuntu-core-16-64:tests/main/help:interfaces...
2017-08-01 00:47:10 Executing external:ubuntu-core-16-64:tests/main/help:interfaces (86/140)...
2017-08-01 00:47:10 Preparing external:ubuntu-core-16-64:tests/main/auto-refresh...
2017-08-01 00:47:26 Executing external:ubuntu-core-16-64:tests/main/auto-refresh (87/140)...
2017-08-01 00:47:46 Restoring external:ubuntu-core-16-64:tests/main/auto-refresh...
2017-08-01 00:47:46 Preparing external:ubuntu-core-16-64:tests/main/security-setuid-root...
2017-08-01 00:47:54 Executing external:ubuntu-core-16-64:tests/main/security-setuid-root (88/140)...
2017-08-01 00:47:54 Restoring external:ubuntu-core-16-64:tests/main/security-setuid-root...
2017-08-01 00:47:54 Preparing external:ubuntu-core-16-64:tests/main/snap-run-symlink-error...
2017-08-01 00:47:59 Executing external:ubuntu-core-16-64:tests/main/snap-run-symlink-error (89/140)...
2017-08-01 00:47:59 Restoring external:ubuntu-core-16-64:tests/main/snap-run-symlink-error...
2017-08-01 00:47:59 Preparing external:ubuntu-core-16-64:tests/main/refresh:classic_remote...
2017-08-01 00:48:03 Executing external:ubuntu-core-16-64:tests/main/refresh:classic_remote (90/140)...
2017-08-01 00:48:03 Restoring external:ubuntu-core-16-64:tests/main/refresh:classic_remote...
2017-08-01 00:48:03 Preparing external:ubuntu-core-16-64:tests/main/snap-auto-import-asserts...
2017-08-01 00:48:07 Executing external:ubuntu-core-16-64:tests/main/snap-auto-import-asserts (91/140)...
2017-08-01 00:48:07 Restoring external:ubuntu-core-16-64:tests/main/snap-auto-import-asserts...
2017-08-01 00:48:07 Preparing external:ubuntu-core-16-64:tests/main/media-sharing...
2017-08-01 00:48:12 Executing external:ubuntu-core-16-64:tests/main/media-sharing (92/140)...
2017-08-01 00:48:12 Restoring external:ubuntu-core-16-64:tests/main/media-sharing...
2017-08-01 00:48:12 Preparing external:ubuntu-core-16-64:tests/main/change-errors...
2017-08-01 00:48:17 Executing external:ubuntu-core-16-64:tests/main/change-errors (93/140)...
2017-08-01 00:48:17 Preparing external:ubuntu-core-16-64:tests/main/help:remove...
2017-08-01 00:48:21 Executing external:ubuntu-core-16-64:tests/main/help:remove (94/140)...
2017-08-01 00:48:21 Preparing external:ubuntu-core-16-64:tests/main/try-snap-goes-away:test_snapd_tools...
2017-08-01 00:48:25 Executing external:ubuntu-core-16-64:tests/main/try-snap-goes-away:test_snapd_tools (95/140)...
2017-08-01 00:48:27 Restoring external:ubuntu-core-16-64:tests/main/try-snap-goes-away:test_snapd_tools...
2017-08-01 00:48:27 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-custom-device-reg...
2017-08-01 00:48:31 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-custom-device-reg (96/140)...
2017-08-01 00:48:31 Restoring external:ubuntu-core-16-64:tests/main/ubuntu-core-custom-device-reg...
2017-08-01 00:48:31 Preparing external:ubuntu-core-16-64:tests/main/interfaces-network-control-ip-netns...
2017-08-01 00:48:50 Executing external:ubuntu-core-16-64:tests/main/interfaces-network-control-ip-netns (97/140)...
2017-08-01 00:48:51 Restoring external:ubuntu-core-16-64:tests/main/interfaces-network-control-ip-netns...
2017-08-01 00:48:51 Preparing external:ubuntu-core-16-64:tests/main/interfaces-content-empty-content-attr...
2017-08-01 00:49:29 Executing external:ubuntu-core-16-64:tests/main/interfaces-content-empty-content-attr (98/140)...
2017-08-01 00:49:29 Preparing external:ubuntu-core-16-64:tests/main/try-snap-goes-away:network_bind_consumer...
2017-08-01 00:49:35 Executing external:ubuntu-core-16-64:tests/main/try-snap-goes-away:network_bind_consumer (99/140)...
2017-08-01 00:49:37 Restoring external:ubuntu-core-16-64:tests/main/try-snap-goes-away:network_bind_consumer...
2017-08-01 00:49:37 Preparing external:ubuntu-core-16-64:tests/main/snap-run-hook:reexec0...
2017-08-01 00:49:42 Executing external:ubuntu-core-16-64:tests/main/snap-run-hook:reexec0 (100/140)...
2017-08-01 00:49:43 Restoring external:ubuntu-core-16-64:tests/main/snap-run-hook:reexec0...
2017-08-01 00:49:43 Preparing external:ubuntu-core-16-64:tests/main/cmdline...
2017-08-01 00:49:47 Executing external:ubuntu-core-16-64:tests/main/cmdline (101/140)...
2017-08-01 00:49:47 Restoring external:ubuntu-core-16-64:tests/main/cmdline...
2017-08-01 00:49:48 Preparing external:ubuntu-core-16-64:tests/main/install-hook...
2017-08-01 00:49:52 Executing external:ubuntu-core-16-64:tests/main/install-hook (102/140)...
2017-08-01 00:49:55 Error executing external:ubuntu-core-16-64:tests/main/install-hook :
-----
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps.sh
+ install_local snap-hooks
+ local SNAP_NAME=snap-hooks
+ shift
+ local SNAP_FILE=/home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks/snap-hooks_1.0_all.snap
+ local SNAP_DIR
++ dirname /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks/snap-hooks_1.0_all.snap
+ SNAP_DIR=/home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks
+ '[' '!' -f /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks/snap-hooks_1.0_all.snap ']'
+ snapbuild /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks
built: /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks/snap-hooks_1.0_all.snap
+ snap install --dangerous /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks/snap-hooks_1.0_all.snap
snap-hooks 1.0 installed
+ echo 'Verify configuration value with snap get'
Verify configuration value with snap get
+ MATCH 1
+ snap get snap-hooks installed
+ snap get snap-hooks foo
+ MATCH bar
+ echo 'Verify that install hook is run only once'
Verify that install hook is run only once
+ snap set snap-hooks installed=2
+ install_local snap-hooks
+ local SNAP_NAME=snap-hooks
+ shift
+ local SNAP_FILE=/home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks/snap-hooks_1.0_all.snap
+ local SNAP_DIR
++ dirname /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks/snap-hooks_1.0_all.snap
+ SNAP_DIR=/home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks
+ '[' '!' -f /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks/snap-hooks_1.0_all.snap ']'
+ snap install --dangerous /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/snap-hooks/snap-hooks_1.0_all.snap
snap-hooks 1.0 installed
+ snap get snap-hooks installed
+ MATCH 2
+ REMOVE_HOOK_FILE=/root/remove-hook-executed
+ snap connect snap-hooks:home
+ echo 'Verify that remove hook is not executed when removing single revision'
Verify that remove hook is not executed when removing single revision
+ snap set snap-hooks exitcode=0
+ snap remove --revision=x1 snap-hooks
snap-hooks removed
+ test -f /root/remove-hook-executed
+ echo 'Remove hook was executed. It shouldn'\''t.'
Remove hook was executed. It shouldn't.
+ exit 1
-----
.
2017-08-01 00:49:55 Debug output for external:ubuntu-core-16-64:tests/main/install-hook :
-----
+ echo '# journal messages for snapd'
# journal messages for snapd
+ journalctl -u snapd
-- Logs begin at Tue 2017-08-01 03:49:48 UTC, end at Tue 2017-08-01 03:49:55 UTC. --
Aug 01 03:49:48 localhost.localdomain systemd[1]: Stopping Snappy daemon...
Aug 01 03:49:48 localhost.localdomain snapd[12356]: 2017/08/01 03:49:48.305308 main.go:78: Exiting on terminated signal.
Aug 01 03:49:48 localhost.localdomain systemd[1]: Stopped Snappy daemon.
Aug 01 03:49:52 localhost.localdomain systemd[1]: Starting Snappy daemon...
Aug 01 03:49:52 localhost.localdomain snapd[12423]: 2017/08/01 03:49:52.352001 daemon.go:252: started snapd/2.27~rc4 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-83-generic.
Aug 01 03:49:52 localhost.localdomain systemd[1]: Started Snappy daemon.
+ echo '# apparmor denials '
# apparmor denials
+ grep DENIED
+ dmesg --ctime
[Tue Aug 1 03:49:53 2017] audit: type=1400 audit(1501559393.441:262305): apparmor="DENIED" operation="create" profile="snap.snap-hooks.hook.install" pid=12578 comm="snap-exec" family="inet" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
[Tue Aug 1 03:49:53 2017] audit: type=1400 audit(1501559393.441:262306): apparmor="DENIED" operation="create" profile="snap.snap-hooks.hook.install" pid=12578 comm="snap-exec" family="inet6" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
[Tue Aug 1 03:49:53 2017] audit: type=1400 audit(1501559393.441:262307): apparmor="DENIED" operation="create" profile="snap.snap-hooks.hook.install" pid=12578 comm="snap-exec" family="inet6" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
[Tue Aug 1 03:49:53 2017] audit: type=1400 audit(1501559393.649:262308): apparmor="DENIED" operation="create" profile="snap.snap-hooks.hook.install" pid=12586 comm="snapctl" family="inet" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
+ echo '# seccomp denials (kills) '
# seccomp denials (kills)
+ grep type=1326
+ dmesg --ctime
+ 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 -
:greengrass-support -
:hardware-observe -
:hardware-random-control -
:hardware-random-observe -
:home snap-hooks
: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-08-01 00:49:55 Preparing external:ubuntu-core-16-64:tests/main/listing...
2017-08-01 00:50:02 Executing external:ubuntu-core-16-64:tests/main/listing (103/140)...
2017-08-01 00:50:03 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 +core *$'
+ snap list
+ MATCH '^core .* [0-9]{2}-[0-9.]+(\+git[0-9]+\.[0-9a-f]+)? +[0-9]+ +canonical +core *$'
+ echo 'List prints installed snap version'
List prints installed snap version
+ snap list
+ MATCH '^test-snapd-tools +[0-9]+(\.[0-9]+)* +x[0-9]+ +- *$'
+ 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
+ local SNAP_DIR
++ dirname /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-tools/test-snapd-tools_1.0_all.snap
+ 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
++ grep test-snapd-tools
++ snap list --all
error: cannot list snaps: cannot list local snaps! cannot find installed snap "core" at revision 1441
+ output=
-----
.
2017-08-01 00:50:03 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 Tue 2017-08-01 03:49:55 UTC, end at Tue 2017-08-01 03:50:03 UTC. --
Aug 01 03:49:56 localhost.localdomain systemd[1]: Stopping Snappy daemon...
Aug 01 03:49:56 localhost.localdomain snapd[12423]: 2017/08/01 03:49:56.796889 main.go:78: Exiting on terminated signal.
Aug 01 03:49:56 localhost.localdomain systemd[1]: Stopped Snappy daemon.
Aug 01 03:50:00 localhost.localdomain systemd[1]: Starting Snappy daemon...
Aug 01 03:50:00 localhost.localdomain snapd[13015]: 2017/08/01 03:50:00.956847 daemon.go:252: started snapd/2.27~rc4 (series 16) ubuntu-core/16 (amd64) linux/4.4.0-83-generic.
Aug 01 03:50:00 localhost.localdomain systemd[1]: Started Snappy daemon.
+ echo '# apparmor denials '
# apparmor denials
+ grep DENIED
+ dmesg --ctime
+ true
+ echo '# seccomp denials (kills) '
# seccomp denials (kills)
+ grep type=1326
+ dmesg --ctime
+ 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 -
:greengrass-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-08-01 00:50:03 Preparing external:ubuntu-core-16-64:tests/main/prefer...
2017-08-01 00:50:08 Executing external:ubuntu-core-16-64:tests/main/prefer (104/140)...
2017-08-01 00:50:16 Preparing external:ubuntu-core-16-64:tests/main/interfaces-process-control...
2017-08-01 00:50:22 Executing external:ubuntu-core-16-64:tests/main/interfaces-process-control (105/140)...
2017-08-01 00:50:23 Restoring external:ubuntu-core-16-64:tests/main/interfaces-process-control...
2017-08-01 00:50:23 Preparing external:ubuntu-core-16-64:tests/main/writable-areas:reexec1...
2017-08-01 00:50:29 Executing external:ubuntu-core-16-64:tests/main/writable-areas:reexec1 (106/140)...
2017-08-01 00:50:30 Restoring external:ubuntu-core-16-64:tests/main/writable-areas:reexec1...
2017-08-01 00:50:30 Preparing external:ubuntu-core-16-64:tests/main/snap-update-ns...
2017-08-01 00:50:36 Executing external:ubuntu-core-16-64:tests/main/snap-update-ns (107/140)...
2017-08-01 00:50:37 Preparing external:ubuntu-core-16-64:tests/main/systemd-service...
2017-08-01 00:50:43 Executing external:ubuntu-core-16-64:tests/main/systemd-service (108/140)...
2017-08-01 00:50:43 Restoring external:ubuntu-core-16-64:tests/main/systemd-service...
2017-08-01 00:50:44 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-upgrade...
2017-08-01 00:50:49 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-upgrade (109/140)...
2017-08-01 00:50:51 Rebooting external:ubuntu-core-16-64 as requested...
2017-08-01 00:51:15 Rebooting external:ubuntu-core-16-64 as requested...
2017-08-01 00:51:38 Rebooting external:ubuntu-core-16-64 as requested...
2017-08-01 00:52:01 Rebooting external:ubuntu-core-16-64 as requested...
2017-08-01 00:52:21 Restoring external:ubuntu-core-16-64:tests/main/ubuntu-core-upgrade...
2017-08-01 00:52:21 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-classic...
2017-08-01 00:52:27 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-classic (110/140)...
2017-08-01 00:54:36 Restoring external:ubuntu-core-16-64:tests/main/ubuntu-core-classic...
2017-08-01 00:54:36 Preparing external:ubuntu-core-16-64:tests/main/debug-confinement...
2017-08-01 00:54:42 Executing external:ubuntu-core-16-64:tests/main/debug-confinement (111/140)...
2017-08-01 00:54:42 Preparing external:ubuntu-core-16-64:tests/main/snap-remove-not-mounted...
2017-08-01 00:54:46 Executing external:ubuntu-core-16-64:tests/main/snap-remove-not-mounted (112/140)...
2017-08-01 00:54:47 Preparing external:ubuntu-core-16-64:tests/main/refresh:strict_remote...
2017-08-01 00:55:01 Executing external:ubuntu-core-16-64:tests/main/refresh:strict_remote (113/140)...
2017-08-01 00:55:24 Restoring external:ubuntu-core-16-64:tests/main/refresh:strict_remote...
2017-08-01 00:55:24 Preparing external:ubuntu-core-16-64:tests/main/known-remote...
2017-08-01 00:55:30 Executing external:ubuntu-core-16-64:tests/main/known-remote (114/140)...
2017-08-01 00:55:33 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-device-reg...
2017-08-01 00:55:37 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-device-reg (115/140)...
2017-08-01 00:55:39 Preparing external:ubuntu-core-16-64:tests/main/classic-confinement...
2017-08-01 00:55:43 Executing external:ubuntu-core-16-64:tests/main/classic-confinement (116/140)...
2017-08-01 00:55:48 Preparing external:ubuntu-core-16-64:tests/main/interfaces-content...
2017-08-01 00:56:04 Executing external:ubuntu-core-16-64:tests/main/interfaces-content (117/140)...
2017-08-01 00:56:05 Preparing external:ubuntu-core-16-64:tests/main/interfaces-network-observe...
2017-08-01 00:56:11 Executing external:ubuntu-core-16-64:tests/main/interfaces-network-observe (118/140)...
2017-08-01 00:56:12 Restoring external:ubuntu-core-16-64:tests/main/interfaces-network-observe...
2017-08-01 00:56:12 Preparing external:ubuntu-core-16-64:tests/main/revert-sideload...
2017-08-01 00:56:17 Executing external:ubuntu-core-16-64:tests/main/revert-sideload (119/140)...
2017-08-01 00:56:19 Restoring external:ubuntu-core-16-64:tests/main/revert-sideload...
2017-08-01 00:56:19 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-grub:kernelimg...
2017-08-01 00:56:24 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-grub:kernelimg (120/140)...
2017-08-01 00:56:24 Preparing external:ubuntu-core-16-64:tests/main/i18n...
2017-08-01 00:56:28 Executing external:ubuntu-core-16-64:tests/main/i18n (121/140)...
2017-08-01 00:56:28 Preparing external:ubuntu-core-16-64:tests/main/server-snap:goServer...
2017-08-01 00:56:59 Executing external:ubuntu-core-16-64:tests/main/server-snap:goServer (122/140)...
2017-08-01 00:56:59 Restoring external:ubuntu-core-16-64:tests/main/server-snap:goServer...
2017-08-01 00:56:59 Preparing external:ubuntu-core-16-64:tests/main/snap-auto-mount...
2017-08-01 00:57:04 Executing external:ubuntu-core-16-64:tests/main/snap-auto-mount (123/140)...
2017-08-01 00:57:04 Restoring external:ubuntu-core-16-64:tests/main/snap-auto-mount...
2017-08-01 00:57:04 Preparing external:ubuntu-core-16-64:tests/main/interfaces-bluez...
2017-08-01 00:57:09 Executing external:ubuntu-core-16-64:tests/main/interfaces-bluez (124/140)...
2017-08-01 00:57:48 Preparing external:ubuntu-core-16-64:tests/main/ubuntu-core-fan...
2017-08-01 00:57:54 Executing external:ubuntu-core-16-64:tests/main/ubuntu-core-fan (125/140)...
2017-08-01 00:57:54 Restoring external:ubuntu-core-16-64:tests/main/ubuntu-core-fan...
2017-08-01 00:57:54 Preparing external:ubuntu-core-16-64:tests/main/writable-areas:reexec0...
2017-08-01 00:57:58 Executing external:ubuntu-core-16-64:tests/main/writable-areas:reexec0 (126/140)...
2017-08-01 00:57:59 Restoring external:ubuntu-core-16-64:tests/main/writable-areas:reexec0...
2017-08-01 00:57:59 Preparing external:ubuntu-core-16-64:tests/main/abort...
2017-08-01 00:58:05 Executing external:ubuntu-core-16-64:tests/main/abort (127/140)...
2017-08-01 00:58:09 Preparing external:ubuntu-core-16-64:tests/main/prepare-image-uboot...
2017-08-01 00:58:14 Executing external:ubuntu-core-16-64:tests/main/prepare-image-uboot (128/140)...
2017-08-01 01:03:14 WARNING: external:ubuntu-core-16-64 running late. Current output:
-----
(... 3 lines above ...)
+ echo The unverified model assertion will not be copied into the image
The unverified model assertion will not be copied into the image
+ export UBUNTU_IMAGE_SKIP_COPY_UNVERIFIED_MODEL=1
+ UBUNTU_IMAGE_SKIP_COPY_UNVERIFIED_MODEL=1
+ echo Running prepare-image as a user
Running prepare-image as a user
+ su -c 'SNAPPY_USE_STAGING_STORE=0 snap prepare-image --channel edge --extra-snaps snapweb /tmp/root/model.assertion /tmp/root' test
WARNING: Cannot fetch and check prerequisites for the model assertion, it will not be copied into the image making it unusable (unless this is a test): account-key (Jv8_JiHiIzJVcO9M55pPdqSDWUvuhfDIBJUS-3VW7F_idjix7Ffn5qMxB21ZQuij) not found
Fetching core
core 41.48 MB / 69.92 MB 59.33% 160.54 KB/s 3m1sss
-----
.
2017-08-01 01:08:14 WARNING: external:ubuntu-core-16-64 running late. Current output:
-----
(...)
Fetching pi2-kernel
pi2-kernel 37.00 MB / 99.96 MB 37.01% 266.40 KB/s 4m1ss48s
-----
.
2017-08-01 01:13:14 WARNING: external:ubuntu-core-16-64 running late. Current output:
-----
(...)
pi2-kernel 83.36 MB / 99.96 MB 83.39% 192.98 KB/s 1m28s48s
-----
.
2017-08-01 01:16:13 Restoring external:ubuntu-core-16-64:tests/main/prepare-image-uboot...
2017-08-01 01:16:13 Preparing external:ubuntu-core-16-64:tests/main/install-sideload:reexec1...
2017-08-01 01:16:18 Executing external:ubuntu-core-16-64:tests/main/install-sideload:reexec1 (129/140)...
2017-08-01 01:16:28 Restoring external:ubuntu-core-16-64:tests/main/install-sideload:reexec1...
2017-08-01 01:16:28 Restoring external:ubuntu-core-16-64:tests/main/...
2017-08-01 01:16:36 Preparing external:ubuntu-core-16-64:tests/regression/...
2017-08-01 01:16:37 Preparing external:ubuntu-core-16-64:tests/regression/lp-1607796...
2017-08-01 01:16:42 Executing external:ubuntu-core-16-64:tests/regression/lp-1607796 (130/140)...
2017-08-01 01:16:42 Restoring external:ubuntu-core-16-64:tests/regression/lp-1607796...
2017-08-01 01:16:42 Preparing external:ubuntu-core-16-64:tests/regression/lp-1665004...
2017-08-01 01:16:48 Executing external:ubuntu-core-16-64:tests/regression/lp-1665004 (131/140)...
2017-08-01 01:16:49 Preparing external:ubuntu-core-16-64:tests/regression/lp-1615113...
2017-08-01 01:16:55 Executing external:ubuntu-core-16-64:tests/regression/lp-1615113 (132/140)...
2017-08-01 01:16:55 Preparing external:ubuntu-core-16-64:tests/regression/lp-1606277...
2017-08-01 01:17:01 Executing external:ubuntu-core-16-64:tests/regression/lp-1606277 (133/140)...
2017-08-01 01:17:02 Preparing external:ubuntu-core-16-64:tests/regression/lp-1667385:devmode...
2017-08-01 01:17:13 Executing external:ubuntu-core-16-64:tests/regression/lp-1667385:devmode (134/140)...
2017-08-01 01:17:14 Preparing external:ubuntu-core-16-64:tests/regression/lp-1618683...
2017-08-01 01:17:20 Executing external:ubuntu-core-16-64:tests/regression/lp-1618683 (135/140)...
2017-08-01 01:17:20 Preparing external:ubuntu-core-16-64:tests/regression/lp-1641885...
2017-08-01 01:17:26 Executing external:ubuntu-core-16-64:tests/regression/lp-1641885 (136/140)...
2017-08-01 01:17:26 Restoring external:ubuntu-core-16-64:tests/regression/lp-1641885...
2017-08-01 01:17:26 Preparing external:ubuntu-core-16-64:tests/regression/lp-1599891...
2017-08-01 01:17:31 Executing external:ubuntu-core-16-64:tests/regression/lp-1599891 (137/140)...
2017-08-01 01:17:31 Preparing external:ubuntu-core-16-64:tests/regression/lp-1693042...
2017-08-01 01:17:35 Executing external:ubuntu-core-16-64:tests/regression/lp-1693042 (138/140)...
2017-08-01 01:17:39 Preparing external:ubuntu-core-16-64:tests/regression/lp-1630479...
2017-08-01 01:17:44 Executing external:ubuntu-core-16-64:tests/regression/lp-1630479 (139/140)...
2017-08-01 01:17:45 Preparing external:ubuntu-core-16-64:tests/regression/lp-1667385:jailmode...
2017-08-01 01:17:56 Executing external:ubuntu-core-16-64:tests/regression/lp-1667385:jailmode (140/140)...
2017-08-01 01:17:56 Restoring external:ubuntu-core-16-64:tests/regression/...
2017-08-01 01:18:00 Restoring project on external:ubuntu-core-16-64...
2017-08-01 01:18:01 Discarding external:ubuntu-core-16-64...
2017-08-01 01:18:01 Successful tasks: 135
2017-08-01 01:18:01 Aborted tasks: 0
2017-08-01 01:18:01 Failed tasks: 5
- external:ubuntu-core-16-64:tests/main/install-hook
- external:ubuntu-core-16-64:tests/main/interfaces-account-control
- external:ubuntu-core-16-64:tests/main/listing
- external:ubuntu-core-16-64:tests/main/snap-repair
- external:ubuntu-core-16-64:tests/main/snapd-notify
error: unsuccessful run
|