failed to start KVM with uvtool on P8

Bug #1798358 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The KVM smoke test failed on P8 systems with Bionic kernel.

75. INFO: /dev/kvm exists
76. KVM acceleration can be used
77. Generating public/private rsa key pair.
78. Your identification has been saved in /home/ubuntu/.ssh/id_rsa.
79. Your public key has been saved in /home/ubuntu/.ssh/id_rsa.pub.
80. The key fingerprint is:
81. SHA256:pN33OKlzvk59wTVkKO0vsWzIkS68IRl8miAc5iS7M9Y ubuntu@entei
82. The key's randomart image is:
83. +---[RSA 2048]----+
84. | . .o |
85. | . + . oo |
86. | B . . . + ..|
87. | . + . * o o o. o|
88. | o . o S + = +o |
89. | = E = + = X ..|
90. |. o . + * + .|
91. | ..o.. . |
92. | .=+. |
93. +----[SHA256]-----+
94. ** ERROR: The codename returned from lsb_release -c was ( ) and we were expecting 'xenial'
95. stderr:
96. + SUT=bjf-test
97. + SSH_KEY=/home/ubuntu/.ssh/id_rsa
98. + SSH_OPTIONS='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -i /home/ubuntu/.ssh/id_rsa'
99. + DISTRO=xenial
100. + ARCHITECTURE=ppc64el
101. + '[' -z ppc64el ']'
102. + kvm-ok
103. + '[' 0 '!=' 0 ']'
104. + '[' '!' -f /home/ubuntu/.ssh/id_rsa ']'
105. + ssh-keygen -f /home/ubuntu/.ssh/id_rsa -t rsa -N ''
106. ++ uvt-simplestreams-libvirt query
107. ++ grep -P 'xenial.*ppc64el'
108. + image=
109. + '[' -z '' ']'
110. + uvt-simplestreams-libvirt sync release=xenial arch=ppc64el
111. + uvt-kvm create bjf-test release=xenial arch=ppc64el
112. + uvt-kvm wait bjf-test --insecure --ssh-private-key-file /home/ubuntu/.ssh/id_rsa
113. uvt-kvm: error: libvirt domain 'bjf-test' is not running.
114. ++ uvt-kvm ip bjf-test
115. uvt-kvm: error: no IP address found for libvirt machine 'bjf-test'.
116. + ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -i /home/ubuntu/.ssh/id_rsa ubuntu@ uname -a
117. ++ cut '-d ' -f 2
118. +++ uvt-kvm ip bjf-test
119. uvt-kvm: error: no IP address found for libvirt machine 'bjf-test'.
120. ++ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -i /home/ubuntu/.ssh/id_rsa ubuntu@ lsb_release -c
121. + RESULT=
122. + '[' '' '!=' xenial ']'
123. + echo '** ERROR: The codename returned from lsb_release -c was (' ') and we were expecting '\''xenial'\'''
124. + exit 1

But the test can pass if you run it by hand, it looks like the wait command needs some time to wait for the KVM to boot.

Maybe we should check this first by adding some sleep command.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-38-generic 4.15.0-38.41
ProcVersionSignature: User Name 4.15.0-38.41-generic 4.15.18
Uname: Linux 4.15.0-38-generic ppc64le
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Oct 17 10:27 seq
 crw-rw---- 1 root audio 116, 33 Oct 17 10:27 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: ppc64el
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Wed Oct 17 11:37:34 2018
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb:
 Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
PciMultimedia:

ProcFB:

ProcKernelCmdLine: root=/dev/mapper/mpath0-part2 ro console=hvc0
ProcLoadAvg: 0.08 0.02 0.01 1/1507 7274
ProcSwaps:
 Filename Type Size Used Priority
 /swap.img file 8388544 0 -2
ProcVersion: Linux version 4.15.0-38-generic (buildd@bos02-ppc64el-018) (gcc version 7.3.0 (User Name 7.3.0-16ubuntu3)) #41-User Name SMP Wed Oct 10 10:57:45 UTC 2018
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-38-generic N/A
 linux-backports-modules-4.15.0-38-generic N/A
 linux-firmware 1.173.1
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
VarLogDump_list: total 0
cpu_cores: Number of cores present = 20
cpu_coreson: Number of cores online = 20
cpu_smt: SMT is off

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Changed in linux (Ubuntu):
status: New → Invalid
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Tested with P8 "modoc" + Bionic 4.18 kernel

It won't pass the test and still return:
uvt-kvm: error: libvirt domain 'bjf-test' is not running.

summary: - failed to start KVM on P8 with Bionic kernel
+ failed to start KVM on P8 with Bionic
Po-Hsu Lin (cypressyew)
summary: - failed to start KVM on P8 with Bionic
+ failed to start KVM with uvtool on P8 Bionic
Po-Hsu Lin (cypressyew)
tags: added: ubuntu-kvm-smoke-test
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: failed to start KVM with uvtool on P8 Bionic

The error on Eoan 5.3 P8 (node modoc) is:

  uvt-kvm create bjf-test release=eoan arch=ppc64el
  uvt-kvm: error: libvirt: internal error: qemu unexpectedly closed the monitor: 2019-10-26T22:05:58.048240Z qemu-system-ppc64le: Requested safe cache capability level not supported by kvm, try cap-cfpc=broken
  uvt-kvm wait bjf-test --insecure --ssh-private-key-file /home/ubuntu/.ssh/id_rsa
  uvt-kvm: error: libvirt: Domain not found: no domain with matching name 'bjf-test'

summary: - failed to start KVM with uvtool on P8 Bionic
+ failed to start KVM with uvtool on P8
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

BTW this test has passed on the P9 node baltar with the same Eoan kernel.

Po-Hsu Lin (cypressyew)
tags: added: 5.3 eoan sru-20200127
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

P8 (node dryden) works with B-4.15 and F-5.4.
G-5.8 failed with bug 1930646

I think we can close this bug now.

Changed in ubuntu-kernel-tests:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.