Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736609 - app-emulation/libvirt-6.2.0-r2: init script should check the sock after the start (or sleep?)
Summary: app-emulation/libvirt-6.2.0-r2: init script should check the sock after the s...
Status: RESOLVED DUPLICATE of bug 723494
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-10 11:40 UTC by Agostino Sarubbo
Modified: 2020-10-07 15:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***