You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c4080ea
Browse filesBrowse the repository at this point in the historyBrowse files
ONTAP: cache templates on primary storage and clone volumes from them
Enable the managed-storage template cache flow for the ONTAP primary
storage plugin so that VM root volumes are cloned from a template copy
kept on the pool's FlexVolume instead of being copied from secondary
storage for every deployment.
- Advertise CAN_CREATE_VOLUME_FROM_VOLUME from the datastore driver.
- Create the template cache on primary: an iSCSI LUN (identity tracked on
template_spool_ref) or a qcow2 file for NFS, populated by the KVM host.
- Clone new volumes from the cached template: LUN clone for iSCSI and
ONTAP file clone (FileCloneRequest) for NFS, growing the clone when the
disk offering is larger than the template.
- Clean up the cached LUN/file when the template is removed from the pool;
a missing file is treated as already deleted.
- Move protocol-specific create/clone/resize logic into
UnifiedSANStrategy and UnifiedNASStrategy, and add a StorageStrategy
helper to poll an optional async job.
- Add unit tests for the driver and the NAS/SAN strategies.
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java
0 commit comments