mirror of https://github.com/apache/cloudstack.git
Extending Kevin Brook's original XCP disguised as XS 5.6.100 patch
This commit is contained in:
parent
9f46142af6
commit
ff9ca29bb2
|
|
@ -392,7 +392,12 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
|
|||
|
||||
if(prodBrand.equals("XCP") && prodVersion.equals("1.1.0"))
|
||||
return new XcpServerResource(XcpServerResource.XCP_1_1_0);
|
||||
|
||||
|
||||
if(prodBrand.equals("XCP") && prodVersion.equals("5.6.100"))
|
||||
return new XcpServerResource(XcpServerResource.XCP_1_0_0);
|
||||
//Setting this to return XCP 1.0.0 - this is the lowest common denominator
|
||||
// for XCP trying to disguise itself at 5.6.100 for XenCenter integration
|
||||
|
||||
if(prodBrand.equals("XenServer") && prodVersion.equals("5.6.0"))
|
||||
return new XenServer56Resource();
|
||||
|
||||
|
|
@ -405,7 +410,7 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
|
|||
}
|
||||
}
|
||||
|
||||
String msg = "Only support XCP 1.0.0, XCP 1.1.0,, XenServer 5.6, XenServer 5.6 FP1 and XenServer 5.6 SP2, but this one is " + prodBrand + " " + prodVersion;
|
||||
String msg = "Only support XCP 1.0.0, XCP 1.1.0, XenServer 5.6, XenServer 5.6 FP1 and XenServer 5.6 SP2, but this one is " + prodBrand + " " + prodVersion;
|
||||
_alertMgr.sendAlert(AlertManager.ALERT_TYPE_HOST, dcId, podId, msg, msg);
|
||||
s_logger.debug(msg);
|
||||
throw new RuntimeException(msg);
|
||||
|
|
@ -532,7 +537,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"))) {
|
||||
if(prodBrand.equals("XCP") && (prodVersion.equals("1.0.0") || prodVersion.equals("1.1.0") || prodVersion.equals("5.6.100"))) {
|
||||
resource = XcpServerResource.class.getName();
|
||||
} else if(prodBrand.equals("XenServer") && prodVersion.equals("5.6.0")) {
|
||||
resource = XenServer56Resource.class.getName();
|
||||
|
|
|
|||
Loading…
Reference in New Issue