Details
Description
ACS issue with VM Templates + XenServer 6.2 + Feature that says: Xen Tools 6.1+
https://issues.apache.org/jira/browse/CLOUDSTACK-4649
Tables to check: user_vm_details; user_vm_view
Alena fixed in 4.2.1, but Sanjay Tripathi broke it in 4.3.0
UserVmJoinDaoImpl.java
// set resource details map
// only hypervisortoolsversion can be returned to the end user
UserVmDetailVO hypervisorToolsVersion = _userVmDetailsDao.findDetail(userVm.getId(), VmDetailConstants.HYPERVISOR_TOOLS_VERSION);
if (hypervisorToolsVersion != null)
It's broken in a way that all templates/instances expect that the xentools are installed and the correct drivers are in place. When migrating from 4.2.1 to 4.3.0, the change in the snippet above will check if the VM exists in the user_vm_details, which is actually empty for the given ID.
The previous code was:
// set resource details map
// only hypervisortoolsversion can be returned to the end user }
if (userVm.getDetailName() != null && userVm.getDetailName().equalsIgnoreCase(VmDetailConstants.HYPERVISOR_TOOLS_VERSION))