Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-6425

ACS 4.3.0 issue with VM Templates + XenServer 6.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Template, XenServer
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None
    • Apache CloudStack 4.3.0 + XenServer 6.2

    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)

      { Map<String, String> resourceDetails = new HashMap<String, String>(); resourceDetails.put(hypervisorToolsVersion.getName(), hypervisorToolsVersion.getValue()); userVmResponse.setDetails(resourceDetails); }

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

      { Map<String, String> resourceDetails = new HashMap<String, String>(); resourceDetails.put(userVm.getDetailName(), userVm.getDetailValue()); userVmResponse.setDetails(resourceDetails); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            wilder.rodrigues Wilder Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: