Ubuntu Pastebin

Paste from rvr at Mon, 10 Oct 2016 12:52:10 +0000

Download as text
  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
vrruiz@vrruiz-MacBookPro:~/dragonboard/snapd$ spread -v -reuse external:ubuntu-core-16-arm-64
2016/10/10 13:22:15 Found /home/vrruiz/dragonboard/snapd/spread.yaml.
2016/10/10 13:22:15 Allocating external:ubuntu-core-16-arm-64...
2016/10/10 13:22:15 Waiting for external:ubuntu-core-16-arm-64 to make SSH available at 192.168.1.41:8022...
2016/10/10 13:22:15 Project content is ready for delivery.
2016/10/10 13:22:30 Cannot connect to external:ubuntu-core-16-arm-64: dial tcp 192.168.1.41:8022: getsockopt: connection refused
2016/10/10 13:22:45 Cannot connect to external:ubuntu-core-16-arm-64: dial tcp 192.168.1.41:8022: getsockopt: connection refused
^C2016/10/10 13:23:00 Cannot connect to external:ubuntu-core-16-arm-64: dial tcp 192.168.1.41:8022: getsockopt: connection refused

2016/10/10 13:23:15 Cannot connect to external:ubuntu-core-16-arm-64: dial tcp 192.168.1.41:8022: getsockopt: connection refused
Killed
Press any key to continue...

vrruiz@vrruiz-MacBookPro:~/dragonboard/snapd$ export SPREAD_EXTERNAL_ADDRESS=192.168.1.41:22
Press any key to continue...

