Move zombie_instance_updated_at_window option

The zombie_instance_updated_at_window option is only used in
vm_vdi_cleaner so declare it there.

blueprint: scope-config-opts
Change-Id: I8d95fbd858f8afe855c2b559dea6995497d8f682
This commit is contained in:
Mark McLoughlin 2012-12-11 08:06:07 +00:00
parent 473ef9e80d
commit 79ac64dd32
2 changed files with 6 additions and 5 deletions

View File

@ -225,9 +225,6 @@ global_opts = [
'nova.compute.api:nova.notifier.api.notify_decorator'
],
help='List of modules/decorators to monkey patch'),
cfg.IntOpt('zombie_instance_updated_at_window',
default=172800,
help='Number of seconds zombie instances are cleaned up.'),
cfg.IntOpt('service_down_time',
default=60,
help='maximum time since last check-in for up service'),

View File

@ -35,9 +35,13 @@ from nova.openstack.common import timeutils
from nova.virt import virtapi
from nova.virt.xenapi import driver as xenapi_driver
cleaner_opts = [
cfg.IntOpt('zombie_instance_updated_at_window',
default=172800,
help='Number of seconds zombie instances are cleaned up.'),
]
CONF = cfg.CONF
CONF.import_opt('zombie_instance_updated_at_window', 'nova.config')
CONF.register_opts(cleaner_opts)
CONF.import_opt("resize_confirm_window", "nova.compute.manager")