Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1862779

Summary: In ppc64le there will an error which is 'SATA is not supported with this QEMU binary' when attaching/detaching disks
Product: Red Hat Enterprise Linux 8 Reporter: YunmingYang <yunyang>
Component: cockpit-appstreamAssignee: Martin Pitt <mpitt>
Status: CLOSED ERRATA QA Contact: YunmingYang <yunyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: kkoukiou, leiwang, mpitt, pkrempa, virt-maint, wshi, xchen, ymao
Target Milestone: rcKeywords: Rebase
Target Release: 8.6Flags: pm-rhel: mirror+
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-appstream-255-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 13:42:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The VM xml none

Description YunmingYang 2020-08-02 12:37:03 UTC
Description of problem:
When adding a disk whose bus is sata in vm off, then remove this disk, and click 'Run' button, there will be an error which is 'SATA is not supported with this QEMU binary'

Version-Release number of selected components (if applicable):
cockpit-machines-224-1.el8.noarch
libvirt-dbus-1.3.0-2.module+el8.3.0+6423+e4cb6418.ppc64le

How reproducible:
100%

Steps to Reproduce:
1. Prepare an off VM in a ppc64le host
2. Add a disk whose bus is sata
3. Remove the disk which is added in step 2
4. Run the VM

Actual results:
1. After step 4, there will be an error which is 'SATA is not supported with this QEMU binary'

Expected results: 
1. After step 4, the VM should be ran correctly

Additional info:
If adding the disk whose bus is sata when the VM is running, there will still be an error 'SATA is not supported with this QEMU binary'. Is this behavior expected?

Comment 1 Martin Pitt 2020-08-06 12:23:11 UTC
@Katerina: This sounds more like something between libvirt not detecting capabilities right, and QEMU on ppc64el not supporting SATA?

Comment 3 Katerina Koukiou 2021-03-22 11:40:15 UTC
Yunming would be it be possible that you try to reproduce it with CLI, aka `virsh attach-disk`. This is unlikely a cockpit-machines bug.
 
The machine type will be also useful to include in the bug, just paste the whole VM xml.

Comment 4 YunmingYang 2021-03-25 20:56:13 UTC
Hi, Katerina

I can reproduce this issue with "virsh attach-disk" and "virsh detach-disk". The VM xml is in the attachment.

Comment 5 YunmingYang 2021-03-25 20:57:24 UTC
Created attachment 1766427 [details]
The VM xml

Comment 6 Peter Krempa 2021-03-26 08:49:09 UTC
The PPC64 platform doesn't support the SATA bus, so it's a configuration error.

The 'sata' bus shouldn't even be mentioned in the 'virsh domcapabilities' output on the platform.

I don't have a PPC64 box handy to verify the last claim, but it's a configuration error regardless.

Comment 7 Katerina Koukiou 2021-03-26 09:32:36 UTC
@Peter thanks for the clarification. So, we miss the check in domcapabilities when showing the supported disk bus types, when creating/editing disks.

Comment 9 Martin Pitt 2021-10-14 11:59:44 UTC
@yunyang can you please qe-ack this?

Comment 10 Martin Pitt 2021-10-15 15:57:47 UTC
Yunyang: Unlike most bugzillas that we process, this one can *not* be pre-verified automatically through tests, as we don't have ppc64el test machines. So I'm afraid this needs manual testing. Thanks!

Comment 11 YunmingYang 2021-10-16 04:32:47 UTC
Sure, and sorry for missing verification in the PR, I didn't check my email at that time

Comment 12 YunmingYang 2021-10-19 13:46:16 UTC
Pre-verified Versions:
cockpit-machines-255-1.el8.noarch
cockpit-255-1.el8.ppc64le
libvirt-dbus-1.3.0-2.module+el8.6.0+12861+13975d62.ppc64le


Pre-verified Steps:
1 Get supported bus by gdbus call  --system --dest org.libvirt --object-path /org/libvirt/QEMU --method org.libvirt.Connect.GetDomainCapabilities '' 'ppc64le' 'pseries-rhel8.5.0' "" 0 | grep "enum name='bus'"
2 Go to the VM detail page, click "Add disk" button, then click "Show additional options", then check the options of "Bus"
3 Switch "Source" to "Use existing", then check the options of "Bus"
4 Switch "Source" to "Custom path", then check the options of "Bus"
5 Close "Add disk" dialog, click "Edit" of a existing disk, check options of "Bus"

Pre-verified Results:
1 In step 1, the enum should include "scsi","virtio" and "usb".
2 In step 2, there should no "sata" shown in "Bus" options, and the option list should show "scsi","virtio" and "usb"
2 In step 3, there should no "sata" shown in "Bus" options, and the option list should show "scsi","virtio" and "usb"
2 In step 4, there should no "sata" shown in "Bus" options, and the option list should show "scsi","virtio" and "usb"
2 In step 5, there should no "sata" shown in "Bus" options, and the option list should show "scsi","virtio" and "usb"

According to the results, change ‘Verified’ status to ‘TESTED’.

Comment 15 YunmingYang 2021-10-21 09:34:14 UTC
Test Versions:
cockpit-ws-255-1.el8.ppc64le
cockpit-255-1.el8.ppc64le
libvirt-dbus-1.3.0-2.module+el8.6.0+12861+13975d62.ppc64le



Test Steps:
1 Get supported bus by gdbus call  --system --dest org.libvirt --object-path /org/libvirt/QEMU --method org.libvirt.Connect.GetDomainCapabilities '' 'ppc64le' 'pseries-rhel8.5.0' "" 0 | grep "enum name='bus'"
2 Prepare a running VM, then go to the VM detail page, click "Add disk" button, then click "Show additional options", then check the options of "Bus"
3 Switch "Source" to "Use existing", then check the options of "Bus"
4 Switch "Source" to "Custom path", then check the options of "Bus"
5 Close "Add disk" dialog, then shut off the VM, after that, click "Edit" of a existing disk, check options of "Bus"


Test Results:
1 In step 1, the enum should include "scsi","virtio" and "usb".
2 In step 2, there should no "sata" shown in "Bus" options, and the option list should show "scsi","virtio" and "usb"
2 In step 3, there should no "sata" shown in "Bus" options, and the option list should show "scsi","virtio" and "usb"
2 In step 4, there should no "sata" shown in "Bus" options, and the option list should show "scsi","virtio" and "usb"
2 In step 5, there should no "sata" shown in "Bus" options, and the option list should show "scsi","virtio" and "usb"


According to the results, move status to VERIFIED.

Comment 17 errata-xmlrpc 2022-05-10 13:42:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (cockpit-appstream bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:1806