Functionality related to allocations.
ironic.conductor.allocations.backfill_allocation(context, allocation, node_id)[source]¶Assign the previously allocated node to the node allocation.
This is not the actual allocation process, but merely backfilling of allocation_uuid for a previously allocated node.
| Parameters: |
|
|---|---|
| Raises: | AllocationFailed if the node does not match the allocation |
| Raises: | NodeAssociated if the node is already associated with another instance or allocation. |
| Raises: | InstanceAssociated if the allocation’s UUID is already used on another node as instance_uuid. |
| Raises: | NodeNotFound if the node with the provided ID cannot be found. |
ironic.conductor.allocations.do_allocate(context, allocation)[source]¶Process the allocation.
This call runs in a separate thread on a conductor. It finds suitable nodes for the allocation and reserves one of them.
This call does not raise exceptions since it’s designed to work asynchronously.
| Parameters: |
|
|---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.