ubuntu_kvm_smoke_test failed with bjf-test not found on X/B/H

Bug #1915569 reported by Kelsey Steele
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

ubuntu_kvm_smoke_test is reported to be failing before, though failing with different output now.

https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1896153

Not a regression, seen on:
4.15.0-1084.93 - ibm-gt
4.15.0-1083.92 - ibm-gt
4.15.0-1082.91 - ibm-gt

106. stdout:
107. INFO: /dev/kvm exists
108. KVM acceleration can be used
109. Generating public/private rsa key pair.
110. Your identification has been saved in /home/ubuntu/.ssh/id_rsa.
111. Your public key has been saved in /home/ubuntu/.ssh/id_rsa.pub.
112. The key fingerprint is:
113. SHA256:Eyln/VA00BhpeMcA9Q9vCa9ylpTF8mG0M3Lep1j2hZM ubuntu@rumford
114. The key's randomart image is:
115. +---[RSA 2048]----+
116. | .+=X+ . |
117. | .o=o++ . |
118. | . =oo.* X |
119. | + . o / O |
120. | S + E +|
121. | . . B +o|
122. | . * . .|
123. | + |
124. | |
125. +----[SHA256]-----+
126. ** ERROR: The codename returned from lsb_release -c was ( ) and we were expecting 'bionic'
127. stderr:
128. + SUT=bjf-test
129. + SSH_KEY=/home/ubuntu/.ssh/id_rsa
130. + SSH_OPTIONS='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -i /home/ubuntu/.ssh/id_rsa'
131. ++ lsb_release -c
132. ++ awk '{print$2}'
133. + DISTRO=bionic
134. + ARCHITECTURE=amd64
135. + trap cleanup EXIT
136. + '[' -z amd64 ']'
137. + kvm-ok
138. + '[' 0 '!=' 0 ']'
139. + '[' '!' -f /home/ubuntu/.ssh/id_rsa ']'
140. + ssh-keygen -f /home/ubuntu/.ssh/id_rsa -t rsa -N ''
141. + '[' amd64 = ppc64el ']'
142. ++ uvt-simplestreams-libvirt query
143. ++ grep -P 'bionic.*amd64'
144. + image=
145. + '[' -z '' ']'
146. + uvt-simplestreams-libvirt sync --source http://cloud-images.ubuntu.com/daily release=bionic arch=amd64
147. qemu-img: Unable to initialize gcrypt
148. Traceback (most recent call last):
149. File "/usr/bin/uvt-simplestreams-libvirt", line 27, in
150. uvtool.libvirt.simplestreams.main()
151. File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 329, in main
152. args.func(args)
153. File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 269, in main_sync
154. tmirror.sync(smirror, initial_path)
155. File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 91, in sync
156. return self.sync_index(reader, path, data, content)
157. File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 254, in sync_index
158. self.sync(reader, path=epath)
159. File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 89, in sync
160. return self.sync_products(reader, path, data, content)
161. File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 341, in sync_products
162. self.insert_item(item, src, target, pgree, ipath_cs)
163. File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 236, in insert_item
164. pool_name=LIBVIRT_POOL_NAME
165. File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/__init__.py", line 66, in create_volume_from_fobj
166. shell=False, close_fds=False)
167. File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
168. raise CalledProcessError(retcode, cmd)
169. subprocess.CalledProcessError: Command '[u'qemu-img', u'convert', u'-f', u'qcow2', u'-O', u'qcow2', '/tmp/tmp4wHatr', '/tmp/tmpqZ7VYm']' returned non-zero exit status 1
170. + uvt-kvm create bjf-test release=bionic arch=amd64
171. uvt-kvm: error: no images found that match filters ['release=bionic', 'arch=amd64'].
172. + uvt-kvm wait bjf-test --insecure --ssh-private-key-file /home/ubuntu/.ssh/id_rsa
173. uvt-kvm: error: libvirt: Domain not found: no domain with matching name 'bjf-test'
174. ++ uvt-kvm ip bjf-test
175. uvt-kvm: error: libvirt: Domain not found: no domain with matching name 'bjf-test'
176. + ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -i /home/ubuntu/.ssh/id_rsa ubuntu@ uname -a
177. ++ cut '-d ' -f 2
178. +++ uvt-kvm ip bjf-test
179. uvt-kvm: error: libvirt: Domain not found: no domain with matching name 'bjf-test'
180. ++ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -i /home/ubuntu/.ssh/id_rsa ubuntu@ lsb_release -c
181. + RESULT=
182. + '[' '' '!=' bionic ']'
183. + echo '** ERROR: The codename returned from lsb_release -c was (' ') and we were expecting '\''bionic'\'''
184. + exit 1
185. + cleanup
186. + uvt-kvm destroy bjf-test
187. uvt-kvm: error: domain 'bjf-test' not found.
188. + '[' amd64 = ppc64el ']'

description: updated
tags: added: ibm-gt
tags: added: 4.15
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Seeing this on Xenial 4.4.0-204.236 generic arm64 and s390x

Doesn't appear we were collecting this test on these archs previously, so wouldn't consider this a regression on Xenial.

host for arm64: ms10-34-mcdivittB0-kernel

host for s390x: s2lp3 and kernel01

tags: added: 4.4 sru-20210222 xenial
tags: added: arm64 s390x
summary: - ubuntu_kvm_smoke_test failed with bjf-test not found on B-ibm-gt
+ ubuntu_kvm_smoke_test failed with bjf-test not found on B-ibm-gt and
+ Xenial
tags: added: sru-20210315
tags: removed: ibm-gt
tags: added: sru-20210412
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote : Re: ubuntu_kvm_smoke_test failed with bjf-test not found on B-ibm-gt and Xenial

Issue also found with xenial/linux-hwe 4.15.0-143.147~16.04.3.

tags: added: hwe
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Spotted on hirsute/linux 5.11.0-18.19

summary: - ubuntu_kvm_smoke_test failed with bjf-test not found on B-ibm-gt and
- Xenial
+ ubuntu_kvm_smoke_test failed with bjf-test not found on X/B/H
tags: added: 5.11 hirsute sru-20210510
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Also observed in some Bionic kernels, cycle sru-20210510.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hi Kelsey and reviewers,
this failure here in the bug description is actually about "qemu-img: Unable to initialize gcrypt" (bug 1882518), which was exclusively found on ibm-gt kernel.

The "bjf-test not found" is the test try to destroy the KVM in the end of the test, sorry this message is causing confusion, it's has been addressed in https://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?id=545e719ed34a5d482886eb95ee6542b4094262c7

Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Thanks Po-Hsu Lin, indeed it seems it is related to the "qemu-img: Unable to initialize gcrypt", also observed in this last cycle. I'll investigate more , it's not a regression per-se since always happened.

tags: added: gt sru-20210531
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Couldn't investigate further, my apologies.
Although seems very interesting - doesn't happen in B/generic.

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.