neutron-lib/releasenotes/notes/change_placement_client_method_names_b26bb71425f42db3.yaml
Lajos Katona f0a9959a7f Fix placement calls in placement client
Based on the placement api-ref fix the already implemented placement API
calls in the placement client of neutron-lib.

Fixed/changed parts:
- Add version header to create_resource_provider
- Change create_inventory to update_resource_provider_inventories, as
the http request is a PUT not a POST, and add exception to handle the
case when the rp is not found.
- Change update_inventory to update_resource_provider_inventory, to make
the method name in sync with placement API ref.
- Fix the failing unit tests, and cover the negative case for
update_resource_provider_inventories.

Change-Id: I336c57e734f91795038c5ba9074970d1f5522da2
Related-Bug: #1578989
2018-04-18 12:59:27 +02:00

20 lines
867 B
YAML

---
prelude: >
Change create_inventory in placement client to
update_resource_provider_inventories and update_inventory to
update_resource_provider_inventory
issues:
- Placement API has no POST method for creating resource provider inventories
but instead has PUT to update the inventories of a resource provider.
- Placement API has method to update the inventory for a given
resource_provider.
fixes:
- Change the method name create_inventory in clients/placement.py to
update_resource_provider_inventories as that represents what is on the
placement side.
- Change the POST call to /resource_providers/{uuid}/inventories to
PUT.
- Change the method name update_inventory in clients/placement.py to
update_resource_provider_inventory as that represents that the method
updates the inventory of a resource_provider.