cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthon...@apache.org
Subject git commit: updated refs/heads/4.2 to c31f87c
Date Tue, 22 Oct 2013 18:24:36 GMT
Updated Branches:
  refs/heads/4.2 5ca5cb190 -> c31f87c07


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/c31f87c0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c31f87c0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c31f87c0

Branch: refs/heads/4.2
Commit: c31f87c0781bfe2a4662992fe6d2cac3c0b7207b
Parents: 5ca5cb1
Author: Anthony Xu <anthony.xu@citrix.com>
Authored: Tue Oct 22 11:20:27 2013 -0700
Committer: Anthony Xu <anthony.xu@citrix.com>
Committed: Tue Oct 22 11:21:28 2013 -0700

----------------------------------------------------------------------
 server/src/com/cloud/vm/VirtualMachineManagerImpl.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c31f87c0/server/src/com/cloud/vm/VirtualMachineManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java
index da1fa77..354b3ab 100755
--- a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java
+++ b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java
@@ -2466,6 +2466,14 @@ public class VirtualMachineManagerImpl extends ManagerBase implements
VirtualMac
             _alertMgr.sendAlert(alertType, vm.getDataCenterId(), vm.getPodIdToDeployIn(),
"VM (name: " + vm.getInstanceName() + ", id: " + vm.getId() + ") stopped on host " + 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) {


Mime
View raw message