slavkap commented on issue #5512:
URL: https://github.com/apache/cloudstack/issues/5512#issuecomment-958710711


   @weizhouapache, it will be great if this limitation is removed. There is the 
same case when we migrate a volume to a different storage pool, which I guess 
according to the comments is needed only for VMware
   
   >         // OfflineVmwareMigration: check storage tags on disk(offering)s 
in comparison to destination storage pool
   >         // OfflineVmwareMigration: if no match return a proper error now
   >         DiskOfferingVO diskOffering = 
_diskOfferingDao.findById(vol.getDiskOfferingId());
   >         if (diskOffering == null) {
   >             throw new CloudRuntimeException("volume '" + vol.getUuid() + 
"', has no diskoffering. Migration target cannot be checked.");
   >         }
   >         if (!doesTargetStorageSupportDiskOffering(destPool, diskOffering)) 
{
   >             throw new CloudRuntimeException(String.format("Migration 
target pool [%s, tags:%s] has no matching tags for volume [%s, uuid:%s, 
tags:%s]", destPool.getName(),
   >                     getStoragePoolTags(destPool), vol.getName(), 
vol.getUuid(), diskOffering.getTags()));
   >         }


-- 
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