summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJiri Denemark <jdenemar@redhat.com>2022-05-10 15:20:25 +0200
committerJiri Denemark <jdenemar@redhat.com>2022-06-07 17:40:20 +0200
commitaab9d64d4df3c8ef27b5c23f688cd75800e9a9f9 (patch)
tree34445ee5a26fb347dd44d50585c11ab6b6b949b6 /tools
parent8cd5edfdfe7adb5350c3980997174979b1faa0ee (diff)
downloadlibvirt-aab9d64d4df3c8ef27b5c23f688cd75800e9a9f9.tar.gz
Introduce VIR_DOMAIN_RUNNING_POSTCOPY_FAILED
This new "post-copy failed" reason for the running state will be used on the destination host when post-copy migration fails while the domain is already running there. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/virsh-domain-event.c3
-rw-r--r--tools/virsh-domain-monitor.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/virsh-domain-event.c b/tools/virsh-domain-event.c
index 6dbb64a655..2d6db5f881 100644
--- a/tools/virsh-domain-event.c
+++ b/tools/virsh-domain-event.c
@@ -93,7 +93,8 @@ VIR_ENUM_IMPL(virshDomainEventResumed,
N_("Unpaused"),
N_("Migrated"),
N_("Snapshot"),
- N_("Post-copy"));
+ N_("Post-copy"),
+ N_("Post-copy Error"));
VIR_ENUM_DECL(virshDomainEventStopped);
VIR_ENUM_IMPL(virshDomainEventStopped,
diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c
index 246e8a16c0..dc5fe13e49 100644
--- a/tools/virsh-domain-monitor.c
+++ b/tools/virsh-domain-monitor.c
@@ -166,6 +166,7 @@ VIR_ENUM_IMPL(virshDomainRunningReason,
N_("event wakeup"),
N_("crashed"),
N_("post-copy"),
+ N_("post-copy failed"),
);
VIR_ENUM_DECL(virshDomainBlockedReason);