piyush5netapp commented on PR #13053:
URL: https://github.com/apache/cloudstack/pull/13053#issuecomment-4886116371

   > > This is what you are suggesting. -----> grantAccess(volumeInfo, 
destHost, primaryDataStore); Map<String, String> details = new HashMap<>(); 
.... -----> String managedStoreTarget = 
ObjectUtils.defaultIfNull(volumeInfo.get_iScsiName(), volumeInfo.getUuid()); 
... primaryDataStore.setDetails(details); try { 
motionSrv.copyAsync(srcTemplateInfo, destTemplateInfo, destHost, caller); ....
   > 
   > Yes, exactly.
   > 
   @winterhazel  I tried this but instance creation failed . This is because 
Netapp ONTAP updates/set iScsiName in grantAccess, so we need to refresh the 
volumeInfo object again to take latest data here. Its currently taking old 
data. Does Moving grantAcess above line 
"ManagedCreateBaseImageContext<CreateCmdResult> context = new 
ManagedCreateBaseImageContext<>(null, volumeInfo, primaryDataStore, 
srcTemplateInfo, future);" will have any side-effect for any vendor ?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to