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/11/13 07:38:35 UTC

[jira] [Commented] (CLOUDSTACK-7791) [Snapshots] State transition in snapshot objects when snapshot is taken on Root/Data disk is not proper

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-7791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14209362#comment-14209362 ] 

Likitha Shetty commented on CLOUDSTACK-7791:
--------------------------------------------

This is by design.

In CCP, volume snapshot involves 2 steps -
1. Creation of volume snapshot on primary storage.
2. Backup of the snapshot into secondary storage. 

As mentioned in the bug description snapshot operation should go through the following states -
Creating->CreatedOnPrimary->BackingUp->BackedUp
The first two states belong to step 1 of creation on primary and and the last two steps belong to step 2 of backup to secondary.

But since in case of vSphere since Volume is not a first class object, CCP cannot snapshot the volume on primary (we instead snapshot the entire VM and export it to secondary storage as part of backup). So the first step is simply a dummy step in case of VMware and the entire snapshot operation happens as part of step 2 because of which the first two snapshot states don't exist in case of VMware volume snapshot.

> [Snapshots] State transition in snapshot objects when snapshot is taken on Root/Data disk is not proper
> -------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7791
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7791
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Snapshot, VMware
>    Affects Versions: 4.5.0
>         Environment: Latest build from 4.5
>            Reporter: Sanjeev N
>            Assignee: Likitha Shetty
>              Labels: snapshots
>             Fix For: 4.5.0
>
>         Attachments: management-server.rar
>
>
> [Snapshots] State transition in snapshot objects when snapshot is taken on Root/Data disk is not proper
> Steps to Reproduce:
> ================
> 1.Bring up CS with latest build using vmware cluster
> 2.Deploy one guest vm using default cent os template
> 3.Create a snapshot on the root disk of the vm
> Expected Behavior:
> ==============
> Snapshot operation should go through the following states:
> Creating->CreatedOnPrimary->BackingUp->BackedUp
> Actual Result:
> ===========
> We only see two states: Backingup->Backedup
> As and when the snapshot is triggered it goes to backing up state and remains in that state until the snapshot is copied to secondary storage and then goes to Backedup state.
> This is easy to reproduce.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)