Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 736609

Summary: app-emulation/libvirt-6.2.0-r2: init script should check the sock after the start (or sleep?)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Matthias Maier <tamiko>
Status: RESOLVED DUPLICATE    
Severity: normal CC: virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2020-08-10 11:40:38 UTC
Immediately after libvirtd restart I'm unable to start machines, it breaks scripts.

 ~ # /etc/init.d/libvirtd restart && virsh start test
 * Stopping libvirtd ...                                                                                                                                              [ ok ]
 * Starting libvirtd ...                                                                                                                                              [ ok ]
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
Comment 1 Georgy Yakovlev archtester gentoo-dev 2020-10-03 01:04:15 UTC
ewaitfile in the initscript start_post() usually helps to wait for socket/pidfile availability, it makes initscript return after file is available and has a timeout option.

you can define it in confd file as a workaround, but ideally it should be a part if initscript itself of course.
Comment 2 Matthias Maier gentoo-dev 2020-10-07 15:45:13 UTC

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