
/reshaper provides a way to atomically modify some allocations and inventory in a single transaction, allowing operations like migrating some inventory from a parent provider to a new child. A fair amount of code is reused from handler/inventory.py, some refactoring is in order before things get too far with that. In handler/allocation.py some code is extracted to its own methods so it can be reused from reshaper.py. This is done as microversion 1.30. A suite of gabbi tests is provided which attempt to cover various failures including schema violations, generation conflicts, and data conflicts. api-ref, release notes and rest history are updated Change-Id: I5b33ac3572bc3789878174ffc86ca42ae8035cfa Partially-Implements: blueprint reshape-provider-tree
34 lines
1.0 KiB
ReStructuredText
34 lines
1.0 KiB
ReStructuredText
:tocdepth: 2
|
|
|
|
===============
|
|
Placement API
|
|
===============
|
|
|
|
This is a reference for the OpenStack Placement API. To learn more about
|
|
OpenStack Placement API concepts, please refer to the :nova-doc:`Placement
|
|
Introduction <user/placement.html>`.
|
|
|
|
The Placement API uses JSON for data exchange. As such, the ``Content-Type``
|
|
header for APIs sending data payloads in the request body (i.e. ``PUT`` and
|
|
``POST``) must be set to ``application/json`` unless otherwise noted.
|
|
|
|
.. rest_expand_all::
|
|
|
|
.. include:: request-ids.inc
|
|
.. include:: root.inc
|
|
.. include:: resource_providers.inc
|
|
.. include:: resource_provider.inc
|
|
.. include:: resource_classes.inc
|
|
.. include:: resource_class.inc
|
|
.. include:: inventories.inc
|
|
.. include:: inventory.inc
|
|
.. include:: aggregates.inc
|
|
.. include:: traits.inc
|
|
.. include:: resource_provider_traits.inc
|
|
.. include:: allocations.inc
|
|
.. include:: resource_provider_allocations.inc
|
|
.. include:: usages.inc
|
|
.. include:: resource_provider_usages.inc
|
|
.. include:: allocation_candidates.inc
|
|
.. include:: reshaper.inc
|