Updated Branches: refs/heads/master e33ae7406 -> 6640f4d92
CLOUDSTACK-4649: vm sync tracks the pv driver version for xenserver Anthony Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6640f4d9 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6640f4d9 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6640f4d9 Branch: refs/heads/master Commit: 6640f4d9287cdd1e19c0f32b41ceef56ce122d1f Parents: e33ae74 Author: Anthony Xu <anthony...@citrix.com> Authored: Tue Oct 22 11:20:27 2013 -0700 Committer: Anthony Xu <anthony...@citrix.com> Committed: Tue Oct 22 17:55:35 2013 -0700 ---------------------------------------------------------------------- .../src/com/cloud/vm/VirtualMachineManagerImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6640f4d9/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java ---------------------------------------------------------------------- diff --git a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java index 81b1cdc..aa5af54 100755 --- a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -2294,6 +2294,14 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac hostDesc + " due to storage failure", "Virtual Machine " + vm.getInstanceName() + " (id: " + vm.getId() + ") running on host [" + vm.getHostId() + "] stopped due to storage failure."); } + // track hypervsion tools version + if( info.hvtoolsversion != null && !info.hvtoolsversion.isEmpty() ) { + + UserVmVO userVm = _userVmDao.findById(vm.getId()); + _userVmDao.loadDetails(userVm); + userVm.setDetail("hypervisortoolsversion", info.hvtoolsversion); + _userVmDao.saveDetails(userVm); + } if (trackExternalChange) { if (serverState == State.Starting) {