Bug 2174139

Summary: QEMU 7.0 gets the request alignment wrong and I/O errors are returned
Product: [Fedora] Fedora Reporter: Andrea Perotti <aperotti>
Component: qemuAssignee: Eduardo Lima (Etrunko) <elima>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 37CC: berrange, cfergeau, coli, crobinso, elima, hreitz, jinzhao, jmoyer, juzhang, kraxel, kwolf, lijin, lukas, mcascell, minlei, mrezanin, pbonzini, philmd, qinwang, qzhang, rjones, stefanha, vgoyal, virt-maint, virt-maint, xuwei
Target Milestone: ---Keywords: Regression, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-7.0.0-14.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2143170 Environment:
Last Closed: 2023-03-04 02:18:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2143170    
Bug Blocks: 2173513    

Comment 1 Andrea Perotti 2023-02-28 18:02:20 UTC
As per Richard Jones suggestion, cloning this downstream BZ to ensure this qemu fix is included in Fedora 37:

https://git.qemu.org/?p=qemu.git;a=commitdiff;h=25474d90aa50bd32e0de395a33d8de42dd6f2aef

Comment 2 Andrea Perotti 2023-02-28 18:11:29 UTC
This the MR for CentOS Stream:
https://gitlab.com/redhat/centos-stream/src/qemu-kvm/-/merge_requests/123

Comment 3 Eduardo Lima (Etrunko) 2023-02-28 20:06:16 UTC
Backport is done, waiting for scratch build to complete

https://koji.fedoraproject.org/koji/taskinfo?taskID=98122940

Comment 4 Andrea Perotti 2023-03-01 10:29:12 UTC
Hi Eduardo, thanks for addressing this so quickly.

This missing patch was causing the impossibility to me - and maybe many others - to progress to kernel >= 6.0.

In my environment, with the patch, I'm now finally able to install RHEL on SCSI VirtIO raw device mapped partitions, LVM2 and LVM2 or top of VDO.


Thanks A LOT: you made my day and solved a long standing pita I had!

Comment 5 Richard W.M. Jones 2023-03-01 14:11:09 UTC
https://koji.fedoraproject.org/koji/taskinfo?taskID=98154031

Comment 6 Richard W.M. Jones 2023-03-01 14:47:00 UTC
Eduardo, FYI I disabled tests on Rawhide:
https://src.fedoraproject.org/rpms/qemu/c/0ef68abd71ff6a65cf1e9dbb1c57653b048f8328?branch=rawhide

The failure seen in the build in comment 5 are very similar (not
exactly the same).  I can even reproduce them locally.  However
I'm not sure what the problem is, whether it's qemu or gnutls
or something else.

See also this thread:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/C2U5RBADZB2ZUMR74PLNV73C3AIPSLWH/

Comment 7 Eduardo Lima (Etrunko) 2023-03-01 14:50:23 UTC
(In reply to Richard W.M. Jones from comment #6)
> Eduardo, FYI I disabled tests on Rawhide:
> https://src.fedoraproject.org/rpms/qemu/c/
> 0ef68abd71ff6a65cf1e9dbb1c57653b048f8328?branch=rawhide
> 
> The failure seen in the build in comment 5 are very similar (not
> exactly the same).  I can even reproduce them locally.  However
> I'm not sure what the problem is, whether it's qemu or gnutls
> or something else.
> 
> See also this thread:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/
> thread/C2U5RBADZB2ZUMR74PLNV73C3AIPSLWH/

Thanks, I noticed that error for other builds done before, and it is usually a matter of trying it again. I'll do it and if it persists, I will backport your patch.

Comment 8 Eduardo Lima (Etrunko) 2023-03-01 17:54:29 UTC
https://koji.fedoraproject.org/koji/taskinfo?taskID=98161897

Comment 9 Eduardo Lima (Etrunko) 2023-03-01 20:31:45 UTC
After trying for another 3 times in a row, I cherry picked the patch which disables tests on i686 and launched the build (hopefully) one last time. :)

https://koji.fedoraproject.org/koji/taskinfo?taskID=98166085

Comment 10 Eduardo Lima (Etrunko) 2023-03-01 20:41:11 UTC
I wonder how the scratch build passed with no troubles.

Comment 11 Fedora Update System 2023-03-02 12:20:50 UTC
FEDORA-2023-c7c18ef69a has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c7c18ef69a

Comment 12 Fedora Update System 2023-03-03 02:25:38 UTC
FEDORA-2023-c7c18ef69a has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c7c18ef69a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c7c18ef69a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2023-03-04 02:18:03 UTC
FEDORA-2023-c7c18ef69a has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.