[Bug 495394] Re: autostart almost always fails on boot time host
Serge Hallyn
495394 at bugs.launchpad.net
Mon Jul 18 22:16:36 UTC 2011
@Franck78,
Thanks for the info.
Yes, slow storage is not addressed by this and also needs to be fixed.
For that one, I want to discuss with upstream, as we'll probably want to
use a generic tool to enumerate all the storage needed by autostart
domains. Considering the many complicated possibilities, it seems a
daunting task.
I suppose a simple, non-intelligent way to go about it would be to grab
all 'source file=' and 'source dev=' lines inside a <disk > .. </disk>
stanza, and, in a /etc/init/libvirt-storage-waiter.conf, which is
start on mounted and not started libvirt-bin
do something like
pre-start script
if [ status libvirt-bin | grep start > /dev/null ]; then
stop
exit 0
fi
for f in `/sbin/enumerate-libvirt-autostart-files`; do
if [ ! -r $f ]; then
stop
exit 0
fi
done
initctl emit -n libvirt-storage-ready
end script
and have /etc/init/libvirt-bin.conf
start on (runlevel [2345] and stopped networking STATUS=ok and libvirt-storage-ready)
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/495394
Title:
autostart almost always fails on boot time host
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/495394/+subscriptions
More information about the Ubuntu-server-bugs
mailing list