cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kis...@apache.org
Subject [2/2] git commit: updated refs/heads/master to c63f43a
Date Tue, 11 Mar 2014 18:19:50 GMT
CLOUDSTACK-6122: LXC systemVms run on KVM. If they are not included in the VmState report,
MS assumes that system Vms are not running. MS will stop these Vms and spin new ones. So on
LXC hosts, KVM Vms also have to be included in the Vmlist


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6d4b979c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6d4b979c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6d4b979c

Branch: refs/heads/master
Commit: 6d4b979c4d0afee85d3244e07e6233ee8784db4f
Parents: 415e4bf
Author: Kishan Kavala <kishan@cloud.com>
Authored: Tue Mar 11 22:58:41 2014 +0530
Committer: Kishan Kavala <kishan@cloud.com>
Committed: Tue Mar 11 23:49:28 2014 +0530

----------------------------------------------------------------------
 .../cloud/hypervisor/kvm/resource/LibvirtComputingResource.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6d4b979c/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
index f4f6c74..3a5d27c 100755
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
@@ -4384,6 +4384,8 @@ public class LibvirtComputingResource extends ServerResourceBase implements
Serv
             try {
                 conn = LibvirtConnection.getConnectionByType(HypervisorType.LXC.toString());
                 vmStates.putAll(getAllVms(conn));
+                conn = LibvirtConnection.getConnectionByType(HypervisorType.KVM.toString());
+                vmStates.putAll(getAllVms(conn));
             } catch (LibvirtException e) {
                 s_logger.debug("Failed to get connection: " + e.getMessage());
             }
@@ -4480,6 +4482,8 @@ public class LibvirtComputingResource extends ServerResourceBase implements
Serv
             try {
                 conn = LibvirtConnection.getConnectionByType(HypervisorType.LXC.toString());
                 vmStates.putAll(getHostVmStateReport(conn));
+                conn = LibvirtConnection.getConnectionByType(HypervisorType.KVM.toString());
+                vmStates.putAll(getHostVmStateReport(conn));
             } catch (LibvirtException e) {
                 s_logger.debug("Failed to get connection: " + e.getMessage());
             }


Mime
View raw message