master
The objective of this API is to enable storage vendor side snapshots of virtual disk when using managed hardware as Primary Storage. When using the Primary storage plugins such as SolidFire vendor, each virtual disks is a LUN on the storage array. Using the storage array snapshot capability benefits for performance and features sets supported by the storage vendor.
StorageSnapshot does not fit in the VolumeSnapshot API because it would not perform the same tasks, a Volume Snapshot use the hypervisor capability to create a volume snapshot then extract it and archive it into the secondary storage. The intent of a StorageSnapshot is to perform a snapshot at the hardware vendor level, and keep it there for rollback purposes and disk cloning. StorageSnapshot is more aligned with the VMsnapshot API capability but is intent to be per virtual disk basis.
When using VDI-per-LUN with XenServer 6.5 + SolidFire storage array, all VirtualDisk are unique LUN on the storage array so it leverage snapshot capabilities of the storage vendor for volumes.
One XenServer as hypervisor constraint is that each VDI run on a dedicated SR, as the LUN is presented as a iSCSI-LVM SR dedicated for a single VDI.
The StorageSnapshot API will be reuse by the VolumeSnapshot API when using storage plugin so the VolumeSnapshot would perform following task:
New API | params | Description |
---|---|---|
createStorageSnapshot | id: volume ID | Create storage-snapshot of a volume |
revertToStorageSnapshot | volumeID: targeted volume ID id: StorageSnapshot ID | Revert a volume back to the snapshot state. VM might require to be turned off if volume is mounted. |
deleteStorageSnapshot | id: StorageSnapshot ID | Delete a single storage-snapshot |
listStorageSnapshot | volumeID: volume ID storageID: storage array ID (admin)? | List storage-snapshot of a volume |
Are there any entities being created that require usage reporting for billing purposes?
Does this change any existing entities for which usage is being tracked already?
Appendix A:
Appendix B: