You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Likitha Shetty (JIRA)" <ji...@apache.org> on 2013/12/04 15:58:35 UTC

[jira] [Resolved] (CLOUDSTACK-5172) Removing disks from VMWare VMs with snapshots causes problems

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-5172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Likitha Shetty resolved CLOUDSTACK-5172.
----------------------------------------

    Resolution: Fixed

Detaching/attaching 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.
refer - [https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Snapshots]
Therefore don't allow volume detach if the associated VM has snapshots


> 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)