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 2014/07/25 13:19:38 UTC

[jira] [Resolved] (CLOUDSTACK-6043) VMware detaching volume fails if volume has snapshots

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

Likitha Shetty resolved CLOUDSTACK-6043.
----------------------------------------

    Resolution: Invalid

Chris,

I tried to reproduce the problem in 2 ways -
1. Take a Volume snapshot of a Datadisk and then detach the disk
Success. In this case we anyway delete the disk snapshot from the primary storage once the snapshot is backed up. So there is no change in the disk info after a volume snapshot is taken.

2. Take a VM snapshot and then detach a Datadisk attached to the VM
Expected failure - 'Unable to detach volume, please specify a VM that does not have VM snapshots'. We explicitly don't allow users to attach/attach volumes to VMs that have snapshots associated with them.

Please reopen this bug with the reproduction steps and management server logs if you are still seeing an error.

> VMware detaching volume fails if volume has snapshots
> -----------------------------------------------------
>
>                 Key: CLOUDSTACK-6043
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6043
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: VMware, Volumes
>    Affects Versions: 4.3.0
>            Reporter: Chris Suich
>            Assignee: Likitha Shetty
>              Labels: vmware, volumes
>             Fix For: 4.4.0
>
>
> When detaching VMware volumes, a call is first made to the hypervisor to remove all snapshots for that volume. After this happens, the path for the volume potentially changes, but isn't updated in the ACS DB, which causes problems when the call is made to actually detach the volume.
> For example, if the volume has a single snapshot, then the current path would be something like VOLUME-00001.vmdk which is a delta disk for VOLUME.vmdk. Once the snapshot is deleted, VOLUME-00001.vmdk is coalesced into VOLUME.vmdk, which becomes the active path. However, ACS still believes the correct path is VOLUME-00001.vmdk which causes the detach to fail.



--
This message was sent by Atlassian JIRA
(v6.2#6252)