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 1994898 - [RFE] Adding and removing VM's host devices for cockpit-machines
Summary: [RFE] Adding and removing VM's host devices for cockpit-machines
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: cockpit-machines
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 9.0
Assignee: Simon Kobyda
QA Contact: Xianghua Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-18 06:32 UTC by Xianghua Chen
Modified: 2022-05-17 13:01 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 12:44:42 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-93919 0 None None None 2021-08-18 06:34:08 UTC
Red Hat Product Errata RHBA-2022:2388 0 None None None 2022-05-17 12:44:50 UTC

Description Xianghua Chen 2021-08-18 06:32:18 UTC
Description of problem:
[RFE] Adding and removing VM's host devices for cockpit-machines

Version-Release number of selected component (if applicable):
cockpit-machines-249-1.el9.noarch
libvirt-dbus-1.4.1-4.el9.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Matej Marušák 2021-08-18 06:41:47 UTC
This is being worked on in upstream in https://github.com/cockpit-project/cockpit-machines/pull/226

Comment 4 Simon Kobyda 2021-10-29 11:45:06 UTC
Yes this indeed is fixed and in released version of cockpit-machines

Comment 5 Xianghua Chen 2021-11-01 06:37:03 UTC
Preverified with package:
cockpit-machines-254-1.el9.noarch
libvirt-dbus-1.4.1-5.el9.x86_64
cockpit-255-1.el9.x86_64

Steps:
1. Prepare a shut off vm, enter vm details page
2. Click "Add host device", there will be a dialog showing up, Type "USB", choose a usb device and click Add
3. Check xml by:
# virsh dumpxml cirros | grep -iC 5 hostdev
There is usb device related:
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x1d6b'/>
        <product id='0x0001'/>
        <address bus='6' device='1'/>
      </source>
      <alias name='hostdev0'/>
      <address type='usb' bus='0' port='1'/>
    </hostdev>
4. Remove it, check the xml again.
5. Choose "PCI" as type, and choose a Audio or Graphic device then click Add
6. Check xml by:
# virsh dumpxml cirros | grep -iC 5 hostdev
There is xml info like:
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>
7. Remove it, check the xml again.


There is one bug occurs occasionally, open another bug for it Bug2018448.
But as the basic functions are ok here, So pre-verified.

Comment 8 Xianghua Chen 2021-12-17 13:10:25 UTC
Verified with pakages:
cockpit-machines-258.1-1.el9.noarch
libvirt-dbus-1.4.1-5.el9.x86_64
cockpit-258-1.el9.x86_64

Steps:
1. Prepare a shut off vm, enter vm details page
2. Click "Add host device", there will be a dialog showing up, Type "USB", choose a usb device and click Add
3. Check xml by:
# virsh dumpxml cirros | grep -iC 5 hostdev
There is usb device related.
4. Remove it, check the xml again.
5. Choose "PCI" as type, and choose a Audio or Graphic device then click Add
6. Check xml by:
# virsh dumpxml cirros | grep -iC 5 hostdev
There is pci device related.
7. Remove it, check the xml again. 

Verified as basic functions ok, track Bug2018448 for other issue related.

Comment 10 errata-xmlrpc 2022-05-17 12:44:42 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 (new packages: cockpit-machines), 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:2388


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