Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2063286

Summary: libvirt: the unix domain socket remains even after the VM is destroyed [rhel-8.5.0.z]
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
Status: CLOSED ERRATA QA Contact: Lili Zhu <lizhu>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.5CC: drjones, fjin, fj-lsoft-kichijo, gveitmic, hshuai, jdenemar, kkiwi, lcapitulino, lizhu, lmen, mgokhool, mkletzan, mmizuma, mprivozn, mzamazal, nilal, sfroemer, tumeya, virt-maint, xuzhang, yalzhang, yidliu, ymankad
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 8.5Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-7.6.0-6.1.module+el8.5.0+14474+b3410d40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2060945 Environment:
Last Closed: 2022-03-21 08:01:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2045879, 2060945    
Bug Blocks: 2057048    

Comment 1 Michal Privoznik 2022-03-14 08:32:49 UTC
To POST:

https://gitlab.com/redhat/rhel/src/libvirt/-/merge_requests/17

Comment 7 Lili Zhu 2022-03-18 02:48:26 UTC
Verified this bug with:
libvirt-daemon-7.6.0-6.1.module+el8.5.0+14474+b3410d40.x86_64
qemu-kvm-6.0.0-33.module+el8.5.0+14188+8c5ecfdd.3.x86_64
glib2-2.56.4-156.el8.x86_64

1. change the value of LimitNOFILE in /usr/lib/systemd/system/libvirtd.service
# cat /usr/lib/systemd/system/libvirtd.service
...
LimitNOFILE=100
...

2. reload the daemon
# systemctl stop libvirtd
# systemctl daemon-reload
# systemctl start libvirtd

3. prepare a guest xml

4. creating and destroy the guest repeatedly
for i in {1..1000}; do echo $i; virsh create avocado-vt-vm1.xml; virsh destroy avocado-vt-vm1; done
1
Domain 'avocado-vt-vm1' created from avocado-vt-vm1.xml

Domain 'avocado-vt-vm1' destroyed
....

999
Domain 'avocado-vt-vm1' created from avocado-vt-vm1.xml

Domain 'avocado-vt-vm1' destroyed

1000
Domain 'avocado-vt-vm1' created from avocado-vt-vm1.xml

Domain 'avocado-vt-vm1' destroyed

(No error reported)

Comment 11 errata-xmlrpc 2022-03-21 08:01:14 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 (virt:av and virt-devel:av bug fix 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:0972