Placement api: 404 response do not indicate what was not found
Add informative messages to the 404 error response from
nova/objects/resource_provider.py
For the method _update_inventory_in_db() from resource_provider.py,
gabbi test validation is not added since it is not being used and
from the placement API you create an inventory but then call
set_inventory or add_inventory on a resource_provider.
Similar change, i.e. adding informative messages to 404 error can be
done for api tests from inventory.yaml and usage.yaml
It includes adding informative logging in code for 404 exceptions and
adding gabbi tests for those.
This can be done in follow up patch.
Reviewed: https:/ /review. openstack. org/387674 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f87af91d90f 8f1322e92f9bc4d 198a83162bb118
Committed: https:/
Submitter: Jenkins
Branch: master
commit f87af91d90f8f13 22e92f9bc4d198a 83162bb118
Author: Pushkar Umaranikar <email address hidden>
Date: Mon Oct 17 20:42:43 2016 +0000
Placement api: 404 response do not indicate what was not found
Add informative messages to the 404 error response from objects/ resource_ provider. py
nova/
For the method _update_ inventory_ in_db() from resource_ provider. py,
gabbi test validation is not added since it is not being used and
from the placement API you create an inventory but then call
set_inventory or add_inventory on a resource_provider.
Similar change, i.e. adding informative messages to 404 error can be
done for api tests from inventory.yaml and usage.yaml
It includes adding informative logging in code for 404 exceptions and
adding gabbi tests for those.
This can be done in follow up patch.
Change-Id: If53f84ac5f7521 e9926b97bdcce3c f77ec5b4ffd
Closes-Bug: #1634115