blazar/blazar/utils/openstack
Tetsuro Nakamura 5e114768a3 Adds subnormal path for placement client (1)
We start to support placement api from Stein, so there are cases where
the child resource provider of a host doesn't exist if the host has
been created in blazar before Rocky release.

This patch changes the placement client code to be aware of the cases.
Namely, in cases the resource provider is not found,

- Change get_resource_provider() to return None
- Change delete_reservation_provider() to skip the operation
- Change update_reservation_inventory() to create the resource provider
- Change delete_reservation_inventory() to raise an error

Change-Id: I82abbc73f69f4036f60b7c549c1cbd0c0b91a130
Blueprint: placement-api
2018-10-19 11:35:25 +09:00
..
__init__.py Migrate climate namespace to blazar 2017-03-02 09:36:14 +00:00
base.py Add support for multi-region deployments 2017-10-03 13:01:13 +01:00
exceptions.py Add update/delete resource inventory 2018-10-19 11:35:12 +09:00
keystone.py Add support for multi-region deployments 2017-10-03 13:01:13 +01:00
nova.py Support nova compute-api microversion '2.53' 2018-07-18 00:50:42 +00:00
placement.py Adds subnormal path for placement client (1) 2018-10-19 11:35:25 +09:00