summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-08-15 16:42:20 +0000
committerGerrit Code Review <review@openstack.org>2016-08-15 16:42:20 +0000
commit5de30fe644c7809a63ee4971373a6858dd44e57f (patch)
treeea675e5caaa028b222bbcb8c388e1073635468a0
parent28009baa2202387d5ba43f04d86a689068529adb (diff)
parentfe58b4b0495241d06e4fddac28e2d41cdf8e6097 (diff)
downloadglance_store-5de30fe644c7809a63ee4971373a6858dd44e57f.tar.gz
Merge "Improve the help text for Swift driver opts"
-rw-r--r--glance_store/_drivers/swift/store.py76
1 files changed, 65 insertions, 11 deletions
diff --git a/glance_store/_drivers/swift/store.py b/glance_store/_drivers/swift/store.py
index 5ef0a20..6e2f817 100644
--- a/glance_store/_drivers/swift/store.py
+++ b/glance_store/_drivers/swift/store.py
@@ -56,11 +56,38 @@ ONE_MB = units.k * units.Ki # Here we used the mixed meaning of MB
_SWIFT_OPTS = [
cfg.BoolOpt('swift_store_auth_insecure', default=False,
- help=_('If True, swiftclient won\'t check for a valid SSL '
- 'certificate when authenticating.')),
+ help=_("""
+Set verification of the server certificate.
+
+This boolean determines whether or not to verify the server
+certificate. If this option is set to True, swiftclient won't check
+for a valid SSL certificate when authenticating. If the option is set
+to False, then the default CA truststore is used for verification.
+
+Possible values:
+ * True
+ * False
+
+Related options:
+ * swift_store_cacert
+
+""")),
cfg.StrOpt('swift_store_cacert',
- help=_('A string giving the CA certificate file to use in '
- 'SSL connections for verifying certs.')),
+ sample_default='/etc/ssl/certs/ca-certificates.crt',
+ help=_("""
+Path to the CA bundle file.
+
+This configuration option enables the operator to specify the path to
+a custom Certificate Authority file for SSL verification when
+connecting to Swift.
+
+Possible values:
+ * A valid path to a CA file
+
+Related options:
+ * swift_store_auth_insecure
+
+""")),
cfg.StrOpt('swift_store_region',
help=_('The region of the swift endpoint to be used for '
'single tenant. This setting is only necessary if the '
@@ -70,10 +97,25 @@ _SWIFT_OPTS = [
'None, the storage url from the auth response will be '
'used.')),
cfg.StrOpt('swift_store_endpoint_type', default='publicURL',
- help=_('A string giving the endpoint type of the swift '
- 'service to use (publicURL, adminURL or internalURL). '
- 'This setting is only used if swift_store_auth_version '
- 'is 2.')),
+ choices=('publicURL', 'adminURL', 'internalURL'),
+ help=_("""
+Endpoint Type of Swift service.
+
+This string value indicates the endpoint type to use to fetch the
+Swift endpoint. The endpoint type determines the actions the user will
+be allowed to perform, for instance, reading and writing to the Store.
+This setting is only used if swift_store_auth_version is greater than
+1.
+
+Possible values:
+ * publicURL
+ * adminURL
+ * internalURL
+
+Related options:
+ * swift_store_endpoint
+
+""")),
cfg.StrOpt('swift_store_service_type', default='object-store',
help=_('A string giving the service type of the swift service '
'to use. This setting is only used if '
@@ -227,9 +269,21 @@ Related options:
""")),
cfg.ListOpt('swift_store_admin_tenants', default=[],
- help=_('A list of tenants that will be granted read/write '
- 'access on all Swift containers created by Glance in '
- 'multi-tenant mode.')),
+ help=_("""
+List of tenants that will be granted admin access.
+
+This is a list of tenants that will be granted read/write access on
+all Swift containers created by Glance in multi-tenant mode. The
+default value is an empty list.
+
+Possible values:
+ * A comma separated list of strings representing UUIDs of Keystone
+ projects/tenants
+
+Related options:
+ * None
+
+""")),
cfg.BoolOpt('swift_store_ssl_compression', default=True,
help=_('If set to False, disables SSL layer compression of '
'https swift requests. Setting to False may improve '