Browse Source

Add warning to periodic_task with interval 0

In Ia227f4c4e69ecf361ab02d1d17a3010303650104, warnings were
added for several options but instance_delete_interval was
left out by mistake.

Closes-Bug: #1188226
Change-Id: I20b396d664e40252743cac4f2a49f4f34882b32f
changes/85/119585/3
Davanum Srinivas 7 years ago
committed by Davanum Srinivas (dims)
parent
commit
c1298f13e1
  1. 5
      nova/compute/manager.py

5
nova/compute/manager.py

@ -167,7 +167,9 @@ interval_opts = [
cfg.IntOpt('instance_delete_interval',
default=300,
help=('Interval in seconds for retrying failed instance file '
'deletes')),
'deletes. Set to -1 to disable. '
'Setting this to 0 will disable, but this will change in '
'the K release to mean "run at the default rate".')),
cfg.IntOpt('block_device_allocate_retries_interval',
default=3,
help='Waiting time interval (seconds) between block'
@ -6056,6 +6058,7 @@ class ComputeManager(manager.Manager):
self.driver.manage_image_cache(context, filtered_instances)
@compute_utils.periodic_task_spacing_warn("instance_delete_interval")
@periodic_task.periodic_task(spacing=CONF.instance_delete_interval)
def _run_pending_deletes(self, context):
"""Retry any pending instance file deletes."""

Loading…
Cancel
Save