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
This commit is contained in:
parent
61e2a98ed0
commit
0555ffe4b2
@ -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):
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user