vrruiz@vrruiz-MacBookPro:~/dragonboard/snapd$ export SPREAD_EXTERNAL_ADDRESS=192.168.1.41:22
vrruiz@vrruiz-MacBookPro:~/dragonboard/snapd$ spread -v -reuse external:ubuntu-core-16-arm-64
2016/10/10 13:28:50 Found /home/vrruiz/dragonboard/snapd/spread.yaml.
2016/10/10 13:28:50 Allocating external:ubuntu-core-16-arm-64...
2016/10/10 13:28:50 Waiting for external:ubuntu-core-16-arm-64 to make SSH available at 192.168.1.41:22...
2016/10/10 13:28:50 Allocated external:ubuntu-core-16-arm-64.
2016/10/10 13:28:50 Connecting to external:ubuntu-core-16-arm-64...
2016/10/10 13:28:50 Project content is ready for delivery.
2016/10/10 13:28:50 Connected to external:ubuntu-core-16-arm-64 at 192.168.1.41:22.
2016/10/10 13:28:50 Sending project data to external:ubuntu-core-16-arm-64...
2016/10/10 13:28:51 Preparing project on external:external:ubuntu-core-16-arm-64...
2016/10/10 13:32:49 Preparing external:ubuntu-core-16-arm-64:tests/main/...
2016/10/10 13:33:36 Preparing external:ubuntu-core-16-arm-64:tests/main/interfaces-hardware-observe...
2016/10/10 13:33:39 Executing external:ubuntu-core-16-arm-64:tests/main/interfaces-hardware-observe...
2016/10/10 13:33:41 Restoring external:ubuntu-core-16-arm-64:tests/main/interfaces-hardware-observe...
2016/10/10 13:33:55 Preparing external:ubuntu-core-16-arm-64:tests/main/refresh:fake...
2016/10/10 13:33:56 Executing external:ubuntu-core-16-arm-64:tests/main/refresh:fake...
2016/10/10 13:33:56 Restoring external:ubuntu-core-16-arm-64:tests/main/refresh:fake...
2016/10/10 13:34:06 Preparing external:ubuntu-core-16-arm-64:tests/main/refresh:production...
2016/10/10 13:34:18 Executing external:ubuntu-core-16-arm-64:tests/main/refresh:production...
2016/10/10 13:34:27 Restoring external:ubuntu-core-16-arm-64:tests/main/refresh:production...
2016/10/10 13:34:39 Preparing external:ubuntu-core-16-arm-64:tests/main/searching...
2016/10/10 13:34:39 Executing external:ubuntu-core-16-arm-64:tests/main/searching...
2016/10/10 13:34:40 Restoring external:ubuntu-core-16-arm-64:tests/main/searching...
2016/10/10 13:34:50 Preparing external:ubuntu-core-16-arm-64:tests/main/ubuntu-core-create-user...
2016/10/10 13:34:50 Executing external:ubuntu-core-16-arm-64:tests/main/ubuntu-core-create-user...
2016/10/10 13:34:56 Error executing external:ubuntu-core-16-arm-64:tests/main/ubuntu-core-create-user : 
-----
+ '[' true = true ']'
+ snap create-user --sudoer mvo@ubuntu.com
Created user "mvo" and imported SSH keys.
+ echo 'Did not get expected error creating user in managed device'
Did not get expected error creating user in managed device
+ exit 1
-----
2016/10/10 13:34:56 Debug output for external:ubuntu-core-16-arm-64:tests/main/ubuntu-core-create-user : 
-----
+ journalctl -u snapd
-- Logs begin at Mon 2016-10-10 12:34:50 UTC, end at Mon 2016-10-10 12:34:56 UTC. --
Oct 10 12:34:51 localhost.localdomain /usr/lib/snapd/snapd[5597]: logger.go:66: DEBUG: > "GET /api/v2/keys/mvo%40ubuntu.com HTTP/1.1\r\nHost: login.ubuntu.com\r\nUser-Agent: Go-http-client/1.1\r\nAccept-Encoding: gzip\r\n\r\n"
Oct 10 12:34:52 localhost.localdomain /usr/lib/snapd/snapd[5597]: logger.go:73: DEBUG: < "HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\nContent-Language: en\r\nContent-Type: application/json; charset=utf-8\r\nDate: Mon, 10 Oct 2016 12:34:52 GMT\r\nServer: gunicorn/19.3.0\r\nStrict-Transport-Security: max-age=15768000; includeSubDomains; preload\r\nVary: Authorization,Accept-Language,Cookie\r\nX-Bzr-Revision-Number: 1533\r\nX-Content-Type-Options: nosniff\r\nX-Frame-Options: SAMEORIGIN\r\nX-Request-Id: V-uK7H8AAQEAAB4RUi0AAAAW1\r\nX-Xss-Protection: 1; mode=block\r\n\r\n2d2\r\n{\n    \"username\": \"mvo\", \n    \"ssh_keys\": [\n        \"ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAqwsTkky+laeukWyGFmtiAQUFgjD+wKYuRtOj11gjTe3qUNDgMR54W8IUELZ6NwNWs2wium+jQZLY4vlsDq4PkYK8J2qgjRZURCKp4JbjbVNSg2WO7vDtl+0FIC1GaCdglRVWffrwKN1RLlwqBCVXi01nnTk3+hEpWddjqoTXMwM= egon@top\", \n        \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKBFmfD1KNULZv35907+ArIfxdGGzF1XCQj287AgK7k5GWcEdnUQfkSUHRZ4cNOqshY6W3CyDzVAmaDmeB9A7qpmsVlQp2D8y253+F2NMm1bcDdT3weG5vxkdF5qdx99gRMwDYJ4WZgIryrCAOqDLKmoSEuyuh1Zil9pDGPh/grf+EgXzDFnntgE8XJVKIldsbUplCmycSNtk47PtJATJ8q5v2dIazlxwmxKfarXS7x805u4ElrZ2h3JMCOOfL1k3sJbYc4JbZ6zB8DAhSsZ79KrStn3DE+gULmPJjM0HEbtouegZpE5wcHldoo4Oi78uNrwtv1lWp4AnK/Xwm3bl/ egon@bod\\r\\n\"\n    ], \n    \"openid_identifier\": \"xDPXBdB\"\n}\r\n0\r\n\r\n"
Oct 10 12:34:55 localhost.localdomain groupadd[5638]: group added to /var/lib/extrausers/group: name=mvo, GID=1002
Oct 10 12:34:55 localhost.localdomain groupadd[5638]: group added to /var/lib/extrausers/gshadow: name=mvo
Oct 10 12:34:55 localhost.localdomain groupadd[5638]: new group: name=mvo, GID=1002
Oct 10 12:34:55 localhost.localdomain useradd[5642]: new user: name=mvo, UID=1002, GID=1002, home=/home/mvo, shell=/bin/bash
Oct 10 12:34:56 localhost.localdomain usermod[5649]: change user 'mvo' password
Oct 10 12:34:56 localhost.localdomain chfn[5654]: changed user 'mvo' information
Oct 10 12:34:56 localhost.localdomain /usr/lib/snapd/snapd[5597]: daemon.go:174: DEBUG: uid=0;@ POST /v2/create-user 5.760267s 200
-----
2016/10/10 13:34:56 Restoring external:ubuntu-core-16-arm-64:tests/main/ubuntu-core-create-user...
2016/10/10 13:35:04 Preparing external:ubuntu-core-16-arm-64:tests/main/prepare-image-uboot...
2016/10/10 13:35:04 Executing external:ubuntu-core-16-arm-64:tests/main/prepare-image-uboot...
2016/10/10 13:36:24 Error executing external:ubuntu-core-16-arm-64:tests/main/prepare-image-uboot : 
-----
+ echo Creating model assertion
Creating model assertion
+ cat
+ 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
Running prepare-image
+ snap prepare-image --channel edge --extra-snaps snapweb model.assertion /tmp/root
2016/10/10 12:35:14.991540 image.go:240: Cannot fetch and check prerequisites for the model assertion, it will not be copied into the image: account-key (Jv8_JiHiIzJVcO9M55pPdqSDWUvuhfDIBJUS-3VW7F_idjix7Ffn5qMxB21ZQuij) not found
Fetching ubuntu-core
Fetching pi2-kernel
Fetching pi2
Fetching snapweb
+ echo Verifying the result
Verifying the result
+ ls -lR /tmp/root/image
/tmp/root/image:
total 0
drwxr-xr-x 3 root root 60 Oct 10 12:36 boot
drwxr-xr-x 3 root root 60 Oct 10 12:35 var

