maint: remove redundant default=None for config options
These 73 instances were inconsistent and redundant. Change-Id: I298f2406535d0805caebdca4f2729d720dd5222f
This commit is contained in:
parent
a943f1403f
commit
9304aabeb8
@ -27,7 +27,6 @@ from nova.openstack.common import jsonutils
|
|||||||
from nova.openstack.common import log as logging
|
from nova.openstack.common import log as logging
|
||||||
|
|
||||||
file_opt = cfg.StrOpt('vendordata_jsonfile_path',
|
file_opt = cfg.StrOpt('vendordata_jsonfile_path',
|
||||||
default=None,
|
|
||||||
help='File to load json formated vendor data from')
|
help='File to load json formated vendor data from')
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
@ -40,11 +40,9 @@ osapi_opts = [
|
|||||||
help='the maximum number of items returned in a single '
|
help='the maximum number of items returned in a single '
|
||||||
'response from a collection resource'),
|
'response from a collection resource'),
|
||||||
cfg.StrOpt('osapi_compute_link_prefix',
|
cfg.StrOpt('osapi_compute_link_prefix',
|
||||||
default=None,
|
|
||||||
help='Base URL that will be presented to users in links '
|
help='Base URL that will be presented to users in links '
|
||||||
'to the OpenStack Compute API'),
|
'to the OpenStack Compute API'),
|
||||||
cfg.StrOpt('osapi_glance_link_prefix',
|
cfg.StrOpt('osapi_glance_link_prefix',
|
||||||
default=None,
|
|
||||||
help='Base URL that will be presented to users in links '
|
help='Base URL that will be presented to users in links '
|
||||||
'to glance resources'),
|
'to glance resources'),
|
||||||
]
|
]
|
||||||
|
@ -27,7 +27,6 @@ import nova.openstack.common.rpc.proxy as rpc_proxy
|
|||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
rpcapi_cap_opt = cfg.StrOpt('baseapi',
|
rpcapi_cap_opt = cfg.StrOpt('baseapi',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent to the base api in any '
|
help='Set a version cap for messages sent to the base api in any '
|
||||||
'service')
|
'service')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
@ -49,7 +49,6 @@ cells_opts = [
|
|||||||
help='Percentage of cell capacity to hold in reserve. '
|
help='Percentage of cell capacity to hold in reserve. '
|
||||||
'Affects both memory and disk utilization'),
|
'Affects both memory and disk utilization'),
|
||||||
cfg.StrOpt('cell_type',
|
cfg.StrOpt('cell_type',
|
||||||
default=None,
|
|
||||||
help='Type of cell: api or compute'),
|
help='Type of cell: api or compute'),
|
||||||
cfg.IntOpt("mute_child_interval",
|
cfg.IntOpt("mute_child_interval",
|
||||||
default=300,
|
default=300,
|
||||||
|
@ -40,7 +40,6 @@ CONF.import_opt('call_timeout', 'nova.cells.opts', group='cells')
|
|||||||
CONF.import_opt('rpc_backend', 'nova.openstack.common.rpc')
|
CONF.import_opt('rpc_backend', 'nova.openstack.common.rpc')
|
||||||
|
|
||||||
rpcapi_cap_opt = cfg.StrOpt('intercell',
|
rpcapi_cap_opt = cfg.StrOpt('intercell',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent between cells services')
|
help='Set a version cap for messages sent between cells services')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ CONF.import_opt('enable', 'nova.cells.opts', group='cells')
|
|||||||
CONF.import_opt('topic', 'nova.cells.opts', group='cells')
|
CONF.import_opt('topic', 'nova.cells.opts', group='cells')
|
||||||
|
|
||||||
rpcapi_cap_opt = cfg.StrOpt('cells',
|
rpcapi_cap_opt = cfg.StrOpt('cells',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent to local cells services')
|
help='Set a version cap for messages sent to local cells services')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ cell_state_manager_opts = [
|
|||||||
default=60,
|
default=60,
|
||||||
help='Seconds between getting fresh cell info from db.'),
|
help='Seconds between getting fresh cell info from db.'),
|
||||||
cfg.StrOpt('cells_config',
|
cfg.StrOpt('cells_config',
|
||||||
default=None,
|
|
||||||
help='Configuration file from which to read cells '
|
help='Configuration file from which to read cells '
|
||||||
'configuration. If given, overrides reading cells '
|
'configuration. If given, overrides reading cells '
|
||||||
'from the database.'),
|
'from the database.'),
|
||||||
|
@ -32,7 +32,6 @@ CONF = cfg.CONF
|
|||||||
CONF.register_opts(rpcapi_opts)
|
CONF.register_opts(rpcapi_opts)
|
||||||
|
|
||||||
rpcapi_cap_opt = cfg.StrOpt('cert',
|
rpcapi_cap_opt = cfg.StrOpt('cert',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent to cert services')
|
help='Set a version cap for messages sent to cert services')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@ opts = [
|
|||||||
default='self.pem',
|
default='self.pem',
|
||||||
help='SSL certificate file'),
|
help='SSL certificate file'),
|
||||||
cfg.StrOpt('key',
|
cfg.StrOpt('key',
|
||||||
default=None,
|
|
||||||
help='SSL key file (if separate from cert)'),
|
help='SSL key file (if separate from cert)'),
|
||||||
cfg.StrOpt('web',
|
cfg.StrOpt('web',
|
||||||
default='/usr/share/spice-html5',
|
default='/usr/share/spice-html5',
|
||||||
|
@ -84,7 +84,6 @@ compute_opts = [
|
|||||||
help='Allow migrate machine to the same host. '
|
help='Allow migrate machine to the same host. '
|
||||||
'Useful when testing in single-host environments.'),
|
'Useful when testing in single-host environments.'),
|
||||||
cfg.StrOpt('default_schedule_zone',
|
cfg.StrOpt('default_schedule_zone',
|
||||||
default=None,
|
|
||||||
help='availability zone to use when user doesn\'t specify one'),
|
help='availability zone to use when user doesn\'t specify one'),
|
||||||
cfg.ListOpt('non_inheritable_image_properties',
|
cfg.ListOpt('non_inheritable_image_properties',
|
||||||
default=['cache_in_nova',
|
default=['cache_in_nova',
|
||||||
|
@ -89,7 +89,6 @@ compute_opts = [
|
|||||||
help='Console proxy host to use to connect '
|
help='Console proxy host to use to connect '
|
||||||
'to instances on this host.'),
|
'to instances on this host.'),
|
||||||
cfg.StrOpt('default_access_ip_network_name',
|
cfg.StrOpt('default_access_ip_network_name',
|
||||||
default=None,
|
|
||||||
help='Name of network to use to set access ips for instances'),
|
help='Name of network to use to set access ips for instances'),
|
||||||
cfg.BoolOpt('defer_iptables_apply',
|
cfg.BoolOpt('defer_iptables_apply',
|
||||||
default=False,
|
default=False,
|
||||||
|
@ -38,7 +38,6 @@ CONF = cfg.CONF
|
|||||||
CONF.register_opts(rpcapi_opts)
|
CONF.register_opts(rpcapi_opts)
|
||||||
|
|
||||||
rpcapi_cap_opt = cfg.StrOpt('compute',
|
rpcapi_cap_opt = cfg.StrOpt('compute',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent to compute services')
|
help='Set a version cap for messages sent to compute services')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ import nova.openstack.common.rpc.proxy
|
|||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
rpcapi_cap_opt = cfg.StrOpt('conductor',
|
rpcapi_cap_opt = cfg.StrOpt('conductor',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent to conductor services')
|
help='Set a version cap for messages sent to conductor services')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ CONF = cfg.CONF
|
|||||||
CONF.register_opts(rpcapi_opts)
|
CONF.register_opts(rpcapi_opts)
|
||||||
|
|
||||||
rpcapi_cap_opt = cfg.StrOpt('console',
|
rpcapi_cap_opt = cfg.StrOpt('console',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent to console services')
|
help='Set a version cap for messages sent to console services')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ import nova.openstack.common.rpc.proxy
|
|||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
rpcapi_cap_opt = cfg.StrOpt('consoleauth',
|
rpcapi_cap_opt = cfg.StrOpt('consoleauth',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent to consoleauth services')
|
help='Set a version cap for messages sent to consoleauth services')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
|
@ -54,7 +54,6 @@ linux_net_opts = [
|
|||||||
default='eth0',
|
default='eth0',
|
||||||
help='Interface for public IP addresses'),
|
help='Interface for public IP addresses'),
|
||||||
cfg.StrOpt('network_device_mtu',
|
cfg.StrOpt('network_device_mtu',
|
||||||
default=None,
|
|
||||||
help='MTU setting for vlan'),
|
help='MTU setting for vlan'),
|
||||||
cfg.StrOpt('dhcpbridge',
|
cfg.StrOpt('dhcpbridge',
|
||||||
default=paths.bindir_def('nova-dhcpbridge'),
|
default=paths.bindir_def('nova-dhcpbridge'),
|
||||||
|
@ -84,7 +84,6 @@ QUOTAS = quota.QUOTAS
|
|||||||
|
|
||||||
network_opts = [
|
network_opts = [
|
||||||
cfg.StrOpt('flat_network_bridge',
|
cfg.StrOpt('flat_network_bridge',
|
||||||
default=None,
|
|
||||||
help='Bridge for simple network instances'),
|
help='Bridge for simple network instances'),
|
||||||
cfg.StrOpt('flat_network_dns',
|
cfg.StrOpt('flat_network_dns',
|
||||||
default='8.8.4.4',
|
default='8.8.4.4',
|
||||||
@ -93,13 +92,11 @@ network_opts = [
|
|||||||
default=False,
|
default=False,
|
||||||
help='Whether to attempt to inject network setup into guest'),
|
help='Whether to attempt to inject network setup into guest'),
|
||||||
cfg.StrOpt('flat_interface',
|
cfg.StrOpt('flat_interface',
|
||||||
default=None,
|
|
||||||
help='FlatDhcp will bridge into this interface if set'),
|
help='FlatDhcp will bridge into this interface if set'),
|
||||||
cfg.IntOpt('vlan_start',
|
cfg.IntOpt('vlan_start',
|
||||||
default=100,
|
default=100,
|
||||||
help='First VLAN for private networks'),
|
help='First VLAN for private networks'),
|
||||||
cfg.StrOpt('vlan_interface',
|
cfg.StrOpt('vlan_interface',
|
||||||
default=None,
|
|
||||||
help='vlans will bridge into this interface if set'),
|
help='vlans will bridge into this interface if set'),
|
||||||
cfg.IntOpt('num_networks',
|
cfg.IntOpt('num_networks',
|
||||||
default=1,
|
default=1,
|
||||||
@ -123,10 +120,8 @@ network_opts = [
|
|||||||
default='fd00::/48',
|
default='fd00::/48',
|
||||||
help='Fixed IPv6 address block'),
|
help='Fixed IPv6 address block'),
|
||||||
cfg.StrOpt('gateway',
|
cfg.StrOpt('gateway',
|
||||||
default=None,
|
|
||||||
help='Default IPv4 gateway'),
|
help='Default IPv4 gateway'),
|
||||||
cfg.StrOpt('gateway_v6',
|
cfg.StrOpt('gateway_v6',
|
||||||
default=None,
|
|
||||||
help='Default IPv6 gateway'),
|
help='Default IPv6 gateway'),
|
||||||
cfg.IntOpt('cnt_vpn_clients',
|
cfg.IntOpt('cnt_vpn_clients',
|
||||||
default=0,
|
default=0,
|
||||||
|
@ -83,7 +83,6 @@ neutron_opts = [
|
|||||||
help='Number of seconds before querying neutron for'
|
help='Number of seconds before querying neutron for'
|
||||||
' extensions'),
|
' extensions'),
|
||||||
cfg.StrOpt('neutron_ca_certificates_file',
|
cfg.StrOpt('neutron_ca_certificates_file',
|
||||||
default=None,
|
|
||||||
help='Location of ca certicates file to use for neutronclient'
|
help='Location of ca certicates file to use for neutronclient'
|
||||||
' requests.'),
|
' requests.'),
|
||||||
]
|
]
|
||||||
|
@ -38,7 +38,6 @@ CONF = cfg.CONF
|
|||||||
CONF.register_opts(rpcapi_opts)
|
CONF.register_opts(rpcapi_opts)
|
||||||
|
|
||||||
rpcapi_cap_opt = cfg.StrOpt('network',
|
rpcapi_cap_opt = cfg.StrOpt('network',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent to network services')
|
help='Set a version cap for messages sent to network services')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ from nova import utils
|
|||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
notify_opts = [
|
notify_opts = [
|
||||||
cfg.StrOpt('notify_on_state_change', default=None,
|
cfg.StrOpt('notify_on_state_change',
|
||||||
help='If set, send compute.instance.update notifications on instance '
|
help='If set, send compute.instance.update notifications on instance '
|
||||||
'state changes. Valid values are None for no notifications, '
|
'state changes. Valid values are None for no notifications, '
|
||||||
'"vm_state" for notifications on VM state changes, or '
|
'"vm_state" for notifications on VM state changes, or '
|
||||||
|
@ -62,10 +62,8 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
trusted_opts = [
|
trusted_opts = [
|
||||||
cfg.StrOpt('attestation_server',
|
cfg.StrOpt('attestation_server',
|
||||||
default=None,
|
|
||||||
help='attestation server http'),
|
help='attestation server http'),
|
||||||
cfg.StrOpt('attestation_server_ca_file',
|
cfg.StrOpt('attestation_server_ca_file',
|
||||||
default=None,
|
|
||||||
help='attestation server Cert file for Identity verification'),
|
help='attestation server Cert file for Identity verification'),
|
||||||
cfg.StrOpt('attestation_port',
|
cfg.StrOpt('attestation_port',
|
||||||
default='8443',
|
default='8443',
|
||||||
@ -74,7 +72,6 @@ trusted_opts = [
|
|||||||
default='/OpenAttestationWebServices/V1.0',
|
default='/OpenAttestationWebServices/V1.0',
|
||||||
help='attestation web API URL'),
|
help='attestation web API URL'),
|
||||||
cfg.StrOpt('attestation_auth_blob',
|
cfg.StrOpt('attestation_auth_blob',
|
||||||
default=None,
|
|
||||||
help='attestation authorization blob - must change'),
|
help='attestation authorization blob - must change'),
|
||||||
cfg.IntOpt('attestation_auth_timeout',
|
cfg.IntOpt('attestation_auth_timeout',
|
||||||
default=60,
|
default=60,
|
||||||
|
@ -33,7 +33,6 @@ CONF = cfg.CONF
|
|||||||
CONF.register_opts(rpcapi_opts)
|
CONF.register_opts(rpcapi_opts)
|
||||||
|
|
||||||
rpcapi_cap_opt = cfg.StrOpt('scheduler',
|
rpcapi_cap_opt = cfg.StrOpt('scheduler',
|
||||||
default=None,
|
|
||||||
help='Set a version cap for messages sent to scheduler services')
|
help='Set a version cap for messages sent to scheduler services')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ service_opts = [
|
|||||||
default=8773,
|
default=8773,
|
||||||
help='port for ec2 api to listen'),
|
help='port for ec2 api to listen'),
|
||||||
cfg.IntOpt('ec2_workers',
|
cfg.IntOpt('ec2_workers',
|
||||||
default=None,
|
|
||||||
help='Number of workers for EC2 API service'),
|
help='Number of workers for EC2 API service'),
|
||||||
cfg.StrOpt('osapi_compute_listen',
|
cfg.StrOpt('osapi_compute_listen',
|
||||||
default="0.0.0.0",
|
default="0.0.0.0",
|
||||||
@ -74,7 +73,6 @@ service_opts = [
|
|||||||
default=8774,
|
default=8774,
|
||||||
help='list port for osapi compute'),
|
help='list port for osapi compute'),
|
||||||
cfg.IntOpt('osapi_compute_workers',
|
cfg.IntOpt('osapi_compute_workers',
|
||||||
default=None,
|
|
||||||
help='Number of workers for OpenStack API service'),
|
help='Number of workers for OpenStack API service'),
|
||||||
cfg.StrOpt('metadata_manager',
|
cfg.StrOpt('metadata_manager',
|
||||||
default='nova.api.manager.MetadataManager',
|
default='nova.api.manager.MetadataManager',
|
||||||
@ -86,7 +84,6 @@ service_opts = [
|
|||||||
default=8775,
|
default=8775,
|
||||||
help='port for metadata api to listen'),
|
help='port for metadata api to listen'),
|
||||||
cfg.IntOpt('metadata_workers',
|
cfg.IntOpt('metadata_workers',
|
||||||
default=None,
|
|
||||||
help='Number of workers for metadata service'),
|
help='Number of workers for metadata service'),
|
||||||
cfg.StrOpt('compute_manager',
|
cfg.StrOpt('compute_manager',
|
||||||
default='nova.compute.manager.ComputeManager',
|
default='nova.compute.manager.ComputeManager',
|
||||||
|
@ -32,7 +32,6 @@ zookeeper = importutils.try_import('zookeeper')
|
|||||||
|
|
||||||
zk_driver_opts = [
|
zk_driver_opts = [
|
||||||
cfg.StrOpt('address',
|
cfg.StrOpt('address',
|
||||||
default=None,
|
|
||||||
help='The ZooKeeper addresses for servicegroup service in the '
|
help='The ZooKeeper addresses for servicegroup service in the '
|
||||||
'format of host1:port,host2:port,host3:port'),
|
'format of host1:port,host2:port,host3:port'),
|
||||||
cfg.IntOpt('recv_timeout',
|
cfg.IntOpt('recv_timeout',
|
||||||
|
@ -77,7 +77,6 @@ utils_opts = [
|
|||||||
help='Path to the rootwrap configuration file to use for '
|
help='Path to the rootwrap configuration file to use for '
|
||||||
'running commands as root'),
|
'running commands as root'),
|
||||||
cfg.StrOpt('tempdir',
|
cfg.StrOpt('tempdir',
|
||||||
default=None,
|
|
||||||
help='Explicitly specify the temporary working directory'),
|
help='Explicitly specify the temporary working directory'),
|
||||||
]
|
]
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
@ -42,7 +42,6 @@ opts = [
|
|||||||
default='shellinaboxd',
|
default='shellinaboxd',
|
||||||
help='path to baremetal terminal program'),
|
help='path to baremetal terminal program'),
|
||||||
cfg.StrOpt('terminal_cert_dir',
|
cfg.StrOpt('terminal_cert_dir',
|
||||||
default=None,
|
|
||||||
help='path to baremetal terminal SSL cert(PEM)'),
|
help='path to baremetal terminal SSL cert(PEM)'),
|
||||||
cfg.StrOpt('terminal_pid_dir',
|
cfg.StrOpt('terminal_pid_dir',
|
||||||
default=paths.state_path_def('baremetal/console'),
|
default=paths.state_path_def('baremetal/console'),
|
||||||
|
@ -47,7 +47,6 @@ opts = [
|
|||||||
default='',
|
default='',
|
||||||
help='password for virtual power host_user'),
|
help='password for virtual power host_user'),
|
||||||
cfg.StrOpt('virtual_power_host_key',
|
cfg.StrOpt('virtual_power_host_key',
|
||||||
default=None,
|
|
||||||
help='ssh key for virtual power host_user'),
|
help='ssh key for virtual power host_user'),
|
||||||
|
|
||||||
]
|
]
|
||||||
|
@ -43,7 +43,6 @@ configdrive_opts = [
|
|||||||
# force_config_drive is a string option, to allow for future behaviors
|
# force_config_drive is a string option, to allow for future behaviors
|
||||||
# (e.g. use config_drive based on image properties)
|
# (e.g. use config_drive based on image properties)
|
||||||
cfg.StrOpt('force_config_drive',
|
cfg.StrOpt('force_config_drive',
|
||||||
default=None,
|
|
||||||
help='Set to force injection to take place on a config drive '
|
help='Set to force injection to take place on a config drive '
|
||||||
'(if set, valid options are: always)'),
|
'(if set, valid options are: always)'),
|
||||||
cfg.StrOpt('mkisofs_cmd',
|
cfg.StrOpt('mkisofs_cmd',
|
||||||
|
@ -39,7 +39,6 @@ driver_opts = [
|
|||||||
'fake.FakeDriver, baremetal.BareMetalDriver, '
|
'fake.FakeDriver, baremetal.BareMetalDriver, '
|
||||||
'vmwareapi.VMwareESXDriver, vmwareapi.VMwareVCDriver'),
|
'vmwareapi.VMwareESXDriver, vmwareapi.VMwareVCDriver'),
|
||||||
cfg.StrOpt('default_ephemeral_format',
|
cfg.StrOpt('default_ephemeral_format',
|
||||||
default=None,
|
|
||||||
help='The default format an ephemeral_volume will be '
|
help='The default format an ephemeral_volume will be '
|
||||||
'formatted with on creation.'),
|
'formatted with on creation.'),
|
||||||
cfg.StrOpt('preallocate_images',
|
cfg.StrOpt('preallocate_images',
|
||||||
|
@ -32,7 +32,6 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
firewall_opts = [
|
firewall_opts = [
|
||||||
cfg.StrOpt('firewall_driver',
|
cfg.StrOpt('firewall_driver',
|
||||||
default=None,
|
|
||||||
help='Firewall driver '
|
help='Firewall driver '
|
||||||
'(defaults to hypervisor specific iptables driver)'),
|
'(defaults to hypervisor specific iptables driver)'),
|
||||||
cfg.BoolOpt('allow_same_net_traffic',
|
cfg.BoolOpt('allow_same_net_traffic',
|
||||||
|
@ -27,7 +27,6 @@ from nova.virt.hyperv import vmutils
|
|||||||
|
|
||||||
hyperv_opts = [
|
hyperv_opts = [
|
||||||
cfg.StrOpt('vswitch_name',
|
cfg.StrOpt('vswitch_name',
|
||||||
default=None,
|
|
||||||
help='External virtual switch Name, '
|
help='External virtual switch Name, '
|
||||||
'if not provided, the first external virtual '
|
'if not provided, the first external virtual '
|
||||||
'switch is used'),
|
'switch is used'),
|
||||||
|
@ -105,13 +105,10 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
libvirt_opts = [
|
libvirt_opts = [
|
||||||
cfg.StrOpt('rescue_image_id',
|
cfg.StrOpt('rescue_image_id',
|
||||||
default=None,
|
|
||||||
help='Rescue ami image'),
|
help='Rescue ami image'),
|
||||||
cfg.StrOpt('rescue_kernel_id',
|
cfg.StrOpt('rescue_kernel_id',
|
||||||
default=None,
|
|
||||||
help='Rescue aki image'),
|
help='Rescue aki image'),
|
||||||
cfg.StrOpt('rescue_ramdisk_id',
|
cfg.StrOpt('rescue_ramdisk_id',
|
||||||
default=None,
|
|
||||||
help='Rescue ari image'),
|
help='Rescue ari image'),
|
||||||
cfg.StrOpt('libvirt_type',
|
cfg.StrOpt('libvirt_type',
|
||||||
default='kvm',
|
default='kvm',
|
||||||
@ -152,7 +149,6 @@ libvirt_opts = [
|
|||||||
default=0,
|
default=0,
|
||||||
help='Maximum bandwidth to be used during migration, in Mbps'),
|
help='Maximum bandwidth to be used during migration, in Mbps'),
|
||||||
cfg.StrOpt('snapshot_image_format',
|
cfg.StrOpt('snapshot_image_format',
|
||||||
default=None,
|
|
||||||
help='Snapshot image format (valid options are : '
|
help='Snapshot image format (valid options are : '
|
||||||
'raw, qcow2, vmdk, vdi). '
|
'raw, qcow2, vmdk, vdi). '
|
||||||
'Defaults to same as source image'),
|
'Defaults to same as source image'),
|
||||||
@ -177,7 +173,6 @@ libvirt_opts = [
|
|||||||
],
|
],
|
||||||
help='Libvirt handlers for remote volumes.'),
|
help='Libvirt handlers for remote volumes.'),
|
||||||
cfg.StrOpt('libvirt_disk_prefix',
|
cfg.StrOpt('libvirt_disk_prefix',
|
||||||
default=None,
|
|
||||||
help='Override the default disk prefix for the devices attached'
|
help='Override the default disk prefix for the devices attached'
|
||||||
' to a server, which is dependent on libvirt_type. '
|
' to a server, which is dependent on libvirt_type. '
|
||||||
'(valid options are: sd, xvd, uvd, vd)'),
|
'(valid options are: sd, xvd, uvd, vd)'),
|
||||||
@ -191,7 +186,6 @@ libvirt_opts = [
|
|||||||
help='Use a separated OS thread pool to realize non-blocking'
|
help='Use a separated OS thread pool to realize non-blocking'
|
||||||
' libvirt calls'),
|
' libvirt calls'),
|
||||||
cfg.StrOpt('libvirt_cpu_mode',
|
cfg.StrOpt('libvirt_cpu_mode',
|
||||||
default=None,
|
|
||||||
help='Set to "host-model" to clone the host CPU feature flags; '
|
help='Set to "host-model" to clone the host CPU feature flags; '
|
||||||
'to "host-passthrough" to use the host CPU model exactly; '
|
'to "host-passthrough" to use the host CPU model exactly; '
|
||||||
'to "custom" to use a named CPU model; '
|
'to "custom" to use a named CPU model; '
|
||||||
@ -199,7 +193,6 @@ libvirt_opts = [
|
|||||||
'If libvirt_type="kvm|qemu", it will default to '
|
'If libvirt_type="kvm|qemu", it will default to '
|
||||||
'"host-model", otherwise it will default to "none"'),
|
'"host-model", otherwise it will default to "none"'),
|
||||||
cfg.StrOpt('libvirt_cpu_model',
|
cfg.StrOpt('libvirt_cpu_model',
|
||||||
default=None,
|
|
||||||
help='Set to a named libvirt CPU model (see names listed '
|
help='Set to a named libvirt CPU model (see names listed '
|
||||||
'in /usr/share/libvirt/cpu_map.xml). Only has effect if '
|
'in /usr/share/libvirt/cpu_map.xml). Only has effect if '
|
||||||
'libvirt_cpu_mode="custom" and libvirt_type="kvm|qemu"'),
|
'libvirt_cpu_mode="custom" and libvirt_type="kvm|qemu"'),
|
||||||
@ -215,7 +208,6 @@ libvirt_opts = [
|
|||||||
help='Specific cachemodes to use for different disk types '
|
help='Specific cachemodes to use for different disk types '
|
||||||
'e.g: ["file=directsync","block=none"]'),
|
'e.g: ["file=directsync","block=none"]'),
|
||||||
cfg.StrOpt('vcpu_pin_set',
|
cfg.StrOpt('vcpu_pin_set',
|
||||||
default=None,
|
|
||||||
help='Which pcpus can be used by vcpus of instance '
|
help='Which pcpus can be used by vcpus of instance '
|
||||||
'e.g: "4-12,^8,15"'),
|
'e.g: "4-12,^8,15"'),
|
||||||
]
|
]
|
||||||
|
@ -39,7 +39,6 @@ __imagebackend_opts = [
|
|||||||
' default. If default is specified,'
|
' default. If default is specified,'
|
||||||
' then use_cow_images flag is used instead of this one.'),
|
' then use_cow_images flag is used instead of this one.'),
|
||||||
cfg.StrOpt('libvirt_images_volume_group',
|
cfg.StrOpt('libvirt_images_volume_group',
|
||||||
default=None,
|
|
||||||
help='LVM Volume Group that is used for VM images, when you'
|
help='LVM Volume Group that is used for VM images, when you'
|
||||||
' specify libvirt_images_type=lvm.'),
|
' specify libvirt_images_type=lvm.'),
|
||||||
cfg.BoolOpt('libvirt_sparse_logical_volumes',
|
cfg.BoolOpt('libvirt_sparse_logical_volumes',
|
||||||
|
@ -44,17 +44,14 @@ volume_opts = [
|
|||||||
default=3,
|
default=3,
|
||||||
help='number of times to rescan iSCSI target to find volume'),
|
help='number of times to rescan iSCSI target to find volume'),
|
||||||
cfg.StrOpt('rbd_user',
|
cfg.StrOpt('rbd_user',
|
||||||
default=None,
|
|
||||||
help='the RADOS client name for accessing rbd volumes'),
|
help='the RADOS client name for accessing rbd volumes'),
|
||||||
cfg.StrOpt('rbd_secret_uuid',
|
cfg.StrOpt('rbd_secret_uuid',
|
||||||
default=None,
|
|
||||||
help='the libvirt uuid of the secret for the rbd_user'
|
help='the libvirt uuid of the secret for the rbd_user'
|
||||||
'volumes'),
|
'volumes'),
|
||||||
cfg.StrOpt('nfs_mount_point_base',
|
cfg.StrOpt('nfs_mount_point_base',
|
||||||
default=paths.state_path_def('mnt'),
|
default=paths.state_path_def('mnt'),
|
||||||
help='Dir where the nfs volume is mounted on the compute node'),
|
help='Dir where the nfs volume is mounted on the compute node'),
|
||||||
cfg.StrOpt('nfs_mount_options',
|
cfg.StrOpt('nfs_mount_options',
|
||||||
default=None,
|
|
||||||
help='Mount options passed to the nfs client. See section '
|
help='Mount options passed to the nfs client. See section '
|
||||||
'of the nfs man page for details'),
|
'of the nfs man page for details'),
|
||||||
cfg.IntOpt('num_aoe_discover_tries',
|
cfg.IntOpt('num_aoe_discover_tries',
|
||||||
@ -68,7 +65,6 @@ volume_opts = [
|
|||||||
default=False,
|
default=False,
|
||||||
help='use multipath connection of the iSCSI volume'),
|
help='use multipath connection of the iSCSI volume'),
|
||||||
cfg.StrOpt('scality_sofs_config',
|
cfg.StrOpt('scality_sofs_config',
|
||||||
default=None,
|
|
||||||
help='Path or URL to Scality SOFS configuration file'),
|
help='Path or URL to Scality SOFS configuration file'),
|
||||||
cfg.StrOpt('scality_sofs_mount_point',
|
cfg.StrOpt('scality_sofs_mount_point',
|
||||||
default='$state_path/scality',
|
default='$state_path/scality',
|
||||||
|
@ -34,13 +34,10 @@ powervm_opts = [
|
|||||||
default='ivm',
|
default='ivm',
|
||||||
help='PowerVM manager type (ivm, hmc)'),
|
help='PowerVM manager type (ivm, hmc)'),
|
||||||
cfg.StrOpt('powervm_mgr',
|
cfg.StrOpt('powervm_mgr',
|
||||||
default=None,
|
|
||||||
help='PowerVM manager host or ip'),
|
help='PowerVM manager host or ip'),
|
||||||
cfg.StrOpt('powervm_mgr_user',
|
cfg.StrOpt('powervm_mgr_user',
|
||||||
default=None,
|
|
||||||
help='PowerVM manager user name'),
|
help='PowerVM manager user name'),
|
||||||
cfg.StrOpt('powervm_mgr_passwd',
|
cfg.StrOpt('powervm_mgr_passwd',
|
||||||
default=None,
|
|
||||||
help='PowerVM manager user password',
|
help='PowerVM manager user password',
|
||||||
secret=True),
|
secret=True),
|
||||||
cfg.StrOpt('powervm_img_remote_path',
|
cfg.StrOpt('powervm_img_remote_path',
|
||||||
|
@ -62,21 +62,18 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
vmwareapi_opts = [
|
vmwareapi_opts = [
|
||||||
cfg.StrOpt('host_ip',
|
cfg.StrOpt('host_ip',
|
||||||
default=None,
|
|
||||||
deprecated_name='vmwareapi_host_ip',
|
deprecated_name='vmwareapi_host_ip',
|
||||||
deprecated_group='DEFAULT',
|
deprecated_group='DEFAULT',
|
||||||
help='URL for connection to VMware ESX/VC host. Required if '
|
help='URL for connection to VMware ESX/VC host. Required if '
|
||||||
'compute_driver is vmwareapi.VMwareESXDriver or '
|
'compute_driver is vmwareapi.VMwareESXDriver or '
|
||||||
'vmwareapi.VMwareVCDriver.'),
|
'vmwareapi.VMwareVCDriver.'),
|
||||||
cfg.StrOpt('host_username',
|
cfg.StrOpt('host_username',
|
||||||
default=None,
|
|
||||||
deprecated_name='vmwareapi_host_username',
|
deprecated_name='vmwareapi_host_username',
|
||||||
deprecated_group='DEFAULT',
|
deprecated_group='DEFAULT',
|
||||||
help='Username for connection to VMware ESX/VC host. '
|
help='Username for connection to VMware ESX/VC host. '
|
||||||
'Used only if compute_driver is '
|
'Used only if compute_driver is '
|
||||||
'vmwareapi.VMwareESXDriver or vmwareapi.VMwareVCDriver.'),
|
'vmwareapi.VMwareESXDriver or vmwareapi.VMwareVCDriver.'),
|
||||||
cfg.StrOpt('host_password',
|
cfg.StrOpt('host_password',
|
||||||
default=None,
|
|
||||||
deprecated_name='vmwareapi_host_password',
|
deprecated_name='vmwareapi_host_password',
|
||||||
deprecated_group='DEFAULT',
|
deprecated_group='DEFAULT',
|
||||||
help='Password for connection to VMware ESX/VC host. '
|
help='Password for connection to VMware ESX/VC host. '
|
||||||
@ -84,7 +81,6 @@ vmwareapi_opts = [
|
|||||||
'vmwareapi.VMwareESXDriver or vmwareapi.VMwareVCDriver.',
|
'vmwareapi.VMwareESXDriver or vmwareapi.VMwareVCDriver.',
|
||||||
secret=True),
|
secret=True),
|
||||||
cfg.StrOpt('cluster_name',
|
cfg.StrOpt('cluster_name',
|
||||||
default=None,
|
|
||||||
deprecated_name='vmwareapi_cluster_name',
|
deprecated_name='vmwareapi_cluster_name',
|
||||||
deprecated_group='DEFAULT',
|
deprecated_group='DEFAULT',
|
||||||
help='Name of a VMware Cluster ComputeResource. '
|
help='Name of a VMware Cluster ComputeResource. '
|
||||||
@ -117,7 +113,6 @@ vmwareapi_opts = [
|
|||||||
deprecated_group='DEFAULT',
|
deprecated_group='DEFAULT',
|
||||||
help='Total number of VNC ports'),
|
help='Total number of VNC ports'),
|
||||||
cfg.StrOpt('vnc_password',
|
cfg.StrOpt('vnc_password',
|
||||||
default=None,
|
|
||||||
deprecated_name='vnc_password',
|
deprecated_name='vnc_password',
|
||||||
deprecated_group='DEFAULT',
|
deprecated_group='DEFAULT',
|
||||||
help='VNC password',
|
help='VNC password',
|
||||||
|
@ -37,7 +37,6 @@ CONN_ABORT_ERROR = 'Software caused connection abort'
|
|||||||
ADDRESS_IN_USE_ERROR = 'Address already in use'
|
ADDRESS_IN_USE_ERROR = 'Address already in use'
|
||||||
|
|
||||||
vmwareapi_wsdl_loc_opt = cfg.StrOpt('wsdl_location',
|
vmwareapi_wsdl_loc_opt = cfg.StrOpt('wsdl_location',
|
||||||
default=None,
|
|
||||||
deprecated_name='vmwareapi_wsdl_loc',
|
deprecated_name='vmwareapi_wsdl_loc',
|
||||||
deprecated_group='DEFAULT',
|
deprecated_group='DEFAULT',
|
||||||
help='Optional VIM Service WSDL Location '
|
help='Optional VIM Service WSDL Location '
|
||||||
|
@ -64,7 +64,6 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
xenapi_opts = [
|
xenapi_opts = [
|
||||||
cfg.StrOpt('xenapi_connection_url',
|
cfg.StrOpt('xenapi_connection_url',
|
||||||
default=None,
|
|
||||||
help='URL for connection to XenServer/Xen Cloud Platform. '
|
help='URL for connection to XenServer/Xen Cloud Platform. '
|
||||||
'Required if compute_driver=xenapi.XenAPIDriver'),
|
'Required if compute_driver=xenapi.XenAPIDriver'),
|
||||||
cfg.StrOpt('xenapi_connection_username',
|
cfg.StrOpt('xenapi_connection_username',
|
||||||
@ -72,7 +71,6 @@ xenapi_opts = [
|
|||||||
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'),
|
'Used only if compute_driver=xenapi.XenAPIDriver'),
|
||||||
cfg.StrOpt('xenapi_connection_password',
|
cfg.StrOpt('xenapi_connection_password',
|
||||||
default=None,
|
|
||||||
help='Password for connection to XenServer/Xen Cloud Platform. '
|
help='Password for connection to XenServer/Xen Cloud Platform. '
|
||||||
'Used only if compute_driver=xenapi.XenAPIDriver',
|
'Used only if compute_driver=xenapi.XenAPIDriver',
|
||||||
secret=True),
|
secret=True),
|
||||||
@ -96,7 +94,6 @@ xenapi_opts = [
|
|||||||
default='/var/run/sr-mount',
|
default='/var/run/sr-mount',
|
||||||
help='Base path to the storage repository'),
|
help='Base path to the storage repository'),
|
||||||
cfg.StrOpt('target_host',
|
cfg.StrOpt('target_host',
|
||||||
default=None,
|
|
||||||
help='iSCSI Target Host'),
|
help='iSCSI Target Host'),
|
||||||
cfg.StrOpt('target_port',
|
cfg.StrOpt('target_port',
|
||||||
default='3260',
|
default='3260',
|
||||||
|
@ -26,7 +26,6 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
xenapi_torrent_opts = [
|
xenapi_torrent_opts = [
|
||||||
cfg.StrOpt('xenapi_torrent_base_url',
|
cfg.StrOpt('xenapi_torrent_base_url',
|
||||||
default=None,
|
|
||||||
help='Base URL for torrent files.'),
|
help='Base URL for torrent files.'),
|
||||||
cfg.FloatOpt('xenapi_torrent_seed_chance',
|
cfg.FloatOpt('xenapi_torrent_seed_chance',
|
||||||
default=1.0,
|
default=1.0,
|
||||||
|
@ -40,14 +40,11 @@ cinder_opts = [
|
|||||||
'catalog. Format is : separated values of the form: '
|
'catalog. Format is : separated values of the form: '
|
||||||
'<service_type>:<service_name>:<endpoint_type>'),
|
'<service_type>:<service_name>:<endpoint_type>'),
|
||||||
cfg.StrOpt('cinder_endpoint_template',
|
cfg.StrOpt('cinder_endpoint_template',
|
||||||
default=None,
|
|
||||||
help='Override service catalog lookup with template for cinder '
|
help='Override service catalog lookup with template for cinder '
|
||||||
'endpoint e.g. http://localhost:8776/v1/%(project_id)s'),
|
'endpoint e.g. http://localhost:8776/v1/%(project_id)s'),
|
||||||
cfg.StrOpt('os_region_name',
|
cfg.StrOpt('os_region_name',
|
||||||
default=None,
|
|
||||||
help='region name of this node'),
|
help='region name of this node'),
|
||||||
cfg.StrOpt('cinder_ca_certificates_file',
|
cfg.StrOpt('cinder_ca_certificates_file',
|
||||||
default=None,
|
|
||||||
help='Location of ca certicates file to use for cinder client '
|
help='Location of ca certicates file to use for cinder client '
|
||||||
'requests.'),
|
'requests.'),
|
||||||
cfg.IntOpt('cinder_http_retries',
|
cfg.IntOpt('cinder_http_retries',
|
||||||
|
@ -55,14 +55,11 @@ wsgi_opts = [
|
|||||||
'into it: client_ip, date_time, request_line, status_code, '
|
'into it: client_ip, date_time, request_line, status_code, '
|
||||||
'body_length, wall_seconds.'),
|
'body_length, wall_seconds.'),
|
||||||
cfg.StrOpt('ssl_ca_file',
|
cfg.StrOpt('ssl_ca_file',
|
||||||
default=None,
|
|
||||||
help="CA certificate file to use to verify "
|
help="CA certificate file to use to verify "
|
||||||
"connecting clients"),
|
"connecting clients"),
|
||||||
cfg.StrOpt('ssl_cert_file',
|
cfg.StrOpt('ssl_cert_file',
|
||||||
default=None,
|
|
||||||
help="SSL certificate of API server"),
|
help="SSL certificate of API server"),
|
||||||
cfg.StrOpt('ssl_key_file',
|
cfg.StrOpt('ssl_key_file',
|
||||||
default=None,
|
|
||||||
help="SSL private key of API server"),
|
help="SSL private key of API server"),
|
||||||
cfg.IntOpt('tcp_keepidle',
|
cfg.IntOpt('tcp_keepidle',
|
||||||
default=600,
|
default=600,
|
||||||
|
@ -43,7 +43,6 @@ cleaner_opts = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
cli_opt = cfg.StrOpt('command',
|
cli_opt = cfg.StrOpt('command',
|
||||||
default=None,
|
|
||||||
help='Cleaner command')
|
help='Cleaner command')
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
Loading…
Reference in New Issue
Block a user