incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: refs/heads/4.1 - CLOUDSTACK-416: Add XCP 1.6.x in XcpServerDiscoverer.java processConnect
Date Tue, 26 Feb 2013 10:07:46 GMT
Updated Branches:
  refs/heads/4.1 6a76c96be -> c7935a9ab


CLOUDSTACK-416: Add XCP 1.6.x in XcpServerDiscoverer.java processConnect

Thanks to Devdeep for pointing this out.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>


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

Branch: refs/heads/4.1
Commit: c7935a9ab69ae941270d60d22e812e86b5e9c896
Parents: 6a76c96
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Tue Feb 26 15:34:55 2013 +0530
Committer: Rohit Yadav <bhaisaab@apache.org>
Committed: Tue Feb 26 15:34:55 2013 +0530

----------------------------------------------------------------------
 .../xen/discoverer/XcpServerDiscoverer.java        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c7935a9a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
index c141211..a711ec0 100755
--- a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
+++ b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
@@ -582,7 +582,7 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer,
L
         String prodBrand = details.get("product_brand").trim();
         String prodVersion = details.get("product_version").trim();
         
-        if(prodBrand.equals("XCP") && (prodVersion.equals("1.0.0") || prodVersion.equals("1.1.0")
|| prodVersion.equals("5.6.100")  || prodVersion.startsWith("1.4"))) {
+        if(prodBrand.equals("XCP") && (prodVersion.equals("1.0.0") || prodVersion.equals("1.1.0")
|| prodVersion.equals("5.6.100")  || prodVersion.startsWith("1.4") || prodVersion.startsWith("1.6")))
{
             resource = XcpServerResource.class.getName();
         } else if(prodBrand.equals("XenServer") && prodVersion.equals("5.6.0")) {
             resource = XenServer56Resource.class.getName();
@@ -604,7 +604,7 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer,
L
         }
         
         if( resource == null ){
-            String msg = "Only support XCP 1.0.0, 1.1.0, 1.5 beta; XenServer 5.6, 5.6 FP1,
5.6 SP2 and Xenserver 6.0 , 6.0.2, 6.1.0 but this one is " + prodBrand + " " + prodVersion;
+            String msg = "Only support XCP 1.0.0, 1.1.0, 1.4.x, 1.5 beta, 1.6.x; XenServer
5.6, 5.6 FP1, 5.6 SP2 and Xenserver 6.0 , 6.0.2, 6.1.0 but this one is " + prodBrand + " "
+ prodVersion;
             s_logger.debug(msg);
             throw new RuntimeException(msg);
         }


Mime
View raw message