Skip to content

Commit 5c24780

Browse files
CSTACKEX-306: support for create CS colume from CS snapshot on the lo… (#107)
1. CS volume can be created from CS-volume snapshot only, it will not be supported with VM level snapshot 2. type of CS volume would be data for both Root and Data CS volume-snapshot. 3. Cloudstack will not create bootable root type of volume with this usecase support. User is recommended to to use create template from the root volume and take it forward to create new bootable root volumes. 4. create CS volume would be residing on the same primary storage pool. cloudstack does not provide any option to user to choose the destination storage-pool. <!--- ******************************************************************************* --> <!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. --> <!--- PLEASE PUT AN 'X' in only **ONE** box --> <!--- ******************************************************************************* --> ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) - [ ] Build/CI - [ ] Test (unit or integration test code) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [x] Minor #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [ ] Minor - [ ] Trivial ### Screenshots (if appropriate): Test cases 1. tested by creating volumes for ROOT & DATA volume snapshots 2. tested by creating volumes and attaching them with VM, for ROOT & DATA volume snapshots 3. Tried creating template as well from Root CS volume snapshot and working finw reer below 3rd acreenshot list of snapshot as below <img width="1440" height="281" alt="image" src="https://github.com/user-attachments/assets/ab3f6d5f-d6ea-4203-a748-1c46802250f1" /> And list of created volumes from those snapshots, refer by the names of the snapshots <img width="1433" height="476" alt="image" src="https://github.com/user-attachments/assets/7cf66c07-4c3d-4347-8efb-605bff3fb4e2" /> <img width="1407" height="259" alt="image" src="https://github.com/user-attachments/assets/daf0f6e7-c161-4c7f-b2b3-d8d2b12964cf" />
1 parent bdb6cb0 commit 5c24780

13 files changed

Lines changed: 1413 additions & 113 deletions

File tree

‎engine/storage/volume/src/main/java/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,16 +1007,19 @@ private TemplateInfo createManagedTemplateVolume(TemplateInfo srcTemplateInfo, P
10071007
} else {
10081008
errMesg = callback.result.getResult();
10091009
}
1010-
templateOnPrimary.processEvent(Event.OperationFailed);
10111010
throw new CloudRuntimeException(String.format("Unable to create template %s on primary storage %s: %s", templateOnPrimary.getImage(), destPrimaryDataStore, errMesg));
10121011
}
10131012

10141013
templateOnPrimary.processEvent(Event.OperationSucceeded);
10151014

10161015
} catch (Throwable e) {
10171016
logger.debug("Failed to create template volume on storage", e);
1018-
templateOnPrimary.processEvent(Event.OperationFailed);
1019-
throw new CloudRuntimeException(e.getMessage());
1017+
try {
1018+
templateOnPrimary.processEvent(Event.OperationFailed);
1019+
} catch (Exception stateEx) {
1020+
logger.warn("Unable to mark template {} as failed on primary storage {}: {}", templateOnPrimary.getImage(), destPrimaryDataStore, stateEx.getMessage());
1021+
}
1022+
throw new CloudRuntimeException(e.getMessage(), e);
10201023
} finally {
10211024
_tmpltPoolDao.releaseFromLockTable(templatePoolRefId);
10221025
}

‎plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java‎

Lines changed: 459 additions & 86 deletions
Large diffs are not rendered by default.

