mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
M #-: Fail in cpds.ssh in undeployed/stopped (#967)
This commit is contained in:
1 parent
75ec892d4e
commit
ea51b65e5c
2 files changed
+17
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user