nvazquez opened a new issue, #11090:
URL: https://github.com/apache/cloudstack/issues/11090

   ### problem
   
   Cannot list VMs to migrate from VMware vCenter to KVM via CloudStack if the 
vCenter has one or more standalone hosts (hosts not belonging to any cluster).
   
   Example failing vCenter setup (host 10.0.33.26 does not belong to any 
cluster):
   <img width="309" alt="Image" 
src="https://github.com/user-attachments/assets/8b12d0a7-6c35-464c-a9fc-99a905b505e7";
 />
   
   When trying to list VMs for migration for the vCenter on the datacenter 
Trillian:
   ````
   Error retrieving VMs from VMware VC: Error retrieving VMs from the VMware VC 
10.0.35.109 datacenter Trillian: Standalone host is not supported
   ````
   
   ### versions
   
   4.19.3.0, 4.20.1.0
   
   ### The steps to reproduce the bug
   
   1. Use standalone hosts on the datacenter from which to list the VMs on 
VMware (see image at the Problem description)
   2. On CloudStack navigate to Tools -> Import/Export Instances -> Migrate 
existing instances to KVM
   3. Provide the vCenter credentails
   
   ````
   2025-06-25 17:31:26,877 DEBUG [c.c.h.v.m.VmwareManagerImpl] 
(qtp146370526-19:ctx-7213ab15 ctx-c24e22a0) (logid:9a3fc2a8) Connecting to the 
VMware vCenter 10.0.35.109
   2025-06-25 17:31:27,082 INFO  [c.c.h.v.u.VmwareContext] 
(qtp146370526-19:ctx-7213ab15 ctx-c24e22a0) (logid:9a3fc2a8) New VmwareContext 
object, current outstanding count: 10
   2025-06-25 17:31:27,107 ERROR [c.c.h.v.m.VmwareManagerImpl] 
(qtp146370526-19:ctx-7213ab15 ctx-c24e22a0) (logid:9a3fc2a8) Error retrieving 
VMs from the VMware VC 10.0.35.109 datacenter Trillian: Standalone h
   ost is not supported
   java.lang.Exception: Standalone host is not supported
           at 
com.cloud.hypervisor.vmware.mo.HostMO.getHyperHostCluster(HostMO.java:285)
           at 
com.cloud.hypervisor.vmware.mo.BaseMO.setUnmanagedInstanceTOHostAndCluster(BaseMO.java:254)
           at 
com.cloud.hypervisor.vmware.mo.BaseMO.createUnmanagedInstanceTOFromThinListingDynamicProperties(BaseMO.java:236)
           at 
com.cloud.hypervisor.vmware.mo.BaseMO.convertVmsObjectContentsToUnmanagedInstances(BaseMO.java:186)
           at 
com.cloud.hypervisor.vmware.mo.DatacenterMO.getAllVmsOnDatacenter(DatacenterMO.java:165)
           at 
com.cloud.hypervisor.vmware.manager.VmwareManagerImpl.listVMsInDatacenter(VmwareManagerImpl.java:1670)
   ````
   
   
   ### What to do about it?
   
   Workaround: Move the host into an existing cluster (or a new cluster) and 
retry
   
   <img width="309" alt="Image" 
src="https://github.com/user-attachments/assets/95e0ada3-696e-4d79-9cd3-ec5bcc656cd7";
 />
   
   After moving the host into the cluster p1-c1, VMs are properly listed on 
CloudStack:
   
   <img width="1322" alt="Image" 
src="https://github.com/user-attachments/assets/8fd38336-5cd8-4e47-b6ec-f12ed0454414";
 />


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