diff --git a/ceilometer/messaging.py b/ceilometer/messaging.py index 8f8211bede..8c14731426 100644 --- a/ceilometer/messaging.py +++ b/ceilometer/messaging.py @@ -14,6 +14,7 @@ # under the License. import oslo_messaging +from oslo_messaging.notify import notifier from oslo_messaging import serializer as oslo_serializer DEFAULT_URL = "__default__" @@ -31,7 +32,7 @@ def get_transport(conf, url=None, optional=False, cache=True): transport = TRANSPORTS.get(cache_key) if not transport or not cache: try: - transport = oslo_messaging.get_transport(conf, url) + transport = notifier.get_notification_transport(conf, url) except (oslo_messaging.InvalidTransportURL, oslo_messaging.DriverLoadFailure): if not optional or url: diff --git a/releasenotes/notes/use-notification-transport-url-489f3d31dc66c4d2.yaml b/releasenotes/notes/use-notification-transport-url-489f3d31dc66c4d2.yaml new file mode 100644 index 0000000000..81c15aedbd --- /dev/null +++ b/releasenotes/notes/use-notification-transport-url-489f3d31dc66c4d2.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - The transport_url defined in [oslo_messaging_notifications] was never used, + which contradicts the oslo_messaging documentation. This is now fixed. \ No newline at end of file