Move config option definition
The 'move_disks_on_cold_migration' config option is currently defined in migrationops.py instead of conf.py, for which reason it's not included in the generated documentation. This simple change will move it next to the rest of compute-hyperv config options. While at it, we're adding a help string. Change-Id: I762156dea8d32bdc13716b88821ed7495e705607
This commit is contained in:
parent
05a55ce5c9
commit
3057125702
|
@ -61,6 +61,12 @@ hyperv_opts = [
|
|||
"pending tasks. In some situations, the destroy "
|
||||
"operation will fail (e.g. due to file locks), "
|
||||
"requiring subsequent retries."),
|
||||
cfg.BoolOpt('move_disks_on_cold_migration',
|
||||
default=True,
|
||||
help="Move the instance files to the instance dir configured "
|
||||
"on the destination host. You may consider disabling "
|
||||
"this when using multiple CSVs or shares and you wish "
|
||||
"the source location to be preserved."),
|
||||
]
|
||||
|
||||
coordination_opts = [
|
||||
|
|
|
@ -25,7 +25,6 @@ from nova import exception
|
|||
from nova.virt import configdrive
|
||||
from nova.virt import driver
|
||||
from os_win import utilsfactory
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
from oslo_utils import excutils
|
||||
from oslo_utils import units
|
||||
|
@ -41,13 +40,6 @@ from compute_hyperv.nova import volumeops
|
|||
LOG = logging.getLogger(__name__)
|
||||
CONF = nova.conf.CONF
|
||||
|
||||
hyperv_migration_opts = [
|
||||
cfg.BoolOpt('move_disks_on_cold_migration',
|
||||
default=True)
|
||||
]
|
||||
|
||||
CONF.register_opts(hyperv_migration_opts, 'hyperv')
|
||||
|
||||
|
||||
class MigrationOps(object):
|
||||
|
||||
|
|
Loading…
Reference in New Issue