Bug 1812652 - Disable USB when not required
Summary: Disable USB when not required
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
urgent
Target Milestone: beta
: 17.0
Assignee: Stephen Finucane
QA Contact: James Parker
URL:
Whiteboard:
: 1813007 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-11 18:39 UTC by Marcelo Tosatti
Modified: 2022-09-21 12:10 UTC (History)
16 users (show)

Fixed In Version: openstack-nova-23.2.1-0.20220428212241.327693a.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:09:42 UTC
Target Upstream Version: Wallaby
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 756549 0 None master: MERGED nova: libvirt: Only add a USB controller if it's necessary (I5b16d9ddc9cad56b367d1ad94abba95d675840b0) 2022-06-13 19:30:04 UTC
Red Hat Issue Tracker OSP-6485 0 None None None 2022-06-13 19:14:52 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:10:33 UTC

Description Marcelo Tosatti 2020-03-11 18:39:33 UTC
Description of problem:

To achieve the necessary low latency on a KVM-RT guest, it is necessary to drop
certain devices from the XML configuration, as described here:

https://bugzilla.redhat.com/show_bug.cgi?id=1787442

However, as recommended by OpenStack developers in the BZ above, no XML modifications should be made, instead it should be fixed via image props/extra specs.

Version-Release number of selected component (if applicable):

13 (should be fixed in newer releases).

How reproducible:
See bug above (BZ 1787442)

Steps to Reproduce:
See bug above (BZ 1787442).

Comment 2 Stephen Finucane 2020-03-13 14:53:51 UTC
*** Bug 1813007 has been marked as a duplicate of this bug. ***

Comment 3 Stephen Finucane 2020-10-07 16:45:35 UTC
I've started working on this. Currently, on an x86 host, no USB devices will be added unless graphics are enabled. The only devices that nova currently supports where a USB bus may be used are input devices (keyboard, mouse, tablet) and disk devices. If graphics are disabled, no input device will be attached. You can disable graphics at a host-level by setting '[vnc]enabled=False' and '[spice]enabled=False' (note: SPICE is not currently supported in OSP so this should be 'false' by default). However, libvirt will automatically add a USB bus even if there are no USB-based devices. My proposed fix is to explicitly disable the bus in this case. With that fix in place, disabling graphics and ensuring disks use a non-USB bus (this would only happen if you set the 'hw_disk_bus' image metadata property to 'usb').

@Marcelo Tosatti: Does that sound reasonable? I assume graphics are not a desirable feature on real-time instances.

Comment 4 Marcelo Tosatti 2020-10-15 17:04:01 UTC
(In reply to Stephen Finucane from comment #3)
> I've started working on this. Currently, on an x86 host, no USB devices will
> be added unless graphics are enabled. The only devices that nova currently
> supports where a USB bus may be used are input devices (keyboard, mouse,
> tablet) and disk devices. If graphics are disabled, no input device will be
> attached. You can disable graphics at a host-level by setting
> '[vnc]enabled=False' and '[spice]enabled=False' (note: SPICE is not
> currently supported in OSP so this should be 'false' by default). However,
> libvirt will automatically add a USB bus even if there are no USB-based
> devices. My proposed fix is to explicitly disable the bus in this case. With
> that fix in place, disabling graphics and ensuring disks use a non-USB bus
> (this would only happen if you set the 'hw_disk_bus' image metadata property
> to 'usb').
> 
> @Marcelo Tosatti: Does that sound reasonable? 

Yes.

> I assume graphics are not a desirable feature on real-time instances.

VNC graphics processing can cause latency spikes, as seen by:

https://bugzilla.redhat.com/show_bug.cgi?id=1787442#c0

Comment 16 errata-xmlrpc 2022-09-21 12:09: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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543


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