The nova.scheduler.host_manager Module

Manage hosts in the current zone.

class HostManager

Bases: object

Base HostManager class.

get_all_host_states(context)

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.

get_filtered_hosts(hosts, filter_properties, filter_class_names=None)

Filter hosts and return only ones passing all filters.

get_weighed_hosts(hosts, weight_properties)

Weigh the hosts.

host_state_cls

alias of HostState

update_service_capabilities(service_name, host, capabilities)

Update the per-service capabilities based on this notification.

class HostState(host, node, capabilities=None, service=None)

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.

consume_from_instance(instance)

Incrementally update host state from an instance.

update_capabilities(capabilities=None, service=None)
update_from_compute_node(compute)

Update information about a host from its compute_node info.

class ReadOnlyDict(source=None)

Bases: UserDict.IterableUserDict

A read-only dict.

clear()
pop(key, *args)
popitem()
update(source=None)

Previous topic

The nova.scheduler.filters.type_filter Module

Next topic

The nova.scheduler.manager Module

This Page