Github user sureshanaparti commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1813#discussion_r102650370
  
    --- Diff: 
plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
 ---
    @@ -2073,6 +2089,43 @@ protected StartAnswer execute(StartCommand cmd) {
             }
         }
     
    +    private void resizeRootDisk(VirtualMachineMO vmMo, DiskTO rootDiskTO, 
VmwareHypervisorHost hyperHost, VmwareContext context) throws Exception
    +    {
    +        Pair<VirtualDisk, String> vdisk = getVirtualDiskInfo(vmMo, 
rootDiskTO.getPath() + ".vmdk");
    +        assert(vdisk != null);
    +
    +        Long reqSize=((VolumeObjectTO)rootDiskTO.getData()).getSize()/1024;
    +        VirtualDisk disk = vdisk.first();
    +        if(reqSize > disk.getCapacityInKB())
    +        {
    +            VirtualMachineDiskInfo diskInfo = 
getMatchingExistingDisk(vmMo.getDiskInfoBuilder(), rootDiskTO, hyperHost, 
context);
    +            assert (diskInfo != null);
    +            String[] diskChain = diskInfo.getDiskChain();
    +
    +            if(diskChain!=null && diskChain.length>1)
    +            {
    +                s_logger.error("Unsupported Disk chain length "+ 
diskChain.length);
    +                throw new Exception("Unsupported Disk chain length "+ 
diskChain.length);
    +            }
    +            if(diskInfo.getDiskDeviceBusName()==null || 
!diskInfo.getDiskDeviceBusName().toLowerCase().contains("scsi"))
    --- End diff --
    
    startsWith("scsi") ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to