Bug 1846237 - RHEL-8 Backport nodedev race condition fix
Summary: RHEL-8 Backport nodedev race condition fix
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: libvirt
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.3
Assignee: Daniel Berrangé
QA Contact: yalzhang@redhat.com
URL:
Whiteboard:
Depends On: 1845459
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-11 07:43 UTC by Jiri Denemark
Modified: 2020-11-02 06:57 UTC (History)
7 users (show)

Fixed In Version: libvirt-6.0.0-24.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1845459
Environment:
Last Closed: 2020-07-28 07:13:49 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3172 0 None None None 2020-07-28 07:14:41 UTC

Description Jiri Denemark 2020-06-11 07:43:32 UTC
+++ This bug was initially created as a clone of Bug #1845459 +++

Description of problem:
List of nodedev is not populated correctly.

Version-Release number of selected component (if applicable):
libvirt-daemon-6.0.0-17.module+el8.3.0+6423+e4cb6418.s390x

How reproducible:
99%


Steps to Reproduce:
1. systemctl stop libvirtd
2. virsh nodedev-list --cap net

Actual results:
empty


Expected results:
List of net devices, that is, whatever is displayed if 2. is repeated, e.g.
net_enc600_1a_79_fe_a2_82_fd
net_lo_00_00_00_00_00_00
net_virbr0_nic_52_54_00_4d_4f_f4

Additional info:
a.) Fix is available upstream https://gitlab.com/libvirt/libvirt/-/commit/008abeb03c262149b756ad5a226ff6cbc5e37e2c
b.) s390x doesn't have AV
c.) This causes false negatives for tp-libvirt virsh.nodedev_dumpxml.positve_test.acl_test.device_type_net

--- Additional comment from yalzhang on 2020-06-10 23:40:31 UTC ---

Refer to Bug 1813282, the patch included in libvirt-6.2.0-1.el8 on rhel-av 8.3.0

Comment 4 yalzhang@redhat.com 2020-06-15 05:54:37 UTC
Reproduce the bug on libvirt-6.0.0-23.module+el8.2.1
Upgrade libvirt to libvirt-6.0.0-24.module+el8.2.1 and test again:

# systemctl stop libvirtd
Warning: Stopping libvirtd.service, but it can still be activated by:
  libvirtd.socket
  libvirtd-ro.socket
  libvirtd-admin.socket
# virsh nodedev-list --cap net
net_eno1_18_66_da_e6_89_08
net_eno2_18_66_da_e6_89_09
net_eno3_18_66_da_e6_89_0a
net_eno4_18_66_da_e6_89_0b
net_enp130s0f0_90_e2_ba_30_79_5c
net_enp130s0f1_90_e2_ba_30_79_5d
net_enp5s0_e4_1d_2d_48_26_11
net_enp5s0d1_e4_1d_2d_48_26_12
net_lo_00_00_00_00_00_00
net_ovs_system_d2_c7_bf_41_a3_ac
net_ovsbr0_18_66_da_e6_89_09
net_testtap_fe_54_00_c6_3b_95
net_virbr0_nic_52_54_00_ed_97_19

Comment 6 errata-xmlrpc 2020-07-28 07:13:49 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, 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-2020:3172


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