[Bug 350936] Re: Should shut down domains on system shutdown
Martin Rusko
350936 at bugs.launchpad.net
Tue Dec 28 13:53:38 UTC 2010
On John Morrissey's libvirt-bin.conf file ... there is construct like:
delay=$SHUTDOWN_TIMEOUT
while [ $delay -gt 0 ]; do
for uri in $URIS; do
if ! run_virsh -c "$uri" list | awk '$3 == "running" {exit 1}'; then
# VMs at this URI are still running. Wait, then
# start at the beginning looking for running VMs.
sleep 1
delay=$(($delay - 1))
continue 2
fi
done
done
... what if no guest is running anymore? We will never enter if...then
condition and thus never decrement $delay variable anymore. It looks
like we stay in that while...done loop forever.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to kvm in ubuntu.
https://bugs.launchpad.net/bugs/350936
Title:
Should shut down domains on system shutdown
More information about the Ubuntu-server-bugs
mailing list