Merge "remove default=None for config options"

This commit is contained in:
Jenkins 2015-11-10 13:24:30 +00:00 committed by Gerrit Code Review
commit 53e44f6ac7
18 changed files with 4 additions and 58 deletions

View File

@ -115,10 +115,8 @@ global_opts = [
default='nova', default='nova',
help='Availability zone of this node.'), help='Availability zone of this node.'),
cfg.StrOpt('default_share_type', cfg.StrOpt('default_share_type',
default=None,
help='Default share type to use.'), help='Default share type to use.'),
cfg.ListOpt('memcached_servers', cfg.ListOpt('memcached_servers',
default=None,
help='Memcached servers or None for in process cache.'), help='Memcached servers or None for in process cache.'),
cfg.StrOpt('share_usage_audit_period', cfg.StrOpt('share_usage_audit_period',
default='month', default='month',
@ -129,7 +127,6 @@ global_opts = [
help='Deprecated: command to use for running commands as ' help='Deprecated: command to use for running commands as '
'root.'), 'root.'),
cfg.StrOpt('rootwrap_config', cfg.StrOpt('rootwrap_config',
default=None,
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.BoolOpt('monkey_patch', cfg.BoolOpt('monkey_patch',
@ -149,7 +146,6 @@ global_opts = [
help='The strategy to use for auth. Supports noauth, keystone, ' help='The strategy to use for auth. Supports noauth, keystone, '
'and deprecated.'), 'and deprecated.'),
cfg.ListOpt('enabled_share_backends', cfg.ListOpt('enabled_share_backends',
default=None,
help='A list of share backend names to use. These backend ' help='A list of share backend names to use. These backend '
'names should be backed by a unique [CONFIG] group ' 'names should be backed by a unique [CONFIG] group '
'with its options.'), 'with its options.'),

View File

@ -38,10 +38,8 @@ nova_opts = [
default='compute:nova:adminURL', default='compute:nova:adminURL',
help='Same as nova_catalog_info, but for admin endpoint.'), help='Same as nova_catalog_info, but for admin endpoint.'),
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('nova_ca_certificates_file', cfg.StrOpt('nova_ca_certificates_file',
default=None,
help='Location of CA certificates file to use for nova client ' help='Location of CA certificates file to use for nova client '
'requests.'), 'requests.'),
cfg.BoolOpt('nova_api_insecure', cfg.BoolOpt('nova_api_insecure',

View File

@ -30,16 +30,14 @@ neutron_single_network_plugin_opts = [
help="Default Neutron network that will be used for share server " help="Default Neutron network that will be used for share server "
"creation. This opt is used only with " "creation. This opt is used only with "
"class 'NeutronSingleNetworkPlugin'.", "class 'NeutronSingleNetworkPlugin'.",
deprecated_group='DEFAULT', deprecated_group='DEFAULT'),
default=None),
cfg.StrOpt( cfg.StrOpt(
'neutron_subnet_id', 'neutron_subnet_id',
help="Default Neutron subnet that will be used for share server " help="Default Neutron subnet that will be used for share server "
"creation. Should be assigned to network defined in opt " "creation. Should be assigned to network defined in opt "
"'neutron_net_id'. This opt is used only with " "'neutron_net_id'. This opt is used only with "
"class 'NeutronSingleNetworkPlugin'.", "class 'NeutronSingleNetworkPlugin'.",
deprecated_group='DEFAULT', deprecated_group='DEFAULT'),
default=None),
] ]
CONF = cfg.CONF CONF = cfg.CONF

View File

@ -45,11 +45,9 @@ share_opts = [
help='The percentage of backend capacity reserved.'), help='The percentage of backend capacity reserved.'),
cfg.StrOpt( cfg.StrOpt(
'share_backend_name', 'share_backend_name',
default=None,
help='The backend name for a given driver implementation.'), help='The backend name for a given driver implementation.'),
cfg.StrOpt( cfg.StrOpt(
'network_config_group', 'network_config_group',
default=None,
help="Name of the configuration group in the Manila conf file " help="Name of the configuration group in the Manila conf file "
"to look for network config options." "to look for network config options."
"If not set, the share backend's config group will be used." "If not set, the share backend's config group will be used."
@ -96,18 +94,15 @@ share_opts = [
'when performing share migration (seconds).'), 'when performing share migration (seconds).'),
cfg.StrOpt( cfg.StrOpt(
'migration_mounting_backend_ip', 'migration_mounting_backend_ip',
default=None,
help="Backend IP in admin network to use for mounting " help="Backend IP in admin network to use for mounting "
"shares during migration."), "shares during migration."),
cfg.StrOpt( cfg.StrOpt(
'migration_data_copy_node_ip', 'migration_data_copy_node_ip',
default=None,
help="The IP of the node responsible for copying data during " help="The IP of the node responsible for copying data during "
"migration, such as the data copy service node, reachable by " "migration, such as the data copy service node, reachable by "
"the backend."), "the backend."),
cfg.StrOpt( cfg.StrOpt(
'migration_protocol_mount_command', 'migration_protocol_mount_command',
default=None,
help="The command for mounting shares for this backend. Must specify" help="The command for mounting shares for this backend. Must specify"
"the executable and all necessary parameters for the protocol " "the executable and all necessary parameters for the protocol "
"supported. It is advisable to separate protocols per backend."), "supported. It is advisable to separate protocols per backend."),

View File

@ -31,13 +31,10 @@ LOG = log.getLogger(__name__)
EMC_NAS_OPTS = [ EMC_NAS_OPTS = [
cfg.StrOpt('emc_nas_login', cfg.StrOpt('emc_nas_login',
default=None,
help='User name for the EMC server.'), help='User name for the EMC server.'),
cfg.StrOpt('emc_nas_password', cfg.StrOpt('emc_nas_password',
default=None,
help='Password for the EMC server.'), help='Password for the EMC server.'),
cfg.StrOpt('emc_nas_server', cfg.StrOpt('emc_nas_server',
default=None,
help='EMC server hostname or IP address.'), help='EMC server hostname or IP address.'),
cfg.IntOpt('emc_nas_server_port', cfg.IntOpt('emc_nas_server_port',
default=8080, default=8080,
@ -46,15 +43,13 @@ EMC_NAS_OPTS = [
default=True, default=True,
help='Use secure connection to server.'), help='Use secure connection to server.'),
cfg.StrOpt('emc_share_backend', cfg.StrOpt('emc_share_backend',
default=None,
help='Share backend.'), help='Share backend.'),
cfg.StrOpt('emc_nas_server_container', cfg.StrOpt('emc_nas_server_container',
default='server_2', default='server_2',
help='Container of share servers.'), help='Container of share servers.'),
cfg.StrOpt('emc_nas_pool_name', cfg.StrOpt('emc_nas_pool_name',
default=None,
help='EMC pool name.'), help='EMC pool name.'),
cfg.StrOpt('emc_nas_root_dir', default=None, cfg.StrOpt('emc_nas_root_dir',
help='The root directory where shares will be located.'), help='The root directory where shares will be located.'),
] ]

View File

@ -80,7 +80,6 @@ share_opts = [
choices=['ext4', 'ext3'], choices=['ext4', 'ext3'],
help='Filesystem type of the share volume.'), help='Filesystem type of the share volume.'),
cfg.StrOpt('cinder_volume_type', cfg.StrOpt('cinder_volume_type',
default=None,
help='Name or id of cinder volume type which will be used ' help='Name or id of cinder volume type which will be used '
'for all volumes created by driver.'), 'for all volumes created by driver.'),
] ]

