From 0555ffe4b2f5f6dad8380aa4d79129caa09cdac1 Mon Sep 17 00:00:00 2001 From: Lajos Katona Date: Mon, 3 Sep 2018 14:32:00 +0200 Subject: [PATCH] Fix placement_client max microversion Placement introduced the json body response for resource provider creation from microversion 1.20. As the client introduced in neutron_lib uses the returned body (see: https://review.openstack.org/589749) the used maximum microversion must be bumped as well. Change-Id: I71a723a95fb407a97aa6793beb965ae7be1769a7 --- neutron_lib/placement/client.py | 3 ++- ...p-latest-supported-version-to-1-20-fe96751dab42399b.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/placement-client-bump-latest-supported-version-to-1-20-fe96751dab42399b.yaml diff --git a/neutron_lib/placement/client.py b/neutron_lib/placement/client.py index e50a3bbfe..790c312a3 100644 --- a/neutron_lib/placement/client.py +++ b/neutron_lib/placement/client.py @@ -31,7 +31,8 @@ LOG = logging.getLogger(__name__) API_VERSION_REQUEST_HEADER = 'OpenStack-API-Version' PLACEMENT_API_WITH_MEMBER_OF = 'placement 1.3' PLACEMENT_API_WITH_NESTED_RESOURCES = 'placement 1.14' -PLACEMENT_API_LATEST_SUPPORTED = PLACEMENT_API_WITH_NESTED_RESOURCES +PLACEMENT_API_RETURN_PROVIDER_BODY = 'placement 1.20' +PLACEMENT_API_LATEST_SUPPORTED = PLACEMENT_API_RETURN_PROVIDER_BODY def _check_placement_api_available(f): diff --git a/releasenotes/notes/placement-client-bump-latest-supported-version-to-1-20-fe96751dab42399b.yaml b/releasenotes/notes/placement-client-bump-latest-supported-version-to-1-20-fe96751dab42399b.yaml new file mode 100644 index 000000000..da57cd0a4 --- /dev/null +++ b/releasenotes/notes/placement-client-bump-latest-supported-version-to-1-20-fe96751dab42399b.yaml @@ -0,0 +1,6 @@ +--- +other: + - | + Bump ``PlacementAPIClient's`` max supported microversion to ``1.20``, + as from that microversion placement API returns json body for + POST /resource_providers.