diff --git a/ironic/common/rpc.py b/ironic/common/rpc.py index 285ee1f06a..710c7a943b 100644 --- a/ironic/common/rpc.py +++ b/ironic/common/rpc.py @@ -122,10 +122,9 @@ def get_transport_url(url_str=None): def get_client(target, version_cap=None, serializer=None): assert TRANSPORT is not None serializer = RequestContextSerializer(serializer) - return messaging.RPCClient(TRANSPORT, - target, - version_cap=version_cap, - serializer=serializer) + return messaging.get_rpc_client( + TRANSPORT, target, version_cap=version_cap, + serializer=serializer) def get_server(target, endpoints, serializer=None): diff --git a/requirements.txt b/requirements.txt index 8a57727ecf..0c73e632e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -39,7 +39,7 @@ rfc3986>=1.2.0 # Apache-2.0 jsonpatch!=1.20,>=1.16 # BSD Jinja2>=3.0.0 # BSD License (3 clause) keystonemiddleware>=9.5.0 # Apache-2.0 -oslo.messaging>=5.29.0 # Apache-2.0 +oslo.messaging>=14.1.0 # Apache-2.0 tenacity>=6.2.0 # Apache-2.0 oslo.versionedobjects>=1.31.2 # Apache-2.0 jsonschema>=3.2.0 # MIT