Status: New
Owner: ----
New issue 126 by miguel.filho: KVM instances are killed with SIGTERM when
node is shutdown
http://code.google.com/p/ganeti/issues/detail?id=126
When a node is running KVM instances and that node is rebooted or shutdown,
the gnt-noded daemon is finished and leaves the KVM instances running. So
far so good.
Latter on in the shutdown process, all remaining processes receive SIGTERM
as usual, meaning that the KVM instances are all terminated, without
running a proper shutdown procedure inside the guests.
When using Xen, I believe that the xendomains script will take care of
gracefully powering down the domUs, but for KVM there is nothing like that
by default.
I hacked the attached script to send the "system_powerdown" command to all
running instances, and added it to my system to run after ganeti when
shutting down the node.
Ideas:
1) Update the ganeti init scripts to gracefully send "system_powerdown" to
the monitor socket of all local instances when the runlevel is 6.
2) Add some sort of event configuration to nodes and instances. If the node
of this instance is being shutdown, failover or migrate the instance to the
secondary node if there is one.
Attachments:
ganeti-kvm-poweroff 1.1 KB