[ https://issues.apache.org/jira/browse/CLOUDSTACK-5172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838952#comment-13838952 ]
ASF subversion and git services commented on CLOUDSTACK-5172: ------------------------------------------------------------- Commit 2794a9398f4dd224ce34e49a2318d1b92b234915 in branch refs/heads/4.3 from [~likithas] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=2794a93 ] CLOUDSTACK-5172. Detaching VM volume is not allowed if there are VM snapshots because any changes to the disk layout will break the semantics of VM-based snapshot > Removing disks from VMWare VMs with snapshots causes problems > ------------------------------------------------------------- > > Key: CLOUDSTACK-5172 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5172 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Snapshot, VMware > Affects Versions: 4.3.0 > Reporter: Chris Suich > Assignee: Likitha Shetty > Priority: Critical > Labels: snapshot, snapshots, vmware > Fix For: 4.3.0 > > > We currently don’t allow volumes to be attached to VMs with snapshots and > allowing volumes to be detached causes quite a bug: > 1) Attach a data disk to a VM > 2) Snapshot the VM > 3) Detach the data disk > 4) Attempt to restore the VM from the snapshot — FAILS since the data disk is > no longer there, although it is expected to be > 5) Attempt to re-attach the volume to the VM — FAILS since you cannot attach > volumes to VMs with snapshots > 6) Attempt to delete the VM snapshot — FAILS since the data disk is no longer > there, although it is expected to be > I have verified the above steps on VMWare, however Xen does not appear to > fail on step 4, presumably because VMWare handles snapshots quite differently > than Xen. > After discussion on the dev list, it sounds like the proper course of action > would be to prohibit disks from being detached from VMWare VMs with snapshots. -- This message was sent by Atlassian JIRA (v6.1#6144)