From 4a35ca7c718a8aa0c9572be83a507d2e323abbaf Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Sun, 28 Feb 2021 18:46:49 +0100 Subject: [PATCH] F #4985: Fix ssh/cpds for qcow2 disk of stopped VM (#891) If disk has RECOVERY_SNAPSHOT_FREQ attr, it's a qcow2 backing chain (2). Convert it to a single qcow2 first. --- src/mad/sh/scripts_common.sh | 6 +++--- src/tm_mad/ssh/cpds | 29 ++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh index 60507c8856..49ca4ef950 100644 --- a/src/mad/sh/scripts_common.sh +++ b/src/mad/sh/scripts_common.sh @@ -478,6 +478,7 @@ ssh_forward() } #This function executes $2 at $1 host and report error $3 but does not exit +#Accept $4 as alternative correct return code function ssh_exec_and_log_no_error { SSH_EXEC_ERR=`$SSH $1 bash -s 2>&1 1>/dev/null <