1a072eab33
This change moves the exceptions raised within the placement service into the nova.api.openstack.placement package. This is part of the process of unifying all placement code into one subdirectory so that a future lift and shift is easier and cleaner. This is mostly a straightforward change of imports and a moving of existing exceptions in the placements handlers and objects with a few caveats: * Dealing with nova/db/sqlalchemy/resource_class_cache.py has not yet been accomplished, so it remains where it is and imports exceptions from the placement hierarchy. A TODO indicating some of the options is left for future work. * Exceptions with the name ResourceProviderInUse and InventoryInUse are used on both sides of the nova/placement interaction. This is noted with comments in both nova/exception.py and placement/exception.py. * test_report_client.py has had a TODO added to make it clear that the exceptions it uses are nova-side, and perhaps the test file should be moved. * The base class of the original exceptions, NoveException, does a bit more than is required on the placement side so a new private class _BaseException is created which removes support for handling 'code'. This is not required because all exceptions in placement are supposed to be manually caught in handlers and explicitly transformed into http exceptions. blueprint placement-extract Change-Id: I2b94945a0963d6a61af931505b69afe2d4733759 |
||
---|---|---|
.. | ||
ec2 | ||
metadata | ||
openstack | ||
validation | ||
__init__.py | ||
auth.py | ||
compute_req_id.py | ||
manager.py | ||
wsgi.py |