The nova.compute.claims Module

Claim objects for use with resource tracking.

class Claim(instance, tracker)

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.

abort(*args, **kwargs)

Compute operation requiring claimed resources has failed or been aborted.

disk_gb
memory_mb
test(resources, limits=None)

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.
vcpus
class NopClaim(migration=None)

Bases: object

For use with compute drivers that do not support resource tracking.

abort()
disk_gb
memory_mb
vcpus
class ResizeClaim(instance, instance_type, tracker)

Bases: nova.compute.claims.Claim

Claim used for holding resources for an incoming resize/migration operation.

abort(*args, **kwargs)

Compute operation requiring claimed resources has failed or been aborted.

disk_gb
memory_mb
vcpus

Previous topic

The nova.compute.cells_api Module

Next topic

The nova.compute.instance_actions Module

This Page