summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Nemec <bnemec@redhat.com>2017-10-03 02:13:03 +0000
committerBen Nemec <bnemec@redhat.com>2017-10-06 20:04:34 +0000
commitd925e112b5e4353fa07704c1468a38785ce817d7 (patch)
tree20eb377156586780e927c23e98093284ef5e963c
parenta9d10d33cd51387df78a551a4c85fd24a0539e28 (diff)
downloadoslo-messaging-d925e112b5e4353fa07704c1468a38785ce817d7.tar.gz
Flesh out transport_url help
This is a complicated config opt and the single line help text doesn't provide anywhere near enough detail for a user to properly configure it. This change adds the expected format from the TransportURL docstring and leaves a link to the docs for that class since the full details are probably too verbose to put in the help text in their entirety. Change-Id: I66122bf9c619d35bcb3caadfde9c0dcdb5cd9095
-rw-r--r--oslo_messaging/transport.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/oslo_messaging/transport.py b/oslo_messaging/transport.py
index c2d0e25..c9eddbc 100644
--- a/oslo_messaging/transport.py
+++ b/oslo_messaging/transport.py
@@ -43,8 +43,16 @@ LOG = logging.getLogger(__name__)
_transport_opts = [
cfg.StrOpt('transport_url',
secret=True,
- help='A URL representing the messaging driver to use and its '
- 'full configuration.'),
+ help='The network address and optional user credentials for '
+ 'connecting to the messaging backend, in URL format. The '
+ 'expected format is:\n\n'
+ 'driver://[user:pass@]host:port[,[userN:passN@]hostN:'
+ 'portN]/virtual_host?query\n\n'
+ 'Example: rabbit://rabbitmq:password@127.0.0.1:5672//\n\n'
+ 'For full details on the fields in the URL see the '
+ 'documentation of oslo_messaging.TransportURL at '
+ 'https://docs.openstack.org/oslo.messaging/latest/'
+ 'reference/transport.html'),
cfg.StrOpt('rpc_backend',
deprecated_for_removal=True,
deprecated_reason="Replaced by [DEFAULT]/transport_url",
@@ -283,11 +291,11 @@ class TransportURL(object):
Transport URLs take the form::
- scheme://[user:pass@]host:port[,[userN:passN@]hostN:portN]/virtual_host?query
+ driver://[user:pass@]host:port[,[userN:passN@]hostN:portN]/virtual_host?query
where:
- scheme
+ driver
Specifies the transport driver to use. Typically this is `rabbit` for the
RabbitMQ broker. See the documentation for other available transport
drivers.