‎plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/feign/model/FileCloneRequest.java‎

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ public class FileCloneRequest {
4646
@JsonProperty("overwrite_destination")
4747
private Boolean overwriteDestination;
4848

49+
/**
50+
* Optional FlexVolume snapshot to clone from. When set, ONTAP clones {@code source_path}
51+
* as it existed in that snapshot rather than from the live file/LUN.
52+
*
53+
* <p>Used by create-volume-from-snapshot (same FlexVol). Omitted for live template-cache clones.</p>
54+
*/
55+
@JsonProperty("snapshot")
56+
private SnapshotRef snapshot;
57+
4958
public FileCloneRequest() {
5059
}
5160

@@ -55,6 +64,14 @@ public FileCloneRequest(String flexVolUuid, String flexVolName, String sourcePat
5564
this.destinationPath = destinationPath;
5665
}
5766

67+
public FileCloneRequest(String flexVolUuid, String flexVolName, String sourcePath, String destinationPath,
68+
String snapshotName) {
69+
this(flexVolUuid, flexVolName, sourcePath, destinationPath);
70+
if (snapshotName != null && !snapshotName.isEmpty()) {
71+
this.snapshot = new SnapshotRef(snapshotName);
72+
}
73+
}
74+
5875
public VolumeRef getVolume() {
5976
return volume;
6077
}
@@ -87,6 +104,14 @@ public void setOverwriteDestination(Boolean overwriteDestination) {
87104
this.overwriteDestination = overwriteDestination;
88105
}
89106

107+
public SnapshotRef getSnapshot() {
108+
return snapshot;
109+
}
110+
111+
public void setSnapshot(SnapshotRef snapshot) {
112+
this.snapshot = snapshot;
113+
}
114+
90115
@JsonIgnoreProperties(ignoreUnknown = true)
91116
@JsonInclude(JsonInclude.Include.NON_NULL)
92117
public static class VolumeRef {
@@ -122,10 +147,37 @@ public void setName(String name) {
122147
}
123148
}
124149

150+
/**
151+
* Snapshot identity for {@code POST /api/storage/file/clone} when cloning from a FlexVol snapshot.
152+
*/
153+
@JsonIgnoreProperties(ignoreUnknown = true)
154+
@JsonInclude(JsonInclude.Include.NON_NULL)
155+
public static class SnapshotRef {
156+
157+
@JsonProperty("name")
158+
private String name;
159+
160+
public SnapshotRef() {
161+
}
162+
163+
public SnapshotRef(String name) {
164+
this.name = name;
165+
}
166+
167+
public String getName() {
168+
return name;
169+
}
170+
171+
public void setName(String name) {
172+
this.name = name;
173+
}
174+
}
175+
125176
@Override
126177
public String toString() {
127178
return "FileCloneRequest{volume=" + (volume != null ? volume.getUuid() : null)
128179
+ ", sourcePath=" + sourcePath
129-
+ ", destinationPath=" + destinationPath + "}";
180+
+ ", destinationPath=" + destinationPath
181+
+ ", snapshot=" + (snapshot != null ? snapshot.getName() : null) + "}";
130182
}
131183
}

‎plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/StorageStrategy.java‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
import feign.FeignException;
6666

