Claim objects for use with resource tracking.
Bases: nova.compute.claims.NopClaim
A declaration that a compute host operation will require free resources. Claims serve as marker objects that resources are being held until the update_available_resource audit process runs to do a full reconciliation of resource usage.
This information will be used to help keep the local compute hosts’s ComputeNode model in sync to aid the scheduler in making efficient / more correct decisions with respect to host selection.
Compute operation requiring claimed resources has failed or been aborted.
Test if this claim can be satisfied given available resources and optional oversubscription limits
This should be called before the compute node actually consumes the resources required to execute the claim.
Parameters: | resources – available local compute node resources |
---|---|
Returns: | Return true if resources are available to claim. |