Skip to content

Commit 5df85a4

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
vm instance creation test7
1 parent 5227bd0 commit 5df85a4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,11 @@ private String createManagedNfsVolume(DataStore dataStore, DataObject dataObject
231231
volume.setPoolId(dataStore.getId());
232232
volume.setPath(volumeUuid); // Filename for qcow2 file
233233

234-
// CRITICAL: Store junction path in _iScsiName field
235-
// CloudStack will use this in AttachCommand as DiskTO.MOUNT_POINT
236-
// ManagedNfsStorageAdaptor will mount: nfs://hostAddress/junctionPath to /mnt/volumeUuid
237-
volume.set_iScsiName(junctionPath);
234+
// CRITICAL: For ManagedNFS, _iScsiName must be the volume UUID, NOT the junction path
235+
// CloudStack uses _iScsiName as MANAGED_STORE_TARGET -> volPath -> libvirt pool name
236+
// Libvirt pool names cannot contain '/', so we use the UUID
237+
// The junction path comes from storage_pool_details.mountpoint (set in getStoreTO)
238+
volume.set_iScsiName(volumeUuid);
238239

239240
volumeDao.update(volume.getId(), volume);
240241

0 commit comments

Comments
 (0)