From 29eaf4ef716b954f6b32f0563ff03bf7f486c75c Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Thu, 19 Jan 2023 20:25:47 +0000 Subject: [PATCH] Use new get_rpc_client API from oslo.messaging Use the new API that is consistent with the existing API instead of instantiating the client class directly. This was introduced in release 14.1.0 here [1] and added into oslo.messaging here [2] [1] https://review.opendev.org/c/openstack/requirements/+/869340 [2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419 Change-Id: Ia48de36e3cb97378785bb4946b1a387c0da1ff81 --- heat/common/messaging.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/heat/common/messaging.py b/heat/common/messaging.py index 44ef904f56..8c93070344 100644 --- a/heat/common/messaging.py +++ b/heat/common/messaging.py @@ -136,8 +136,8 @@ def get_rpc_client(**kwargs): target = oslo_messaging.Target(**kwargs) serializer = RequestContextSerializer( oslo_messaging.JsonPayloadSerializer()) - return oslo_messaging.RPCClient(TRANSPORT, target, - serializer=serializer) + return oslo_messaging.get_rpc_client( + TRANSPORT, target, serializer=serializer) def get_notifier(publisher_id): diff --git a/requirements.txt b/requirements.txt index 457724754b..91a743ba8e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -26,7 +26,7 @@ oslo.context>=2.22.0 # Apache-2.0 oslo.db>=6.0.0 # Apache-2.0 oslo.i18n>=3.20.0 # Apache-2.0 oslo.log>=4.3.0 # Apache-2.0 -oslo.messaging>=5.29.0 # Apache-2.0 +oslo.messaging>=14.1.0 # Apache-2.0 oslo.middleware>=3.31.0 # Apache-2.0 oslo.policy>=3.7.0 # Apache-2.0 oslo.reports>=1.18.0 # Apache-2.0