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

Bug 2060945

Summary: libvirt: the unix domain socket remains even after the VM is destroyed
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: Michal Privoznik <mprivozn>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
Status: CLOSED DUPLICATE QA Contact: Lili Zhu <lizhu>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.5CC: drjones, fj-lsoft-kichijo, gveitmic, hshuai, jdenemar, lcapitulino, lizhu, lmen, mgokhool, mkalinin, mkletzan, mmizuma, mzamazal, nilal, sfroemer, tumeya, virt-maint, xuzhang, yidliu, ymankad
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 8.5Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-8.0.0-3.module+el8.6.0+14098+5bee65f4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2045879
: 2063286 (view as bug list) Environment:
Last Closed: 2022-03-16 08:07:45 UTC Type: Bug
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:    
Bug Blocks: 2057048, 2063286    

Comment 10 Lili Zhu 2022-03-11 09:18:51 UTC
Tested this bug with:
libvirt-8.0.0-5.module+el8.6.0+14344+04da0821.x86_64
qemu-kvm-6.2.0-8.module+el8.6.0+14324+050a5215.x86_64
glib2-2.56.4-158.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

Comment 14 Jiri Denemark 2022-03-16 08:07:45 UTC
Since there's technically no RHEL-AV 8.6.0 (it's content is exactly the same
as RHEL 8.6.0), I'm closing this BZ as a duplicate of the RHEL bug 2045879.
This bug was only needed for requesting RHEL-AV 8.5.0.z clone and there's no
use for this BZ now.

Please direct any questions either to the mentioned RHEL 8.6.0 bug or to the
RHEL-AV 8.5.0.z bug 2063286.

*** This bug has been marked as a duplicate of bug 2045879 ***