Skip to content

Commit 6640f4d

Browse files
author
Anthony Xu
committed
CLOUDSTACK-4649:
vm sync tracks the pv driver version for xenserver Anthony
1 parent e33ae74 commit 6640f4d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,6 +2294,14 @@ protected Command compareState(long hostId, VMInstanceVO vm, final AgentVmInfo i
22942294
hostDesc + " due to storage failure",
22952295
"Virtual Machine " + vm.getInstanceName() + " (id: " + vm.getId() + ") running on host [" + vm.getHostId() + "] stopped due to storage failure.");
22962296
}
2297+
// track hypervsion tools version
2298+
if( info.hvtoolsversion != null && !info.hvtoolsversion.isEmpty() ) {
2299+
2300+
UserVmVO userVm = _userVmDao.findById(vm.getId());
2301+
_userVmDao.loadDetails(userVm);
2302+
userVm.setDetail("hypervisortoolsversion", info.hvtoolsversion);
2303+
_userVmDao.saveDetails(userVm);
2304+
}
22972305

22982306
if (trackExternalChange) {
22992307
if (serverState == State.Starting) {

0 commit comments

Comments
 (0)