M #-: Fail in cpds.ssh in undeployed/stopped (#967)

This commit is contained in:
Jan Orel authored and GitHub committed 2021-03-12 16:59:15 +01:00
1 parent 75ec892d4e
commit ea51b65e5c
2 files changed
+17

No files matched your search

+6
View File
@@ -97,6 +97,12 @@ if [ "${LCM_STATE}" = '26' -a "${VM_MAD}" != "kvm" ]; then
exit 1
fi
# Undeployed, or stopped VM state
if [ "$LCM_STATE" = '67' ] || [ "$LCM_STATE" = '68' ]; then
error_message "cpds.ssh: Operation not supported on undeployed/stopped"
exit 1
fi
if [ "$SNAP_ID" != "-1" ]; then
error_message "cpds.ssh: Operation not supported on disk type ${TYPE} with snapshots"
exit 1
+11
View File
@@ -85,6 +85,17 @@ ORIGINAL_SIZE="${XPATH_ELEMENTS[j++]}"
# Copy Image back to the datastore
#-------------------------------------------------------------------------------
if [ "${LCM_STATE}" = '26' -a "${VM_MAD}" != "kvm" ]; then
error_message "mvds.ssh: Live operation not supported on ${VM_MAD}"
exit 1
fi
# Undeployed, or stopped VM state
if [ "$LCM_STATE" = '67' ] || [ "$LCM_STATE" = '68' ]; then
error_message "mvds.ssh: Operation not supported on undeployed/stopped"
exit 1
fi
QEMU_OPTS=''
if [ -n "$CEPH_USER" ]; then