cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Tutkowski <mike.tutkow...@solidfire.com>
Subject Re: Question about volume snapshots
Date Thu, 28 Aug 2014 06:20:41 GMT
For those who are interested in this, it appears you have to write a
SnapshotStrategy implementation and override the canHandle method (this is
the default implementation, which is provided by the
XenserverSnapshotStrategy class):

    @Override

    public StrategyPriority canHandle(Snapshot snapshot, SnapshotOperation
op) {

        if (op == SnapshotOperation.REVERT) {

            return StrategyPriority.CANT_HANDLE;

        }


        return StrategyPriority.DEFAULT;

    }

That being the case, the revert button won't show up under "standard"
operation.


On Thu, Aug 28, 2014 at 12:12 AM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Actually, it looks like you can revert a volume to a snapshot, if the
> underlying storage supports such an operation.
>
> I hadn't been explicitly setting this "revertable" field and it appears to
> default to "false" and the GUI then doesn't show the button.
>
>
> On Wed, Aug 27, 2014 at 11:55 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> Hi,
>>
>> Under the Storage tab in the GUI, we can take a snapshot of a volume
>> (assuming the underlying storage plug-in supports that operation).
>>
>> When I examine the options of the created snapshots, I see the snapshot
>> can be deleted (as you'd expect), but I don't see a "revert volume to
>> snapshot" option.
>>
>> Can someone tell me what the history is behind that? Is it intentional
>> that the only way a volume snapshot (really a backup) can be utilized is by
>> creating a template or a volume from it?
>>
>> Thanks!
>>
>> --
>> *Mike Tutkowski*
>>  *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud
>> <http://solidfire.com/solution/overview/?video=play>*™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message