Ubuntu Pastebin

Paste from Federico Gimenez Nieto at Mon, 28 Sep 2015 15:46:54 +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
fgimenez@arkham:~/workspace/snappy/trunk$ go run ./_integration-tests/main.go --filter rollbackSuite
Building tests...
go test -c ./_integration-tests/tests
Writing test config...
{_integration-tests/data/output/testconfig.json rolling edge   false false false}
Creating image...
sudo ubuntu-device-flash --verbose core rolling --output /tmp/snappy-test/image/snappy-rolling-edge-latest.img --channel edge --developer-mode
Determining oem configuration
Starting download of generic-amd64
41.70 KB / 41.70 KB  100.00 % 390.59 KB/s 
Done
Starting download of icon for package
38.97 KB / 38.97 KB  100.00 % 245.54 KB/s 
Done
Fetching information from server...
Downloading and setting up...
Download finished for /home/fgimenez/.cache/ubuntuimages/ubuntu-core/rolling/edge/generic_amd64/version-186.tar.xz
Download finished for /home/fgimenez/.cache/ubuntuimages/pool/ubuntu-066e4a7f45fb7cb5d597ac0ae505538f70050cd9183d6d789bf379070705854c.tar.xz
Searching for hardware.yaml in device part
Download finished for /home/fgimenez/.cache/ubuntuimages/pool/device-0fec4eb9b3b2d5b6e8058ce629e6b7dc309c7f5d8774ffb9058ccb3eac70a828.tar.xz
Partitioning...
Formatting...
kpartx -ds error: device-mapper: remove ioctl on loop0p5 failed: Device or resource busy
loop deleted : /dev/loop0
Mounting...
Provisioning...
Installing generic-amd64
Starting download of generic-amd64
41.70 KB / 41.70 KB  100.00 % 248.68 KB/s 
Done
Starting download of icon for package
38.97 KB / 38.97 KB  100.00 % 214.59 KB/s 
Done
Enabling developer mode...
no modprobe
Unmounting...
kpartx -ds error: ioctl: LOOP_CLR_FD: No such device or address
New image complete
Summary:
 Output: /tmp/snappy-test/image/snappy-rolling-edge-latest.img
 Architecture: amd64
 Channel: edge
 Version: 186