/tmp/root/image/boot:
total 0
drwxr-xr-x 3 root root 80 Oct 10 12:36 uboot

/tmp/root/image/boot/uboot:
total 128
drwxr-xr-x 3 root root    100 Sep 19 15:55 pi2-kernel_15.snap
-rw-r----- 1 root root 131072 Oct 10 12:36 uboot.env

/tmp/root/image/boot/uboot/pi2-kernel_15.snap:
total 9468
drwxr-xr-x 2 root root     100 Sep 19 15:55 dtbs
-rw-r--r-- 1 root root 3028942 Sep 19 15:55 initrd.img
-rw------- 1 root root 6661464 Sep  6 17:03 kernel.img

/tmp/root/image/boot/uboot/pi2-kernel_15.snap/dtbs:
total 52
-rw-r--r-- 1 root root 13430 Sep  6 17:03 bcm2709-rpi-2-b.dtb
-rw-r--r-- 1 root root 14052 Sep  6 17:03 bcm2710-rpi-3-b.dtb
-rw-r--r-- 1 root root 16512 Sep 19 15:55 overlays.tgz

/tmp/root/image/var:
total 0
drwxr-xr-x 3 root root 60 Oct 10 12:35 lib

/tmp/root/image/var/lib:
total 0
drwxr-xr-x 4 root root 80 Oct 10 12:35 snapd

/tmp/root/image/var/lib/snapd:
total 0
drwxr-xr-x 4 root root 100 Oct 10 12:36 seed
drwxr-xr-x 2 root root  80 Oct 10 12:36 snaps

/tmp/root/image/var/lib/snapd/seed:
total 4
drwxr-xr-x 2 root root 220 Oct 10 12:36 assertions
-rw-r--r-- 1 root root 414 Oct 10 12:36 seed.yaml
drwxr-xr-x 2 root root 120 Oct 10 12:36 snaps

/tmp/root/image/var/lib/snapd/seed/assertions:
total 36
-rw-r--r-- 1 root root  997 Oct 10 12:36 16,ZbHoNCV2YMyGLhAf1U9SLaOvuVD02Sqs.snap-declaration
-rw-r--r-- 1 root root 1005 Oct 10 12:36 16,b8X2psL1ryVrPt5WEmpYiqfr5emixTd7.snap-declaration
-rw-r--r-- 1 root root 1001 Oct 10 12:36 16,cr5pkasGhR7N3M8wKfP9DJqGxbBGeET2.snap-declaration
-rw-r--r-- 1 root root 1004 Oct 10 12:36 16,m0rvvnmRdDgexonz1XSP9a9U4K7vUbiy.snap-declaration
-rw-r--r-- 1 root root 1074 Oct 10 12:36 6qZSNkIU3mqedExA8Z2Qo_bBVD8l01-6jwj0-_O90Mz0qxcYibe_ED7BxCn5zwAg.snap-revision
-rw-r--r-- 1 root root 2452 Oct 10 12:36 BWDEoaqyr25nF5SNCvEv2v7QnM9QsfCc0PBMYD_i2NGSQ32EF2d4D0hqUel3m8ul.account-key
-rw-r--r-- 1 root root 1073 Oct 10 12:36 GzBL-TRQ0TYO1JcId___0T7snhVieP88_NHsKy8YZVVCWfDRdnadTZ0slRU4SxYf.snap-revision
-rw-r--r-- 1 root root 1075 Oct 10 12:36 Z-wc-cjfrg4TXHbLDAIN9NpjdTQP5tbx-_c3SnDvPwQTrFkS9e8aEJ_BSqRiPk6K.snap-revision
-rw-r--r-- 1 root root 1073 Oct 10 12:36 fxkmS_JcZWyBRdwWnMZfFxt4hZiy7R6MXWqmXNSbsIb6LFQ4Ul_LG6kSThwd15YQ.snap-revision

