Skip to content

Commit c970d34

Browse files
committed
CE-110 default interval of 0 minutes means do not mark for cleaning
1 parent 73021fb commit c970d34

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public interface VmwareManager {
3333
public static final ConfigKey<Long> s_vmwareNicHotplugWaitTimeout = new ConfigKey<Long>("Advanced", Long.class, "vmware.nic.hotplug.wait.timeout", "15000",
3434
"Wait timeout (milli seconds) for hot plugged NIC of VM to be detected by guest OS.", false, ConfigKey.Scope.Global);
3535

36-
public static final ConfigKey<Long> templateCleanupInterval = new ConfigKey<Long>("Advanced", Long.class, "vmware.full.clone.template.cleanup.period", "1440",
36+
public static final ConfigKey<Long> templateCleanupInterval = new ConfigKey<Long>("Advanced", Long.class, "vmware.full.clone.template.cleanup.period", "0",
3737
"period (in minutes) between the start of template cleanup jobs for vmware full cloned templates.", false, ConfigKey.Scope.Global);
3838

3939
public static final ConfigKey<Boolean> s_vmwareCleanOldWorderVMs = new ConfigKey<Boolean>("Advanced", Boolean.class, "vmware.clean.old.worker.vms", "false",

plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,9 @@ private void startTemplateCleanJobSchedule() {
12761276
if(s_logger.isDebugEnabled()) {
12771277
s_logger.debug("checking to see if we should schedule a job to search for fully cloned templates to clean-up");
12781278
}
1279-
if(StorageManager.StorageCleanupEnabled.value() && StorageManager.TemplateCleanupEnabled.value()) {
1279+
if(StorageManager.StorageCleanupEnabled.value() &&
1280+
StorageManager.TemplateCleanupEnabled.value() &&
1281+
templateCleanupInterval.value() > 0) {
12801282
try {
12811283
if (s_logger.isInfoEnabled()) {
12821284
s_logger.info("scheduling job to search for fully cloned templates to clean-up once per " + templateCleanupInterval.value() + " minutes.");

0 commit comments

Comments
 (0)