mirror of https://github.com/apache/cloudstack.git
Merge pull request #2012 from sudhansu7/CLOUDSTACK-9842
CLOUDSTACK-9842: Unable to map root volume usage to VM
This commit is contained in:
commit
571d125bcb
|
|
@ -645,7 +645,6 @@ public class VolumeDaoImpl extends GenericDaoBase<VolumeVO, Long> implements Vol
|
|||
String uuid = srcVol.getUuid();
|
||||
Long instanceId = srcVol.getInstanceId();
|
||||
srcVol.setUuid(null);
|
||||
srcVol.setInstanceId(null);
|
||||
destVol.setUuid(uuid);
|
||||
destVol.setInstanceId(instanceId);
|
||||
update(srcVolId, srcVol);
|
||||
|
|
|
|||
|
|
@ -1769,6 +1769,7 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
|
|||
sb.and("id", sb.entity().getId(), SearchCriteria.Op.EQ);
|
||||
sb.and("idIN", sb.entity().getId(), SearchCriteria.Op.IN);
|
||||
sb.and("volumeType", sb.entity().getVolumeType(), SearchCriteria.Op.LIKE);
|
||||
sb.and("uuid", sb.entity().getUuid(), SearchCriteria.Op.NNULL);
|
||||
sb.and("instanceId", sb.entity().getVmId(), SearchCriteria.Op.EQ);
|
||||
sb.and("dataCenterId", sb.entity().getDataCenterId(), SearchCriteria.Op.EQ);
|
||||
sb.and("podId", sb.entity().getPodId(), SearchCriteria.Op.EQ);
|
||||
|
|
|
|||
Loading…
Reference in New Issue