/tmp/root/image/var/lib/snapd/seed/snaps:
total 158860
-rw------- 1 root root 89595904 Oct 10 12:36 pi2-kernel_15.snap
-rw------- 1 root root  3833856 Oct 10 12:36 pi2_27.snap
-rw------- 1 root root  2908160 Oct 10 12:36 snapweb_16.snap
-rw------- 1 root root 66334720 Oct 10 12:35 ubuntu-core_856.snap

/tmp/root/image/var/lib/snapd/snaps:
total 152276
-rw------- 1 root root 89595904 Oct 10 12:36 pi2-kernel_15.snap
-rw------- 1 root root 66334720 Oct 10 12:35 ubuntu-core_856.snap
+ for f in pi2 pi2-kernel core snapweb
+ ls /tmp/root/image/var/lib/snapd/seed/snaps/pi2-kernel_15.snap /tmp/root/image/var/lib/snapd/seed/snaps/pi2_27.snap
/tmp/root/image/var/lib/snapd/seed/snaps/pi2-kernel_15.snap
/tmp/root/image/var/lib/snapd/seed/snaps/pi2_27.snap
+ for f in pi2 pi2-kernel core snapweb
+ ls /tmp/root/image/var/lib/snapd/seed/snaps/pi2-kernel_15.snap
/tmp/root/image/var/lib/snapd/seed/snaps/pi2-kernel_15.snap
+ for f in pi2 pi2-kernel core snapweb
+ ls '/tmp/root/image/var/lib/snapd/seed/snaps/core*.snap'
ls: cannot access '/tmp/root/image/var/lib/snapd/seed/snaps/core*.snap': No such file or directory
-----
2016/10/10 13:36:24 Debug output for external:ubuntu-core-16-arm-64:tests/main/prepare-image-uboot : 
-----
+ journalctl -u snapd
-- No entries --
-----
2016/10/10 13:36:24 Restoring external:ubuntu-core-16-arm-64:tests/main/prepare-image-uboot...
2016/10/10 13:36:39 Preparing external:ubuntu-core-16-arm-64:tests/main/interfaces-content...
2016/10/10 13:36:49 Executing external:ubuntu-core-16-arm-64:tests/main/interfaces-content...
2016/10/10 13:36:50 Restoring external:ubuntu-core-16-arm-64:tests/main/interfaces-content...
2016/10/10 13:37:04 Preparing external:ubuntu-core-16-arm-64:tests/main/ubuntu-core-upgrade-core...
2016/10/10 13:37:04 Executing external:ubuntu-core-16-arm-64:tests/main/ubuntu-core-upgrade-core...
2016/10/10 13:37:15 Rebooting external:ubuntu-core-16-arm-64 as requested...
2016/10/10 13:38:12 Restoring external:ubuntu-core-16-arm-64:tests/main/ubuntu-core-upgrade-core...
2016/10/10 13:38:28 Preparing external:ubuntu-core-16-arm-64:tests/main/interfaces-bluez...
2016/10/10 13:38:29 Executing external:ubuntu-core-16-arm-64:tests/main/interfaces-bluez...
2016/10/10 13:38:48 Restoring external:ubuntu-core-16-arm-64:tests/main/interfaces-bluez...
2016/10/10 13:43:48 WARNING: external:ubuntu-core-16-arm-64 running late. Current output:
-----
mesg: ttyname failed: Inappropriate ioctl for device
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/reset.sh --reuse-core
+ [[ ubuntu-core-16-arm-64 == ubuntu-core-16-* ]]
+ reset_all_snap --reuse-core
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/names.sh
+++ snap list
+++ sed -n 's/^\(pc\|pi[23]\|dragonboard\) .*/\1/p'
++ gadget_name=dragonboard
++ kernel_name=dragonboard-kernel
++ read -r core_name
+++ snap list
+++ awk '/^(ubuntu-)?core / {print $1; exit}'
++ '[' dragonboard-kernel = pi3-kernel ']'
+ for snap in '/snap/*'
+ snap=bin
+ case "$snap" in
+ for snap in '/snap/*'
+ snap=bluez
+ case "$snap" in
+ snap remove bluez
bluez removed
+ for snap in '/snap/*'
+ snap=dragonboard
+ case "$snap" in
+ for snap in '/snap/*'
+ snap=dragonboard-kernel
+ case "$snap" in
+ for snap in '/snap/*'
+ snap=ubuntu-core
+ case "$snap" in
+ systemctl stop snapd.service snapd.socket
++ cd /
++ tar xzf /home/gopath/src/github.com/snapcore/snapd/snapd-state.tar.gz
-----
2016/10/10 13:48:48 WARNING: external:ubuntu-core-16-arm-64 running late. Output unchanged.
Download as text