Skip to content

Commit b5d3a93

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
vm instance creation test16
1 parent 592c009 commit b5d3a93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ private String createCloudStackVolumeForTypeVolume(DataStore dataStore, DataObje
141141
String volumeUuid = ((VolumeInfo) dataObject).getUuid();
142142
// Pool type should reflect ManagedNFS now (lifecycle set it). Still set explicitly for safety.
143143
volume.setPoolType(Storage.StoragePoolType.ManagedNFS);
144+
// Provide mount point via iScsiName field so VolumeOrchestrator / VolumeApiServiceImpl populate DiskTO.MOUNT_POINT
145+
if (storagePool.getPath() != null) {
146+
volume.set_iScsiName(storagePool.getPath());
147+
}
144148
// For ManagedNfsStorageAdaptor the volume name (uuid) is used and qcow2 is created without extension necessity.
145149
volume.setPath(volumeUuid); // no extension; adaptor creates qcow2 libvirt volume with this name
146150
volume.setFormat(Storage.ImageFormat.QCOW2);

0 commit comments

Comments
 (0)