aboutsummaryrefslogtreecommitdiffstats
path: root/virsh-ga
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@libreoffice.org>2016-11-02 19:19:34 +0100
committerGuilhem Moulin <guilhem@libreoffice.org>2016-11-02 19:19:34 +0100
commit065f3f4c3415e56ff73f913dd0bf2cc24258f9e0 (patch)
tree06864cc0cf0e87208704b19c76090fb0e4ea8cf4 /virsh-ga
parent4b6c9f2c86a8a8fbbfc946d1433db864371ca3b4 (diff)
QEMU Guest Agent bug mititigation for libvirt 1.2.9.
Diffstat (limited to 'virsh-ga')
-rwxr-xr-xvirsh-ga4
1 files changed, 3 insertions, 1 deletions
diff --git a/virsh-ga b/virsh-ga
index 2b26c82..6724298 100755
--- a/virsh-ga
+++ b/virsh-ga
@@ -52,7 +52,9 @@ sub ga_send(@) {
my $h = JSON->new->utf8->allow_nonref->decode($str{$out});
return $h->{return};
}
- elsif ($str{$err} eq "error: Guest agent is not responding: QEMU guest agent is not connected\n") {
+ elsif ($str{$err} eq "error: Guest agent is not responding: QEMU guest agent is not connected\n"
+ or $str{$err} eq "error: Guest agent is not responding: Guest agent not available for now\n"
+ or $str{$err} =~ /\Aerror: internal error: Guest agent returned ID: \d+ instead of \d+\n\z/) {
exit 128;
} else {
die $str{$err};