qemu-img check failing on remote image in Eoan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned | ||
qemu (Ubuntu) |
Fix Released
|
Medium
|
Christian Ehrhardt | ||
Eoan |
Fix Released
|
Medium
|
Christian Ehrhardt | ||
Focal |
Fix Released
|
Medium
|
Christian Ehrhardt |
Bug Description
Ubuntu SRU Template:
[Impact]
* There is fallout due to changes in libcurl that affect qemu and might
lead to a hang.
* Fix by backporting the upstream fix
[Test Case]
* If you have network just run
$ qemu-img check http://
* Without network, install apache2, and get a complex qemu file (like a
cloud image) onto the system. Then access the file via apache http but
not localhost (that would work)
[Regression Potential]
* The change is local to the libcurl usage of qemu, so that could be
affected. But then this is what has been found to not work here, so I'd
expect not too much trouble. But if so then in the curl usage (which
means disks on http)
[Other Info]
* n/a
---
The "qemu-img check" function is failing on remote (HTTP-hosted) images, beginning with Ubuntu 19.10 (qemu-utils version 1:4.0+dfsg-
$ /usr/bin/qemu-img check http://
No errors were found on the image.
19778/36032 = 54.89% allocated, 90.34% fragmented, 89.90% compressed clusters
Image end offset: 514064384
The 10.193.37.117 server holds an Apache server that hosts the cloud images on a LAN. Beginning with Ubuntu 19.10/qemu-utils 1:4.0+dfsg-
Related branches
- Rafael David Tinoco (community): Approve
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 329 lines (+301/-0)4 files modifieddebian/changelog (+10/-0)
debian/patches/series (+2/-0)
debian/patches/ubuntu/lp-1848497-virtio-balloon-fix-QEMU-4.0-config-size-migration-in.patch (+137/-0)
debian/patches/ubuntu/lp-1848556-curl-Handle-success-in-multi_check_completion.patch (+152/-0)
- Rafael David Tinoco (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 329 lines (+301/-0)4 files modifieddebian/changelog (+10/-0)
debian/patches/series (+2/-0)
debian/patches/ubuntu/lp-1848497-virtio-balloon-fix-QEMU-4.0-config-size-migration-in.patch (+137/-0)
debian/patches/ubuntu/lp-1848556-curl-Handle-success-in-multi_check_completion.patch (+152/-0)
- Christian Ehrhardt (community): Needs Resubmitting
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 183 lines (+161/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1848556-curl-Handle-success-in-multi_check_completion.patch (+152/-0)
description: | updated |
Changed in qemu: | |
status: | Confirmed → Fix Released |
Changed in qemu (Ubuntu Eoan): | |
assignee: | nobody → Christian Ehrhardt (paelzer) |
Changed in qemu (Ubuntu Focal): | |
assignee: | nobody → Christian Ehrhardt (paelzer) |
Oh, there's no problem checking the file once it's on the local filesystem:
$ wget http:// 10.193. 37.117/ cloud/bionic- server- cloudimg- amd64.img 10.193. 37.117/ cloud/bionic- server- cloudimg- amd64.img server- cloudimg- amd64.img’
--2019-10-17 17:51:33-- http://
Connecting to 10.193.37.117:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 344195072 (328M)
Saving to: ‘bionic-
bionic-server-cloud 100%[== ======= ======= ===>] 328.25M 105MB/s in 3.1s
2019-10-17 17:51:37 (105 MB/s) - ‘bionic- server- cloudimg- amd64.img’ saved [344195072/ 344195072]
$ qemu-img check bionic- server- cloudimg- amd64.img
No errors were found on the image.
16651/36032 = 46.21% allocated, 98.92% fragmented, 98.49% compressed clusters
Image end offset: 344195072