From b09f5c0bf02d4740f127276b165cdcfa209c18d9 Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Thu, 24 Feb 2022 16:10:07 -0600 Subject: [PATCH] Update oslo messaging get_transport oslo_messaging.get_transport is currently deprecated. This change moves the health prove to use get_notification_transport instead. Change-Id: Iea7c914b41dec70b36ebe93fa8ce91e00894f50e --- nova/Chart.yaml | 2 +- nova/templates/bin/_health-probe.py.tpl | 2 +- releasenotes/notes/nova.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nova/Chart.yaml b/nova/Chart.yaml index 311370bd88..e3f25fc40d 100644 --- a/nova/Chart.yaml +++ b/nova/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Nova name: nova -version: 0.2.30 +version: 0.2.31 home: https://docs.openstack.org/nova/latest/ icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png sources: diff --git a/nova/templates/bin/_health-probe.py.tpl b/nova/templates/bin/_health-probe.py.tpl index 393d3067d3..0185319ac0 100644 --- a/nova/templates/bin/_health-probe.py.tpl +++ b/nova/templates/bin/_health-probe.py.tpl @@ -200,7 +200,7 @@ def test_rpc_liveness(): log.logging.basicConfig(level=log.{{ .Values.health_probe.logging.level }}) try: - transport = oslo_messaging.get_transport(cfg.CONF) + transport = oslo_messaging.get_notification_transport(cfg.CONF) except Exception as ex: message = getattr(ex, "message", str(ex)) sys.stderr.write("Message bus driver load error: %s" % message) diff --git a/releasenotes/notes/nova.yaml b/releasenotes/notes/nova.yaml index f51e1942ee..775ffc656d 100644 --- a/releasenotes/notes/nova.yaml +++ b/releasenotes/notes/nova.yaml @@ -51,4 +51,5 @@ nova: - 0.2.28 Move ssl_minimum_version to console section - 0.2.29 Remove ssh-config - 0.2.30 Improve health probe logging + - 0.2.31 Update oslo messaging get_transport ...