@@ -1841,7 +1841,7 @@ private void handleAutoEnableDisableKVMHost(boolean autoEnableDisableKVMSetting,
18411841 Boolean .parseBoolean (hostDetail .getValue ()) && resourceEvent == ResourceState .Event .Disable ) {
18421842 logger .info (String .format ("The setting %s is enabled but the host %s is manually set into %s state," +
18431843 "ignoring future auto enabling of the host based on health check results" ,
1844- AgentManager .EnableKVMAutoEnableDisable .key (), host .getName (), resourceEvent ));
1844+ AgentManager .KVMAutoEnableDisable .key (), host .getName (), resourceEvent ));
18451845 hostDetail .setValue (Boolean .FALSE .toString ());
18461846 _hostDetailsDao .update (hostDetail .getId (), hostDetail );
18471847 } else if (hostDetail == null ) {
@@ -1853,7 +1853,7 @@ private void handleAutoEnableDisableKVMHost(boolean autoEnableDisableKVMSetting,
18531853 }
18541854 private boolean updateHostAllocationState (HostVO host , String allocationState ,
18551855 boolean isUpdateFromHostHealthCheck ) throws NoTransitionException {
1856- boolean autoEnableDisableKVMSetting = AgentManager .EnableKVMAutoEnableDisable .valueIn (host .getClusterId ()) &&
1856+ boolean autoEnableDisableKVMSetting = AgentManager .KVMAutoEnableDisable .valueIn (host .getClusterId ()) &&
18571857 host .getHypervisorType () == HypervisorType .KVM ;
18581858 ResourceState .Event resourceEvent = getResourceEventFromAllocationStateString (allocationState );
18591859 DetailVO hostDetail = _hostDetailsDao .findDetail (host .getId (), ApiConstants .AUTO_ENABLE_KVM_HOST );
@@ -1867,7 +1867,7 @@ private boolean updateHostAllocationState(HostVO host, String allocationState,
18671867 if (isAutoEnableAttemptForADisabledHost (autoEnableDisableKVMSetting , isUpdateFromHostHealthCheck , hostDetail , resourceEvent )) {
18681868 logger .debug (String .format ("The setting '%s' is enabled and the health check succeeds on the host, " +
18691869 "but the host has been manually disabled previously, ignoring auto enabling" ,
1870- AgentManager .EnableKVMAutoEnableDisable .key ()));
1870+ AgentManager .KVMAutoEnableDisable .key ()));
18711871 return false ;
18721872 }
18731873
@@ -1981,7 +1981,7 @@ private void sendAlertAndAnnotationForAutoEnableDisableKVMHostFeature(HostVO hos
19811981 boolean isUpdateFromHostHealthCheck ,
19821982 boolean isUpdateHostAllocation , String annotation ) {
19831983 boolean isAutoEnableDisableKVMSettingEnabled = host .getHypervisorType () == HypervisorType .KVM &&
1984- AgentManager .EnableKVMAutoEnableDisable .valueIn (host .getClusterId ());
1984+ AgentManager .KVMAutoEnableDisable .valueIn (host .getClusterId ());
19851985 if (!isAutoEnableDisableKVMSettingEnabled ) {
19861986 if (StringUtils .isNotBlank (annotation )) {
19871987 annotationService .addAnnotation (annotation , AnnotationService .EntityType .HOST , host .getUuid (), true );
@@ -2005,7 +2005,7 @@ private void sendAlertAndAnnotationForAutoEnableDisableKVMHostFeature(HostVO hos
20052005 host .getPodId (), msg , msg );
20062006 } else {
20072007 msg += String .format ("is %s despite the setting '%s' is enabled for the cluster %s" ,
2008- isEventEnable ? "enabled" : "disabled" , AgentManager .EnableKVMAutoEnableDisable .key (),
2008+ isEventEnable ? "enabled" : "disabled" , AgentManager .KVMAutoEnableDisable .key (),
20092009 host .getClusterId ());
20102010 if (StringUtils .isNotBlank (annotation )) {
20112011 msg += String .format (", reason: %s" , annotation );
0 commit comments