HomeClusterLabs Projects

Medium: VirtualDomain: destroy domain shortly before timeout expiry

Description

Medium: VirtualDomain: destroy domain shortly before timeout expiry

As lmb pointed out in private email, the VirtualDomain RA is not
as persistent on stop as it should be. This patch employs the
following logic:

  • If force_stop is unset and a stop operation is issued, invoke "virsh shutdown" and loop on monitor for (x-5) seconds, where x is the operation timeout passed received from the CRM. If the domain is still alive by then, kill it with "virsh destroy".
  • If force_stop is set and a stop operation is issued, invoke "virsh destroy" outright.

Details

Provenance
Florian Haas <florian.haas@linbit.com>Authored on Aug 12 2009, 11:46 AM
Parents
rR0e87251491cd: Low: Virtual: rearrange loops so that unnecessary sleeps are avoided
Branches
Unknown
Tags
Unknown

Event Timeline