View File

@ -47,13 +47,11 @@ GlusterfsManilaShare_opts = [
help='Type of NFS server that mediate access to the Gluster ' help='Type of NFS server that mediate access to the Gluster '
'volumes (Gluster or Ganesha).'), 'volumes (Gluster or Ganesha).'),
cfg.StrOpt('glusterfs_ganesha_server_ip', cfg.StrOpt('glusterfs_ganesha_server_ip',
default=None,
help="Remote Ganesha server node's IP address."), help="Remote Ganesha server node's IP address."),
cfg.StrOpt('glusterfs_ganesha_server_username', cfg.StrOpt('glusterfs_ganesha_server_username',
default='root', default='root',
help="Remote Ganesha server node's username."), help="Remote Ganesha server node's username."),
cfg.StrOpt('glusterfs_ganesha_server_password', cfg.StrOpt('glusterfs_ganesha_server_password',
default=None,
secret=True, secret=True,
help="Remote Ganesha server node's login password. " help="Remote Ganesha server node's login password. "
"This is not required if 'glusterfs_path_to_private_key'" "This is not required if 'glusterfs_path_to_private_key'"

View File

@ -34,7 +34,6 @@ LOG = log.getLogger(__name__)
glusterfs_common_opts = [ glusterfs_common_opts = [
cfg.StrOpt('glusterfs_server_password', cfg.StrOpt('glusterfs_server_password',
default=None,
secret=True, secret=True,
deprecated_name='glusterfs_native_server_password', deprecated_name='glusterfs_native_server_password',
help='Remote GlusterFS server node\'s login password. ' help='Remote GlusterFS server node\'s login password. '
@ -42,7 +41,6 @@ glusterfs_common_opts = [
'\'glusterfs_path_to_private_key\' is ' '\'glusterfs_path_to_private_key\' is '
'configured.'), 'configured.'),
cfg.StrOpt('glusterfs_path_to_private_key', cfg.StrOpt('glusterfs_path_to_private_key',
default=None,
deprecated_name='glusterfs_native_path_to_private_key', deprecated_name='glusterfs_native_path_to_private_key',
help='Path of Manila host\'s private SSH key file.'), help='Path of Manila host\'s private SSH key file.'),
] ]

View File

@ -48,7 +48,6 @@ glusterfs_volume_mapped_opts = [
'[remoteuser@]<volserver>, and they are assumed to ' '[remoteuser@]<volserver>, and they are assumed to '
'belong to distinct Gluster clusters.'), 'belong to distinct Gluster clusters.'),
cfg.StrOpt('glusterfs_volume_pattern', cfg.StrOpt('glusterfs_volume_pattern',
default=None,
help='Regular expression template used to filter ' help='Regular expression template used to filter '
'GlusterFS volumes for share creation. ' 'GlusterFS volumes for share creation. '
'The regex template can optionally (ie. with support ' 'The regex template can optionally (ie. with support '

View File

@ -45,7 +45,6 @@ LOG = log.getLogger(__name__)
hdfs_native_share_opts = [ hdfs_native_share_opts = [
cfg.StrOpt('hdfs_namenode_ip', cfg.StrOpt('hdfs_namenode_ip',
default=None,
help='The IP of the HDFS namenode.'), help='The IP of the HDFS namenode.'),
cfg.IntOpt('hdfs_namenode_port', cfg.IntOpt('hdfs_namenode_port',
default=9000, default=9000,
@ -54,15 +53,12 @@ hdfs_native_share_opts = [
default=22, default=22,
help='HDFS namenode SSH port.'), help='HDFS namenode SSH port.'),
cfg.StrOpt('hdfs_ssh_name', cfg.StrOpt('hdfs_ssh_name',
default=None,
help='HDFS namenode ssh login name.'), help='HDFS namenode ssh login name.'),
cfg.StrOpt('hdfs_ssh_pw', cfg.StrOpt('hdfs_ssh_pw',
default=None,
help='HDFS namenode SSH login password, ' help='HDFS namenode SSH login password, '
'This parameter is not necessary, if ' 'This parameter is not necessary, if '
'\'hdfs_ssh_private_key\' is configured.'), '\'hdfs_ssh_private_key\' is configured.'),
cfg.StrOpt('hdfs_ssh_private_key', cfg.StrOpt('hdfs_ssh_private_key',
default=None,
help='Path to HDFS namenode SSH private ' help='Path to HDFS namenode SSH private '
'key for login.'), 'key for login.'),
] ]

View File

@ -27,34 +27,26 @@ LOG = log.getLogger(__name__)
hds_hnas_opts = [ hds_hnas_opts = [
cfg.StrOpt('hds_hnas_ip', cfg.StrOpt('hds_hnas_ip',
default=None,
help="HNAS management interface IP for communication " help="HNAS management interface IP for communication "
"between Manila controller and HNAS."), "between Manila controller and HNAS."),
cfg.StrOpt('hds_hnas_user', cfg.StrOpt('hds_hnas_user',
default=None,
help="HNAS username Base64 String in order to perform tasks " help="HNAS username Base64 String in order to perform tasks "
"such as create file-systems and network interfaces."), "such as create file-systems and network interfaces."),
cfg.StrOpt('hds_hnas_password', cfg.StrOpt('hds_hnas_password',
default=None,
secret=True, secret=True,
help="HNAS user password. Required only if private key is not " help="HNAS user password. Required only if private key is not "
"provided."), "provided."),
cfg.StrOpt('hds_hnas_evs_id', cfg.StrOpt('hds_hnas_evs_id',
default=None,
help="Specify which EVS this backend is assigned to."), help="Specify which EVS this backend is assigned to."),
cfg.StrOpt('hds_hnas_evs_ip', cfg.StrOpt('hds_hnas_evs_ip',
default=None,
help="Specify IP for mounting shares."), help="Specify IP for mounting shares."),
cfg.StrOpt('hds_hnas_file_system_name', cfg.StrOpt('hds_hnas_file_system_name',
default=None,
help="Specify file-system name for creating shares."), help="Specify file-system name for creating shares."),
cfg.StrOpt('hds_hnas_ssh_private_key', cfg.StrOpt('hds_hnas_ssh_private_key',
default=None,
secret=True, secret=True,
help="RSA/DSA private key value used to connect into HNAS. " help="RSA/DSA private key value used to connect into HNAS. "
"Required only if password is not provided."), "Required only if password is not provided."),
cfg.StrOpt('hds_hnas_cluster_admin_ip0', cfg.StrOpt('hds_hnas_cluster_admin_ip0',
default=None,
help="The IP of the clusters admin node. Only set in HNAS " help="The IP of the clusters admin node. Only set in HNAS "
"multinode clusters."), "multinode clusters."),
cfg.IntOpt('hds_hnas_stalled_job_timeout', cfg.IntOpt('hds_hnas_stalled_job_timeout',

View File

@ -60,7 +60,6 @@ ERR_FILE_NOT_FOUND = 2
gpfs_share_opts = [ gpfs_share_opts = [
cfg.StrOpt('gpfs_share_export_ip', cfg.StrOpt('gpfs_share_export_ip',
default=None,
help='IP to be added to GPFS export string.'), help='IP to be added to GPFS export string.'),
cfg.StrOpt('gpfs_mount_point_base', cfg.StrOpt('gpfs_mount_point_base',
default='$state_path/mnt', default='$state_path/mnt',
@ -70,23 +69,19 @@ gpfs_share_opts = [
help=('NFS Server type. Valid choices are "KNFS" (kernel NFS) ' help=('NFS Server type. Valid choices are "KNFS" (kernel NFS) '
'or "GNFS" (Ganesha NFS).')), 'or "GNFS" (Ganesha NFS).')),
cfg.ListOpt('gpfs_nfs_server_list', cfg.ListOpt('gpfs_nfs_server_list',
default=None,
help=('A list of the fully qualified NFS server names that ' help=('A list of the fully qualified NFS server names that '
'make up the OpenStack Manila configuration.')), 'make up the OpenStack Manila configuration.')),
cfg.IntOpt('gpfs_ssh_port', cfg.IntOpt('gpfs_ssh_port',
default=22, default=22,
help='GPFS server SSH port.'), help='GPFS server SSH port.'),
cfg.StrOpt('gpfs_ssh_login', cfg.StrOpt('gpfs_ssh_login',
default=None,
help='GPFS server SSH login name.'), help='GPFS server SSH login name.'),
cfg.StrOpt('gpfs_ssh_password', cfg.StrOpt('gpfs_ssh_password',
default=None,
secret=True, secret=True,
help='GPFS server SSH login password. ' help='GPFS server SSH login password. '
'The password is not needed, if \'gpfs_ssh_private_key\' ' 'The password is not needed, if \'gpfs_ssh_private_key\' '
'is configured.'), 'is configured.'),
cfg.StrOpt('gpfs_ssh_private_key', cfg.StrOpt('gpfs_ssh_private_key',
default=None,
help='Path to GPFS server SSH private key for login.'), help='Path to GPFS server SSH private key for login.'),
cfg.ListOpt('gpfs_share_helpers', cfg.ListOpt('gpfs_share_helpers',
default=[ default=[

View File

@ -32,10 +32,8 @@ netapp_proxy_opts = [
netapp_connection_opts = [ netapp_connection_opts = [
cfg.StrOpt('netapp_server_hostname', cfg.StrOpt('netapp_server_hostname',
deprecated_name='netapp_nas_server_hostname', deprecated_name='netapp_nas_server_hostname',
default=None,
help='The hostname (or IP address) for the storage system.'), help='The hostname (or IP address) for the storage system.'),
cfg.IntOpt('netapp_server_port', cfg.IntOpt('netapp_server_port',
default=None,
help=('The TCP port to use for communication with the storage ' help=('The TCP port to use for communication with the storage '
'system or proxy server. If not specified, Data ONTAP ' 'system or proxy server. If not specified, Data ONTAP '
'drivers will use 80 for HTTP and 443 for HTTPS.')), ] 'drivers will use 80 for HTTP and 443 for HTTPS.')), ]
@ -51,12 +49,10 @@ netapp_transport_opts = [
netapp_basicauth_opts = [ netapp_basicauth_opts = [
cfg.StrOpt('netapp_login', cfg.StrOpt('netapp_login',
deprecated_name='netapp_nas_login', deprecated_name='netapp_nas_login',
default=None,
help=('Administrative user account name used to access the ' help=('Administrative user account name used to access the '
'storage system.')), 'storage system.')),
cfg.StrOpt('netapp_password', cfg.StrOpt('netapp_password',
deprecated_name='netapp_nas_password', deprecated_name='netapp_nas_password',
default=None,
help=('Password for the administrative user account ' help=('Password for the administrative user account '
'specified in the netapp_login option.'), 'specified in the netapp_login option.'),
secret=True), ] secret=True), ]
@ -91,7 +87,6 @@ netapp_provisioning_opts = [
netapp_cluster_opts = [ netapp_cluster_opts = [
cfg.StrOpt('netapp_vserver', cfg.StrOpt('netapp_vserver',
default=None,
help=('This option specifies the Storage Virtual Machine ' help=('This option specifies the Storage Virtual Machine '
'(i.e. Vserver) name on the storage cluster on which ' '(i.e. Vserver) name on the storage cluster on which '
'provisioning of file storage shares should occur. This ' 'provisioning of file storage shares should occur. This '
@ -102,7 +97,6 @@ netapp_cluster_opts = [
netapp_support_opts = [ netapp_support_opts = [
cfg.StrOpt('netapp_trace_flags', cfg.StrOpt('netapp_trace_flags',
default=None,
help=('Comma-separated list of options that control which ' help=('Comma-separated list of options that control which '
'trace info is written to the debug logs. Values ' 'trace info is written to the debug logs. Values '
'include method and api.')), ] 'include method and api.')), ]

View File

@ -41,7 +41,6 @@ quobyte_manila_share_opts = [
cfg.StrOpt('quobyte_api_url', cfg.StrOpt('quobyte_api_url',
help='URL of the Quobyte API server (http or https)'), help='URL of the Quobyte API server (http or https)'),
cfg.StrOpt('quobyte_api_ca', cfg.StrOpt('quobyte_api_ca',
default=None,
help='The X.509 CA file to verify the server cert.'), help='The X.509 CA file to verify the server cert.'),
cfg.BoolOpt('quobyte_delete_shares', cfg.BoolOpt('quobyte_delete_shares',
default=False, default=False,

View File

@ -125,7 +125,6 @@ common_opts = [
help="User in service instance that will be used for authentication."), help="User in service instance that will be used for authentication."),
cfg.StrOpt( cfg.StrOpt(
"service_instance_password", "service_instance_password",
default=None,
secret=True, secret=True,
help="Password for service instance user."), help="Password for service instance user."),
cfg.StrOpt( cfg.StrOpt(

View File

@ -39,7 +39,6 @@ test_service_opts = [
default="manila.tests.test_service.FakeManager", default="manila.tests.test_service.FakeManager",
help="Manager for testing"), help="Manager for testing"),
cfg.StrOpt("test_service_listen", cfg.StrOpt("test_service_listen",
default=None,
help="Host to bind test service to"), help="Host to bind test service to"),
cfg.IntOpt("test_service_listen_port", cfg.IntOpt("test_service_listen_port",
default=0, default=0,

View File

@ -64,15 +64,12 @@ socket_opts = [
help="Sets the value of TCP_KEEPCNT for each " help="Sets the value of TCP_KEEPCNT for each "
"server socket. Not supported on OS X."), "server socket. Not supported on OS X."),
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="Certificate file to use when starting " help="Certificate file to use when starting "
"the server securely."), "the server securely."),
cfg.StrOpt('ssl_key_file', cfg.StrOpt('ssl_key_file',
default=None,
help="Private key file to use when starting " help="Private key file to use when starting "
"the server securely."), "the server securely."),
] ]

View File

@ -176,6 +176,5 @@ ShareGroup = [
help="Time to wait for share migration before " help="Time to wait for share migration before "
"timing out (seconds)."), "timing out (seconds)."),
cfg.StrOpt("default_share_type_name", cfg.StrOpt("default_share_type_name",
default=None,
help="Default share type name to use in tempest tests."), help="Default share type name to use in tempest tests."),
] ]