6767
import org.apache.cloudstack.engine.subsystem.api.storage.TemplateInfo;
68-
6968
/**
7069
* Storage Strategy represents the communication path for all the ONTAP storage options
7170
*
@@ -823,6 +822,14 @@ abstract public CloudStackVolume createTemplateCache(StoragePoolVO storagePool,
823822
* <p>ONTAP requires the source and the destination to live in the same FlexVolume, which
824823
* holds because a CloudStack primary storage pool maps one-to-one onto a FlexVolume.</p>
825824
*
825+
* <p>The source may be an active object or one inside a FlexVolume snapshot:</p>
826+
* <ul>
827+
* <li><b>SAN</b> — {@code lun.clone.source.name} set to
828+
* {@code /vol/&lt;fv&gt;/.snapshot/&lt;snap&gt;/&lt;lun&gt;}</li>
829+
* <li><b>NAS</b> — {@link CloudStackVolume#getSnapshotName()} set; it is sent as
830+
* {@code snapshot.name} on {@code POST /api/storage/file/clone}</li>
831+
* </ul>
832+
*
826833
* @param cloudstackVolume describes the clone to create; the source is carried in the
827834
* protocol-specific clone reference (for SAN, {@code lun.clone.source})
828835
* @return the created CloudStackVolume, populated with the backend identity of the clone

‎plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/UnifiedNASStrategy.java‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ public void deleteCloudStackVolume(CloudStackVolume cloudstackVolume) {
140140
* Clones a file inside the FlexVolume using ONTAP's file clone API.
141141
*
142142
* <p>The source is taken from {@code file.path} and the destination from
143-
* {@code destinationPath}, both relative to the root of the FlexVolume backing the pool.</p>
143+
* {@code destinationPath}, both relative to the root of the FlexVolume backing the pool.
144+
* When {@code snapshotName} is set, the source is read from that FlexVolume snapshot.</p>
144145
*/
145146
@Override
146147
public CloudStackVolume cloneCloudStackVolume(CloudStackVolume cloudstackVolume) {
@@ -157,14 +158,16 @@ public CloudStackVolume cloneCloudStackVolume(CloudStackVolume cloudstackVolume)
157158
String flexVolUuid = details.get(OntapStorageConstants.VOLUME_UUID);
158159
String flexVolName = details.get(OntapStorageConstants.VOLUME_NAME);
159160
if (flexVolUuid == null || flexVolUuid.isEmpty()) {
160-
throw new CloudRuntimeException("Failed to clone file, FlexVolume uuid is missing from pool details");
161+
throw new CloudRuntimeException("Failed to clone file, FlexVolume uuid is missing from pool poolDetails");
161162
}
162163
String sourcePath = cloudstackVolume.getFile().getPath();
163164
String destinationPath = cloudstackVolume.getDestinationPath();
165+
String snapshotName = cloudstackVolume.getSnapshotName();
164166

165-
logger.info("cloneCloudStackVolume: Cloning file [{}] to [{}] in FlexVol [{}]", sourcePath, destinationPath, flexVolName);
167+
logger.info("cloneCloudStackVolume: Cloning file [{}] to [{}] in FlexVol [{}] from snapshot [{}]",
168+
sourcePath, destinationPath, flexVolName, snapshotName);
166169
try {
167-
FileCloneRequest request = new FileCloneRequest(flexVolUuid, flexVolName, sourcePath, destinationPath);
170+
FileCloneRequest request = new FileCloneRequest(flexVolUuid, flexVolName, sourcePath, destinationPath, snapshotName);
168171
JobResponse jobResponse = nasFeignClient.cloneFile(getAuthHeader(), request);
169172
pollJobIfPresent(jobResponse, "clone file [" + sourcePath + "] to [" + destinationPath + "]");
170173

@@ -177,6 +180,7 @@ public CloudStackVolume cloneCloudStackVolume(CloudStackVolume cloudstackVolume)
177180
clonedCloudStackVolume.setFile(clonedFile);
178181
clonedCloudStackVolume.setDatastoreId(cloudstackVolume.getDatastoreId());
179182
clonedCloudStackVolume.setVolumeInfo(cloudstackVolume.getVolumeInfo());
183+
clonedCloudStackVolume.setSnapshotName(snapshotName);
180184
return clonedCloudStackVolume;
181185
} catch (FeignException e) {
182186
logger.error("FeignException occurred while cloning file [{}], Status: {}, Exception: {}",
@@ -266,7 +270,7 @@ public AccessGroup createAccessGroup(AccessGroup accessGroup) {
266270
logger.info("createAccessGroup: ExportPolicy created: {}, now attaching this policy to storage pool volume", createdPolicy.getName());
267271
// attach export policy to volume of storage pool
268272
assignExportPolicyToVolume(volumeUUID,createdPolicy.getName());
269-
// save the export policy details in storage pool details
273+
// save the export policy poolDetails in storage pool poolDetails
270274
storagePoolDetailsDao.addDetail(accessGroup.getStoragePoolId(), OntapStorageConstants.EXPORT_POLICY_ID, String.valueOf(createdPolicy.getId()), true);
271275
storagePoolDetailsDao.addDetail(accessGroup.getStoragePoolId(), OntapStorageConstants.EXPORT_POLICY_NAME, createdPolicy.getName(), true);
272276
logger.info("Successfully assigned exportPolicy {} to volume {}", policyRequest.getName(), volumeName);
@@ -327,7 +331,7 @@ public AccessGroup updateAccessGroup(AccessGroup accessGroup) {
327331

328332
Map<String, String> details = storagePoolDetailsDao.listDetailsKeyPairs(accessGroup.getStoragePoolId());
329333
if (details == null || details.isEmpty()) {
330-
throw new CloudRuntimeException("No storage pool details found for storagePoolId: " + accessGroup.getStoragePoolId());
334+
throw new CloudRuntimeException("No storage pool poolDetails found for storagePoolId: " + accessGroup.getStoragePoolId());
331335
}
332336
String exportPolicyId = details.get(OntapStorageConstants.EXPORT_POLICY_ID);
333337
if (exportPolicyId == null || exportPolicyId.isEmpty()) {

‎plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/UnifiedSANStrategy.java‎

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ public CloudStackVolume createTemplateCache(StoragePoolVO storagePool, TemplateI
110110
Map<String, String> details, long sizeInBytes) {
111111
if (sizeInBytes <= 0) {
112112
throw new CloudRuntimeException("Unknown virtual size for template [" + templateInfo.getId()
113-
+ "]; cannot size the template LUN on pool [" + storagePool.getId() + "]");
113+
+ "]; cannot size the template LUN on pool [" + storagePool.getId() + "]. The template size in vm_template"
114+
+ " is unset; verify the template was registered/seeded with its virtual size (virtualsize in"
115+
+ " template.properties on secondary storage).");
114116
}
115117

116118
CloudStackVolume request = buildTemplateLunRequest(storagePool, details, templateInfo.getId(), sizeInBytes);
@@ -260,7 +262,6 @@ public CloudStackVolume cloneCloudStackVolume(CloudStackVolume cloudstackVolume)
260262
}
261263
}
262264

263-
264265
/**
265266
* Ensures ONTAP returned a usable LUN identity from create/clone. Callers in the datastore
266267
* driver rely on non-null name and uuid, so reject incomplete records at the Feign boundary.
@@ -340,10 +341,10 @@ public CloudStackVolume getCloudStackVolume(Map<String, String> values) {
340341
return null;
341342
}
342343
logger.error("FeignException occurred while fetching Lun, Status: {}, Exception: {}", e.status(), e.getMessage());
343-
throw new CloudRuntimeException("Failed to fetch Lun details: " + e.getMessage());
344+
throw new CloudRuntimeException("Failed to fetch Lun poolDetails: " + e.getMessage());
344345
} catch (Exception e) {
345346
logger.error("Exception occurred while fetching Lun, Exception: {}", e.getMessage());
346-
throw new CloudRuntimeException("Failed to fetch Lun details: " + e.getMessage());
347+
throw new CloudRuntimeException("Failed to fetch Lun poolDetails: " + e.getMessage());
347348
}
348349
}
349350

@@ -354,9 +355,9 @@ public AccessGroup createAccessGroup(AccessGroup accessGroup) {
354355
logger.error("createAccessGroup: Igroup creation failed. Invalid request: {}", accessGroup);
355356
throw new CloudRuntimeException("Failed to create Igroup, invalid request");
356357
}
357-
// Get StoragePool details
358+
// Get StoragePool poolDetails
358359
if (accessGroup.getStoragePoolId() == null) {
359-
throw new CloudRuntimeException("Failed to create Igroup, invalid datastore details in the request");
360+
throw new CloudRuntimeException("Failed to create Igroup, invalid datastore poolDetails in the request");
360361
}
361362
if (accessGroup.getHostsToConnect() == null || accessGroup.getHostsToConnect().isEmpty()) {
362363
throw new CloudRuntimeException("Failed to create Igroup, no hosts to connect provided in the request");
@@ -365,7 +366,7 @@ public AccessGroup createAccessGroup(AccessGroup accessGroup) {
365366
String igroupName = null;
366367
try {
367368
Map<String, String> dataStoreDetails = storagePoolDetailsDao.listDetailsKeyPairs(accessGroup.getStoragePoolId());
368-
logger.trace("createAccessGroup: Successfully fetched datastore details.");
369+
logger.trace("createAccessGroup: Successfully fetched datastore poolDetails.");
369370

370371
// Generate Igroup request
371372
Igroup igroupRequest = new Igroup();
@@ -441,9 +442,9 @@ public void deleteAccessGroup(AccessGroup accessGroup) {
441442
logger.error("deleteAccessGroup: Igroup deletion failed. Invalid request: {}", accessGroup);
442443
throw new CloudRuntimeException("Failed to delete Igroup, invalid request");
443444
}
444-
// Get StoragePool details
445+
// Get StoragePool poolDetails
445446
if (accessGroup.getStoragePoolId() == null) {
446-
throw new CloudRuntimeException("Failed to delete Igroup, invalid datastore details in the request");
447+
throw new CloudRuntimeException("Failed to delete Igroup, invalid datastore poolDetails in the request");
447448
}
448449
try {
449450
String authHeader = OntapStorageUtils.generateAuthHeader(storage.getUsername(), storage.getPassword());
@@ -550,10 +551,10 @@ public AccessGroup getAccessGroup(Map<String, String> values) {
550551
return null;
551552
}
552553
logger.error("FeignException occurred while fetching Igroup, Status: {}, Exception: {}", e.status(), e.getMessage());
553-
throw new CloudRuntimeException("Failed to fetch Igroup details: " + e.getMessage());
554+
throw new CloudRuntimeException("Failed to fetch Igroup poolDetails: " + e.getMessage());
554555
} catch (Exception e) {
555556
logger.error("Exception occurred while fetching Igroup, Exception: {}", e.getMessage());
556-
throw new CloudRuntimeException("Failed to fetch Igroup details: " + e.getMessage());
557+
throw new CloudRuntimeException("Failed to fetch Igroup poolDetails: " + e.getMessage());
557558
}
558559
}
559560

@@ -599,7 +600,7 @@ public String enableLogicalAccess(Map<String, String> values) {
599600
throw feignEx;
600601
}
601602
}
602-
// Get the LunMap details
603+
// Get the LunMap poolDetails
603604
OntapResponse<LunMap> lunMapResponse = null;
604605
try {
605606
lunMapResponse = sanFeignClient.getLunMapResponse(authHeader,
@@ -614,12 +615,12 @@ public String enableLogicalAccess(Map<String, String> values) {
614615
lunNumber = lunMapResponse.getRecords().get(0).getLogicalUnitNumber().toString();
615616

616617
} else {
617-
logger.error("enableLogicalAccess: Failed to fetch LunMap details for Lun: {} and igroup: {}. LunMap response is null or empty.", lunName, igroupName);
618-
throw new CloudRuntimeException("Failed to fetch LunMap details for Lun: " + lunName + " and igroup: " + igroupName);
618+
logger.error("enableLogicalAccess: Failed to fetch LunMap poolDetails for Lun: {} and igroup: {}. LunMap response is null or empty.", lunName, igroupName);
619+
throw new CloudRuntimeException("Failed to fetch LunMap poolDetails for Lun: " + lunName + " and igroup: " + igroupName);
619620
}
620621
} catch (Exception e) {
621-
logger.error("enableLogicalAccess: Failed to fetch LunMap details for Lun: {} and igroup: {}, Exception: {}", lunName, igroupName, e);
622-
throw new CloudRuntimeException("Failed to fetch LunMap details for Lun: " + lunName + " and igroup: " + igroupName);
622+
logger.error("enableLogicalAccess: Failed to fetch LunMap poolDetails for Lun: {} and igroup: {}, Exception: {}", lunName, igroupName, e);
623+
throw new CloudRuntimeException("Failed to fetch LunMap poolDetails for Lun: " + lunName + " and igroup: " + igroupName);
623624
}
624625
logger.trace("enableLogicalAccess: LunMap created successfully, LunMap: {}", lunMapResponse.getRecords().get(0));
625626
} catch (Exception e) {

‎plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/model/CloudStackVolume.java‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ public class CloudStackVolume {
5151
*/
5252
private String destinationPath;
5353

54+
/**
55+
* ONTAP FlexVolume snapshot name when cloning a new file/LUN from a snapshot
56+
* (create-volume-from-snapshot). Null for live clones (e.g. template cache).
57+
*/
58+
private String snapshotName;
59+
5460
private DataObject volumeInfo; // This is needed as we need DataObject to be passed to agent to create volume
5561

5662
public FileInfo getFile() {
@@ -101,4 +107,12 @@ public void setDestinationPath(String destinationPath) {
101107
this.destinationPath = destinationPath;
102108
}
103109

110+
public String getSnapshotName() {
111+
return snapshotName;
112+
}
113+
114+
public void setSnapshotName(String snapshotName) {
115+
this.snapshotName = snapshotName;
116+
}
117+
104118
}

‎plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/utils/OntapStorageConstants.java‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ public class OntapStorageConstants {
9494

9595
public static final String VOLUME_PATH_PREFIX = "/vol/";
9696

97+
/**
98+
* Path segment inserted after the FlexVol name when identifying a LUN inside a FlexVol snapshot
99+
* for {@code POST /api/storage/luns} clone ({@code /vol/&lt;fv&gt;/.snapshot/&lt;snap&gt;/&lt;lun&gt;}).
100+
*/
101+
public static final String SNAPSHOT_PATH_SEGMENT = "/.snapshot/";
102+
97103
public static final String ONTAP_NAME_REGEX = "^[a-zA-Z][a-zA-Z0-9_]*$";
98104
public static final String KVM = "KVM";
99105

@@ -115,6 +121,13 @@ public class OntapStorageConstants {
115121
public static final String VOLUME_PATH = "volume_path";
116122
public static final String PRIMARY_POOL_ID = "primary_pool_id";
117123
public static final String ONTAP_SNAP_SIZE = "ontap_snap_size";
124+
/**
125+
* Optional {@code snapshot_details} keys: min/max IOPS from the source volume at take-snapshot
126+
* time. Persisted only when the volume has configured values; applied to volumes created from
127+
* the snapshot in a later change (see TODO on create-from-snapshot).
128+
*/
129+
public static final String MIN_IOPS = "min_iops";
130+
public static final String MAX_IOPS = "max_iops";
118131
public static final String FILE_PATH = "file_path";
119132
public static final int MAX_SNAPSHOT_NAME_LENGTH = 255;
120133
public static final String ONTAP_TEMP_CG_PREFIX = "cs-temp-cg-";
@@ -148,6 +161,26 @@ public class OntapStorageConstants {
148161
*/
149162
public static final String CLONE_OF_TEMPLATE = "cloneOfTemplate";
150163

164+
/**
165+
* Key of the {@code volume_details} row that {@code StorageSystemDataMotionStrategy} writes
166+
* immediately before {@code createAsync} when a volume is to be created from a CloudStack
167+
* snapshot already present on this pool. The value is the CloudStack snapshot id. The literal
168+
* must stay in sync with the string used by the orchestrator.
169+
*/
170+
public static final String CLONE_OF_SNAPSHOT = "cloneOfSnapshot";
171+
172+
/**
173+
* Driver capability read by {@code StorageSystemDataMotionStrategy} when copying a snapshot to
174+
* secondary storage. The literal must stay in sync with the string used by the orchestrator.
175+
*/
176+
public static final String CAN_DIRECT_ATTACH_SNAPSHOT = "CAN_DIRECT_ATTACH_SNAPSHOT";
177+
178+
/**
179+
* Name prefix of the temporary volume a snapshot is cloned into for createTemplate(snapshotid),
180+
* suffixed with the CloudStack snapshot id and volume id.
181+
*/
182+
public static final String TEMP_SNAPSHOT_COPY_NAME_PREFIX = "cs_tmp_snap_";
183+
151184
// ASUP (AutoSupport) / EMS telemetry
152185
public static final String ADVANCED_CONFIG_KEY_CATEGORY = "Advanced";
153186
public static final String ASUP_CATEGORY = "provisioning";

0 commit comments

Comments
 (0)