Improve help text for xenapi_opts
This commit adds additional help text to xenapi_opts in xenserver.py Blueprint centralize-config-options-newton Change-Id: Id12419093b023982f67ee7a18f9cbf3a331ff323
This commit is contained in:
parent
0da6c64611
commit
0047a76ee8
@ -23,7 +23,15 @@
|
|||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
xenserver_group = cfg.OptGroup('xenserver', title='Xenserver Options')
|
xenserver_group = cfg.OptGroup('xenserver',
|
||||||
|
title='Xenserver Options',
|
||||||
|
help="""
|
||||||
|
XenServer options are used when the compute_driver is set to use
|
||||||
|
XenServer (compute_driver=xenapi.XenAPIDriver).
|
||||||
|
|
||||||
|
Must specify connection_url, and connection_password to use
|
||||||
|
compute_driver=xenapi.XenAPIDriver.
|
||||||
|
""")
|
||||||
|
|
||||||
xenapi_agent_opts = [
|
xenapi_agent_opts = [
|
||||||
cfg.IntOpt('agent_timeout',
|
cfg.IntOpt('agent_timeout',
|
||||||
@ -234,62 +242,125 @@ xenapi_vm_utils_opts = [
|
|||||||
|
|
||||||
xenapi_opts = [
|
xenapi_opts = [
|
||||||
cfg.StrOpt('connection_url',
|
cfg.StrOpt('connection_url',
|
||||||
help='URL for connection to XenServer/Xen Cloud Platform. '
|
help="""
|
||||||
'A special value of unix://local can be used to connect '
|
URL for connection to XenServer/Xen Cloud Platform. A special value
|
||||||
'to the local unix socket. '
|
of unix://local can be used to connect to the local unix socket.
|
||||||
'Required if compute_driver=xenapi.XenAPIDriver'),
|
|
||||||
|
Possible values:
|
||||||
|
|
||||||
|
* Any string that represents a URL. The connection_url is
|
||||||
|
generally the management network IP address of the XenServer.
|
||||||
|
* This option must be set if you chose the XenServer driver.
|
||||||
|
"""),
|
||||||
cfg.StrOpt('connection_username',
|
cfg.StrOpt('connection_username',
|
||||||
default='root',
|
default='root',
|
||||||
help='Username for connection to XenServer/Xen Cloud Platform. '
|
help='Username for connection to XenServer/Xen Cloud Platform'),
|
||||||
'Used only if compute_driver=xenapi.XenAPIDriver'),
|
|
||||||
cfg.StrOpt('connection_password',
|
cfg.StrOpt('connection_password',
|
||||||
help='Password for connection to XenServer/Xen Cloud Platform. '
|
secret=True,
|
||||||
'Used only if compute_driver=xenapi.XenAPIDriver',
|
help='Password for connection to XenServer/Xen Cloud Platform'),
|
||||||
secret=True),
|
|
||||||
cfg.FloatOpt('vhd_coalesce_poll_interval',
|
cfg.FloatOpt('vhd_coalesce_poll_interval',
|
||||||
default=5.0,
|
default=5.0,
|
||||||
help='The interval used for polling of coalescing vhds. '
|
min=0,
|
||||||
'Used only if compute_driver=xenapi.XenAPIDriver'),
|
help="""
|
||||||
|
The interval used for polling of coalescing vhds.
|
||||||
|
|
||||||
|
This is the interval after which the task of coalesce VHD is
|
||||||
|
performed, until it reaches the max attempts that is set by
|
||||||
|
vhd_coalesce_max_attempts.
|
||||||
|
|
||||||
|
Related options:
|
||||||
|
|
||||||
|
* `vhd_coalesce_max_attempts`
|
||||||
|
"""),
|
||||||
cfg.BoolOpt('check_host',
|
cfg.BoolOpt('check_host',
|
||||||
default=True,
|
default=True,
|
||||||
help='Ensure compute service is running on host XenAPI '
|
help="""
|
||||||
'connects to.'),
|
Ensure compute service is running on host XenAPI connects to.
|
||||||
|
This option must be set to false if the 'independent_compute'
|
||||||
|
option is set to true.
|
||||||
|
|
||||||
|
Possible values:
|
||||||
|
|
||||||
|
* Setting this option to true will make sure that compute service
|
||||||
|
is running on the same host that is specified by connection_url.
|
||||||
|
* Setting this option to false, doesn't perform the check.
|
||||||
|
|
||||||
|
Related options:
|
||||||
|
|
||||||
|
* `independent_compute`
|
||||||
|
"""),
|
||||||
cfg.IntOpt('vhd_coalesce_max_attempts',
|
cfg.IntOpt('vhd_coalesce_max_attempts',
|
||||||
|
min=0,
|
||||||
default=20,
|
default=20,
|
||||||
help='Max number of times to poll for VHD to coalesce. '
|
help="""
|
||||||
'Used only if compute_driver=xenapi.XenAPIDriver'),
|
Max number of times to poll for VHD to coalesce.
|
||||||
|
|
||||||
|
This option determines the maximum number of attempts that can be
|
||||||
|
made for coalescing the VHD before giving up.
|
||||||
|
|
||||||
|
Related opitons:
|
||||||
|
|
||||||
|
* `vhd_coalesce_poll_interval`
|
||||||
|
"""),
|
||||||
cfg.StrOpt('sr_base_path',
|
cfg.StrOpt('sr_base_path',
|
||||||
default='/var/run/sr-mount',
|
default='/var/run/sr-mount',
|
||||||
help='Base path to the storage repository'),
|
help="""
|
||||||
|
Base path to the storage repository on the XenServer host.
|
||||||
|
"""),
|
||||||
cfg.StrOpt('target_host',
|
cfg.StrOpt('target_host',
|
||||||
help='The iSCSI Target Host'),
|
help="""
|
||||||
|
The iSCSI Target Host.
|
||||||
|
|
||||||
|
This option represents the hostname or ip of the iSCSI Target.
|
||||||
|
If the target host is not present in the connection information from
|
||||||
|
the volume provider then the value from this option is taken.
|
||||||
|
|
||||||
|
Possible values:
|
||||||
|
|
||||||
|
* Any string that represents hostname/ip of Target.
|
||||||
|
"""),
|
||||||
|
# TODO(aunnam): This should be PortOpt
|
||||||
cfg.StrOpt('target_port',
|
cfg.StrOpt('target_port',
|
||||||
default='3260',
|
default='3260',
|
||||||
help='The iSCSI Target Port, default is port 3260'),
|
help="""
|
||||||
|
The iSCSI Target Port.
|
||||||
|
|
||||||
|
This option represents the port of the iSCSI Target. If the
|
||||||
|
target port is not present in the connection information from the
|
||||||
|
volume provider then the value from this option is taken.
|
||||||
|
"""),
|
||||||
# NOTE(sirp): This is a work-around for a bug in Ubuntu Maverick,
|
# NOTE(sirp): This is a work-around for a bug in Ubuntu Maverick,
|
||||||
# when we pull support for it, we should remove this
|
# when we pull support for it, we should remove this
|
||||||
cfg.BoolOpt('remap_vbd_dev',
|
cfg.BoolOpt('remap_vbd_dev',
|
||||||
default=False,
|
default=False,
|
||||||
help='Used to enable the remapping of VBD dev '
|
help="""
|
||||||
'(Works around an issue in Ubuntu Maverick)'),
|
Used to enable the remapping of VBD dev.
|
||||||
|
(Works around an issue in Ubuntu Maverick)
|
||||||
|
"""),
|
||||||
cfg.StrOpt('remap_vbd_dev_prefix',
|
cfg.StrOpt('remap_vbd_dev_prefix',
|
||||||
default='sd',
|
default='sd',
|
||||||
help='Specify prefix to remap VBD dev to '
|
help="""
|
||||||
'(ex. /dev/xvdb -> /dev/sdb)'),
|
Specify prefix to remap VBD dev to (ex. /dev/xvdb -> /dev/sdb).
|
||||||
|
|
||||||
|
Related options:
|
||||||
|
|
||||||
|
* If `remap_vbd_dev` is set to False this option has no impact.
|
||||||
|
"""),
|
||||||
cfg.BoolOpt('independent_compute',
|
cfg.BoolOpt('independent_compute',
|
||||||
default=False,
|
default=False,
|
||||||
help="""
|
help="""
|
||||||
Used to prevent attempts to attach VBDs locally, so Nova can
|
Used to prevent attempts to attach VBDs locally, so Nova can
|
||||||
be run in a VM on a different host.
|
be run in a VM on a different host.
|
||||||
|
|
||||||
This setting is incompatible with:
|
Related options:
|
||||||
* ``CONF.flat_injected`` (Must be False)
|
|
||||||
* ``CONF.xenserver.check_host`` (Must be False)
|
* ``CONF.flat_injected`` (Must be False)
|
||||||
* ``CONF.default_ephemeral_format`` (Must be unset or 'ext3')
|
* ``CONF.xenserver.check_host`` (Must be False)
|
||||||
* Joining host aggregates (will error if attempted)
|
* ``CONF.default_ephemeral_format`` (Must be unset or 'ext3')
|
||||||
* Swap disks for Windows VMs (will error if attempted)
|
* Joining host aggregates (will error if attempted)
|
||||||
* Nova-based auto_configure_disk (will error if attempted)
|
* Swap disks for Windows VMs (will error if attempted)
|
||||||
"""),
|
* Nova-based auto_configure_disk (will error if attempted)
|
||||||
|
""")
|
||||||
]
|
]
|
||||||
|
|
||||||
xenapi_vmops_opts = [
|
xenapi_vmops_opts = [
|
||||||
|
Loading…
Reference in New Issue
Block a user