@@ -432,6 +432,9 @@ protected CitrixResourceBase createServerResource(long dcId, Long podId, Host.Re
432432
433433 if (prodBrand .equals ("XenServer" ) && prodVersion .equals ("6.0.2" ))
434434 return new XenServer602Resource ();
435+
436+ if (prodBrand .equals ("XenServer" ) && prodVersion .startsWith ("6.0.9" ))
437+ return new XenServer602Resource ();
435438
436439 if (prodBrand .equals ("XenServer" ) && prodVersion .equals ("5.6.100" )) {
437440 String prodVersionTextShort = record .softwareVersion .get ("product_version_text_short" ).trim ();
@@ -446,7 +449,7 @@ protected CitrixResourceBase createServerResource(long dcId, Long podId, Host.Re
446449 return new XcpOssResource ();
447450 }
448451
449- String msg = "Only support XCP 1.0.0, 1.1.0, 1.5 beta; XenServer 5.6, XenServer 5.6 FP1, XenServer 5.6 SP2, Xenserver 6.0, 6.0.2 but this one is " + prodBrand + " " + prodVersion ;
452+ String msg = "Only support XCP 1.0.0, 1.1.0, 1.5 beta; XenServer 5.6, XenServer 5.6 FP1, XenServer 5.6 SP2, Xenserver 6.0, 6.0.2, 6.0.9 but this one is " + prodBrand + " " + prodVersion ;
450453 _alertMgr .sendAlert (AlertManager .ALERT_TYPE_HOST , dcId , podId , msg , msg );
451454 s_logger .debug (msg );
452455 throw new RuntimeException (msg );
@@ -582,6 +585,8 @@ public void processConnect(HostVO agent, StartupCommand cmd, boolean forRebalanc
582585 resource = XenServer600Resource .class .getName ();
583586 } else if (prodBrand .equals ("XenServer" ) && prodVersion .equals ("6.0.2" )) {
584587 resource = XenServer602Resource .class .getName ();
588+ } else if (prodBrand .equals ("XenServer" ) && prodVersion .startsWith ("6.0.9" )) {
589+ resource = XenServer602Resource .class .getName ();
585590 } else if (prodBrand .equals ("XenServer" ) && prodVersion .equals ("5.6.100" )) {
586591 String prodVersionTextShort = details .get ("product_version_text_short" ).trim ();
587592 if ("5.6 SP2" .equals (prodVersionTextShort )) {
@@ -594,7 +599,7 @@ public void processConnect(HostVO agent, StartupCommand cmd, boolean forRebalanc
594599 }
595600
596601 if ( resource == null ){
597- 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 but this one is " + prodBrand + " " + prodVersion ;
602+ 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.0.9 but this one is " + prodBrand + " " + prodVersion ;
598603 s_logger .debug (msg );
599604 throw new RuntimeException (msg );
600605 }
0 commit comments