Calling adt-run...
adt-run -B --setup-commands touch /run/autopkgtest_no_reboot.stamp --override-control _integration-tests/data/output/control --built-tree /home/fgimenez/workspace/snappy/trunk --output-dir /tmp/snappy-test/output --- ssh -s /usr/share/autopkgtest/ssh-setup/snappy -- -i /tmp/snappy-test/image/snappy-rolling-edge-latest.img
adt-run [17:45:10]: version @version@
adt-run [17:45:10]: host arkham; command line: /usr/bin/adt-run -B --setup-commands 'touch /run/autopkgtest_no_reboot.stamp' --override-control _integration-tests/data/output/control --built-tree /home/fgimenez/workspace/snappy/trunk --output-dir /tmp/snappy-test/output --- ssh -s /usr/share/autopkgtest/ssh-setup/snappy -- -i /tmp/snappy-test/image/snappy-rolling-edge-latest.img
adt-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds...
adt-run [17:45:22]: @@@@@@@@@@@@@@@@@@@@ test bed setup
adt-run [17:45:23]: testbed dpkg architecture: amd64
adt-run [17:45:23]: testbed running kernel: Linux 4.2.0-11-generic #13-Ubuntu SMP Mon Sep 21 21:33:10 UTC 2015
adt-run [17:45:23]: @@@@@@@@@@@@@@@@@@@@ built-tree /home/fgimenez/workspace/snappy/trunk
adt-run [17:45:23]: testing package ubuntu-snappy version 1.6ubuntu1
adt-run [17:45:23]: test command1: preparing testbed
adt-run [17:45:23]: Updating AppArmor rules to allow autopilot introspection for all clicks (will take a minute)...
WARN: --include specified, including '/var/cache/apparmor/click-ap.rules' in all profiles
adt-run [17:45:23]: test command1: ./_integration-tests/reboot-wrapper integration.test -gocheck.f rollbackSuite
adt-run [17:45:23]: test command1: [-----------------------
START: <autogenerated>:45: rollbackSuite.SetUpSuite
sudo systemctl stop snappy-autopilot.timer
sudo systemctl disable snappy-autopilot.timer
Removed symlink /etc/systemd/system/multi-user.target.wants/snappy-autopilot.timer.
PASS: <autogenerated>:45: rollbackSuite.SetUpSuite	0.080s

START: /home/fgimenez/workspace/snappy/trunk/_integration-tests/tests/rollback_test.go:36: rollbackSuite.TestRollbackMustRebootToOtherVersion
START: <autogenerated>:46: rollbackSuite.SetUpTest
****** Running rollbackSuite.TestRollbackMustRebootToOtherVersion
snappy list
Name          Date       Version Developer 
ubuntu-core   2015-09-28 186     ubuntu    
generic-amd64 2015-09-28 1.4     canonical 
PASS: <autogenerated>:46: rollbackSuite.SetUpTest	0.009s

Preparing fake and calling update.
Faking an available update...
snappy list
Name          Date       Version Developer 
ubuntu-core   2015-09-28 186     ubuntu    
generic-amd64 2015-09-28 1.4     canonical 
sudo mount -o remount,rw /
cp /etc/system-image/channel.ini /tmp/adt-run.mSYY1N/command1-artifacts/channel.ini
Switching the system image conf...
sudo sed -i s/build_number: .*/build_number: 185/ /etc/system-image/channel.ini
cat /etc/system-image/channel.ini
[service]
base: system-image.ubuntu.com
http_port: 80
https_port: 443
channel: ubuntu-core/rolling/edge
device: generic_amd64
build_number: 185
version_detail: ubuntu=20150928,raw-device=20150928,version=186
sudo mount -o remount,ro /
sudo snappy update
Name        Date       Version Developer 
ubuntu-core 2015-09-28 186     ubuntu!   
Reboot to use the new ubuntu-core.
cat /boot/grub/grubenv
# GRUB Environment Block
snappy_mode=try
snappy_ab=b
snappy_trial_boot=0
#######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################Preparing reboot with mark rollbackSuite.TestRollbackMustRebootToOtherVersion
START: <autogenerated>:47: rollbackSuite.TearDownTest
PASS: <autogenerated>:47: rollbackSuite.TearDownTest	0.000s

PASS: /home/fgimenez/workspace/snappy/trunk/_integration-tests/tests/rollback_test.go:36: rollbackSuite.TestRollbackMustRebootToOtherVersion	26.802s

PASS
OK: 1 passed
Rebooting...
bash: line 1:  1327 Killed                  bash -ec './_integration-tests/reboot-wrapper integration.test -gocheck.f rollbackSuite' 2> >(tee -a /tmp/adt-run.mSYY1N/command1-stderr >&2) > >(tee -a /tmp/adt-run.mSYY1N/command1-stdout)
adt-run [17:45:50]: test process requested reboot with marker rollbackSuite.TestRollbackMustRebootToOtherVersion
invalid command wait-reboot
Exit request sent.
adt-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds...
adt-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds...
START: <autogenerated>:45: rollbackSuite.SetUpSuite
sudo systemctl stop snappy-autopilot.timer
sudo systemctl disable snappy-autopilot.timer
PASS: <autogenerated>:45: rollbackSuite.SetUpSuite	0.135s

START: /home/fgimenez/workspace/snappy/trunk/_integration-tests/tests/rollback_test.go:36: rollbackSuite.TestRollbackMustRebootToOtherVersion
START: <autogenerated>:46: rollbackSuite.SetUpTest
****** Resuming rollbackSuite.TestRollbackMustRebootToOtherVersion after reboot
PASS: <autogenerated>:46: rollbackSuite.SetUpTest	0.000s

snappy list
Name          Date       Version Developer 
ubuntu-core   2015-09-28 186     ubuntu    
generic-amd64 2015-09-28 1.4     canonical 
sudo snappy rollback ubuntu-core 185
Setting ubuntu-core to version 185
Name        Date       Version Developer 
ubuntu-core 2015-09-28 185     ubuntu!   
Reboot to use the new ubuntu-core.
cat /boot/grub/grubenv
# GRUB Environment Block
snappy_mode=try
snappy_ab=a
snappy_trial_boot=1
#######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################Preparing reboot with mark rollbackSuite.TestRollbackMustRebootToOtherVersion-rollback
START: <autogenerated>:47: rollbackSuite.TearDownTest
PASS: <autogenerated>:47: rollbackSuite.TearDownTest	0.000s

PASS: /home/fgimenez/workspace/snappy/trunk/_integration-tests/tests/rollback_test.go:36: rollbackSuite.TestRollbackMustRebootToOtherVersion	0.089s

PASS
OK: 1 passed
Rebooting...
bash: line 1:   944 Killed                  bash -ec './_integration-tests/reboot-wrapper integration.test -gocheck.f rollbackSuite' 2> >(tee -a /tmp/adt-run.mSYY1N/command1-stderr >&2) > >(tee -a /tmp/adt-run.mSYY1N/command1-stdout)
adt-run [17:46:07]: test process requested reboot with marker rollbackSuite.TestRollbackMustRebootToOtherVersion-rollback
invalid command wait-reboot
Exit request sent.
adt-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds...
adt-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds...
START: <autogenerated>:45: rollbackSuite.SetUpSuite
sudo systemctl stop snappy-autopilot.timer
sudo systemctl disable snappy-autopilot.timer
PASS: <autogenerated>:45: rollbackSuite.SetUpSuite	0.070s

START: /home/fgimenez/workspace/snappy/trunk/_integration-tests/tests/rollback_test.go:36: rollbackSuite.TestRollbackMustRebootToOtherVersion
START: <autogenerated>:46: rollbackSuite.SetUpTest
****** Resuming rollbackSuite.TestRollbackMustRebootToOtherVersion after reboot
PASS: <autogenerated>:46: rollbackSuite.SetUpTest	0.000s

cat /boot/grub/grubenv
# GRUB Environment Block
snappy_mode=regular
snappy_ab=b
snappy_trial_boot=0
###################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################snappy list
Name          Date       Version Developer 
ubuntu-core   2015-09-28 186     ubuntu    
generic-amd64 2015-09-28 1.4     canonical 
/home/fgimenez/workspace/snappy/trunk/_integration-tests/tests/rollback_test.go:54:
    ...open /home/fgimenez/workspace/snappy/trunk/_integration-tests/tests/rollback_test.go: no such file or directory
... obtained bool = false
... expected bool = true

START: <autogenerated>:47: rollbackSuite.TearDownTest
sudo mount -o remount,rw /
Restoring /etc/system-image/channel.ini...
sudo mv /tmp/adt-run.mSYY1N/command1-artifacts/channel.ini /etc/system-image/channel.ini
sudo mount -o remount,ro /
PASS: <autogenerated>:47: rollbackSuite.TearDownTest	0.034s

FAIL: /home/fgimenez/workspace/snappy/trunk/_integration-tests/tests/rollback_test.go:36: rollbackSuite.TestRollbackMustRebootToOtherVersion

--- FAIL: Test (0.11s)
FAIL
OOPS: 0 passed, 1 FAILED
adt-run [17:46:23]: test command1: -----------------------]
adt-run [17:46:23]: test command1:  - - - - - - - - - - results - - - - - - - - - -
command1             FAIL non-zero exit status 1
adt-run [17:46:23]: Restoring click package AppArmor rules
adt-run [17:46:23]: @@@@@@@@@@@@@@@@@@@@ summary
command1             FAIL non-zero exit status 1
qemu: terminating on signal 15 from pid 9135
Exit request sent.
2015/09/28 17:46:24 Error while running [adt-run -B --setup-commands touch /run/autopkgtest_no_reboot.stamp --override-control _integration-tests/data/output/control --built-tree /home/fgimenez/workspace/snappy/trunk --output-dir /tmp/snappy-test/output --- ssh -s /usr/share/autopkgtest/ssh-setup/snappy -- -i /tmp/snappy-test/image/snappy-rolling-edge-latest.img]: exit status 4
panic: Error while running [adt-run -B --setup-commands touch /run/autopkgtest_no_reboot.stamp --override-control _integration-tests/data/output/control --built-tree /home/fgimenez/workspace/snappy/trunk --output-dir /tmp/snappy-test/output --- ssh -s /usr/share/autopkgtest/ssh-setup/snappy -- -i /tmp/snappy-test/image/snappy-rolling-edge-latest.img]: exit status 4


