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 2173584 - [Machines] "No more available PCI slots" is shown when adding watchdog to a running vm
Summary: [Machines] "No more available PCI slots" is shown when adding watchdog to a r...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: cockpit-machines
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 9.3
Assignee: Nobody
QA Contact: Xianghua Chen
Daniel Vozenilek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-27 10:15 UTC by Xianghua Chen
Modified: 2024-03-08 04:25 UTC (History)
10 users (show)

Fixed In Version: 290
Doc Type: Bug Fix
Doc Text:
.Hot plugging a Watchdog card to a virtual machine no longer fails Previously, if no PCI slots were available, adding a Watchdog card to a running virtual machine (VM) failed with the following error: ---- Failed to configure watchdog ERROR Error attempting device hotplug: internal error: No more available PCI slots ---- With this update, the problem has been fixed and adding a Watchdog card to a running VM now works as expected.
Clone Of:
Environment:
Last Closed: 2023-11-07 08:24:46 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-149916 0 None None None 2023-02-27 10:18:33 UTC
Red Hat Product Errata RHBA-2023:6336 0 None None None 2023-11-07 08:24:59 UTC

Description Xianghua Chen 2023-02-27 10:15:53 UTC
Description of problem:
[Machines] "No more available PCI slots" is shown when adding watchdog to a running vm
 
Packages:
cockpit-machines-284-1.el9.noarch
cockpit-286-1.el9.x86_64
libvirt-dbus-1.4.1-5.el9.x86_64
libvirt-daemon-9.0.0-7.el9.x86_64
How reproducible:
100%

Steps:
1. Prepare a running VM (Cirros, Fedora, all ok)
2. Enter VM details page, Click "Add" after watchdog in Overview tab
3. On "Add watchdog device type" , choose "Reset", click Add
Failed to configure watchdog
ERROR Error attempting device hotplug: internal error: No more available PCI slots


There is a workaround for above issue, add "pcie-pci-bridge" controller to the xml:
# virsh edit $vm
<controller type='pci' index='17' model='pcie-to-pci-bridge'>
      <model name='pcie-pci-bridge'/>
 </controller>
Then shutdown the vm, run it again, then repeat step2-3, the watchdog can be attached now. 
Check the xml , you can see:
# virsh dumpxml cirros| grep -iA 1 watchdog
    <watchdog model='i6300esb' action='reset'>
      <alias name='watchdog0'/>
      <address type='pci' domain='0x0000' bus='0x0f' slot='0x01' function='0x0'/>
    </watchdog>

Actual results:
See step 3. 

Expected results:
It should attach successful in step 3 without any extra step working on the xml.


Additional info:
As this bug will absolutely encounterd by customer, please evaluate whether we should get excetpin+ for it, if not, we should at least mark this problem in release document and provide the workaround by editing xml, please also comment your opinion, thanks.

Comment 10 Martin Pitt 2023-05-17 06:57:17 UTC
Chen, thanks for pointing out! Done. (Meh, why is the automation so unreliable..)

Comment 14 Xianghua Chen 2023-05-22 03:43:24 UTC
Verified with Packages:
cockpit-machines-290-1.el9.noarch
cockpit-292-1.el9.x86_64
libvirt-dbus-1.4.1-5.el9.x86_64
libvirt-daemon-9.0.0-10.1.el9_2.x86_64

Steps:
1. Prepare a running VM (Cirros, Fedora, all ok)
2. Enter VM details page, Click "Add" after watchdog in Overview tab
3. On "Add watchdog device type" , choose "Reset", click Add

It's successfully added to the vm. So verified.

Comment 20 Xianghua Chen 2023-10-24 03:04:58 UTC
Hi Pashah, I think we can remove this known issue from RHEL8.9&RHEL9.3 release note now since they are fixed now. Thank you.

Comment 25 errata-xmlrpc 2023-11-07 08:24:46 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-machines 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-2023:6336

Comment 27 Red Hat Bugzilla 2024-03-08 04:25:24 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.