Manage hosts in the current zone.
Bases: object
Base HostManager class.
Deletes internal HostManager information about a specific aggregate.
Receives the UUID from a compute node when one of its instances is terminated.
The instance in the local view of the host’s instances is removed.
Returns a list of HostStates that represents all the hosts the HostManager knows about. Also, each of the consumable resources in HostState are pre-populated and adjusted based on data in the db.
Filter hosts and return only ones passing all filters.
Weigh the hosts.
Receives the uuids of the instances on a host.
This method is periodically called by the compute nodes, which send a list of all the UUID values for the instances on that node. This is used by the scheduler’s HostManager to detect when its view of the compute node’s instances is out of sync.
Updates internal HostManager information about aggregates.
Receives an InstanceList object from a compute node.
This method receives information from a compute node when it starts up, or when its instances have changed, and updates its view of hosts and instances with it.
Bases: object
Mutable and immutable information tracked for a host. This is an attempt to remove the ad-hoc data structures previously used and lock down access.
Incrementally update host state from a RequestSpec object.
Update all information about a host.
Bases: UserDict.IterableUserDict
A read-only dict.
Set updated time of HostState when consuming succeed.