You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/10/24 20:30:42 UTC

[04/50] [abbrv] git commit: updated refs/heads/ui-restyle to 500c798

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/ui-restyle
Commit: 6640f4d9287cdd1e19c0f32b41ceef56ce122d1f
Parents: e33ae74
Author: Anthony Xu <an...@citrix.com>
Authored: Tue Oct 22 11:20:27 2013 -0700
Committer: Anthony Xu <an...@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) {