Skip to content

Commit e3ae25a

Browse files
committed
CE-110 default interval of 0 minutes means do not mark for cleaning
1 parent 9b7f694 commit e3ae25a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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
String composeWorkerName();

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
@@ -1265,7 +1265,9 @@ private void startTemplateCleanJobSchedule() {
12651265
if(s_logger.isDebugEnabled()) {
12661266
s_logger.debug("checking to see if we should schedule a job to search for fully cloned templates to clean-up");
12671267
}
1268-
if(StorageManager.StorageCleanupEnabled.value() && StorageManager.TemplateCleanupEnabled.value()) {
1268+
if(StorageManager.StorageCleanupEnabled.value() &&
1269+
StorageManager.TemplateCleanupEnabled.value() &&
1270+
templateCleanupInterval.value() > 0) {
12691271
try {
12701272
if (s_logger.isInfoEnabled()) {
12711273
s_logger.info("scheduling job to search for fully cloned templates to clean-up once per " + templateCleanupInterval.value() + " minutes.");

0 commit comments

Comments
 (0)