]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Introduce 'await' command for waiting until target domain state is reached
authorPeter Krempa <pkrempa@redhat.com>
Thu, 27 Jan 2022 13:12:49 +0000 (14:12 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 12 Jun 2025 08:17:03 +0000 (10:17 +0200)
commit05c9f3752d8bba163f9abaec6bf57a0200209076
tree807ddf84cdbebf7c29d2261912c10fe5e196c5ac
parent71e276ed1da2525264a7fb4cc4df6d6777b2e1ca
virsh: Introduce 'await' command for waiting until target domain state is reached

The new command is meant as syntax sugar for event handling which blocks
virsh until the requested state condition is reached.

The initial implementation adds a condition 'domain-inactive' returning
if the domain is/becomes inactive for whatever reason.

This command is useful for simple scripts e.g. for debugging libvirt
when it allows responding to target state in shell without the need to
fuss too much with polling or writing handlers around 'virsh event'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/manpages/virsh.rst
tools/virsh-domain-event.c