goroutine 1 [running]:
log.Panicf(0x5e07a0, 0x1b, 0xc8200b5a80, 0x2, 0x2)
	/usr/lib/go/src/log/log.go:327 +0xd8
launchpad.net/snappy/_integration-tests/testutils.ExecCommand(0xc82009a280, 0x11, 0x14, 0x0, 0x0)
	/home/fgimenez/workspace/gocode/src/launchpad.net/snappy/_integration-tests/testutils/testutils.go:58 +0x3ca
launchpad.net/snappy/_integration-tests/testutils/autopkgtest.(*Autopkgtest).adtRun(0xc820012e00, 0xc8200560e0, 0x6e, 0x0, 0x0)
	/home/fgimenez/workspace/gocode/src/launchpad.net/snappy/_integration-tests/testutils/autopkgtest/autopkgtest.go:89 +0x4a3
launchpad.net/snappy/_integration-tests/testutils/autopkgtest.(*Autopkgtest).AdtRunLocal(0xc820012e00, 0xc820012f00, 0x35, 0x0, 0x0)
	/home/fgimenez/workspace/gocode/src/launchpad.net/snappy/_integration-tests/testutils/autopkgtest/autopkgtest.go:65 +0x63
main.main()
	/home/fgimenez/workspace/snappy/trunk/_integration-tests/main.go:99 +0x97b
exit status 2
Download as text