The cinder.scheduler.host_manager Module

Manage hosts in the current zone.

class HostManager

Bases: object

Base HostManager class.

get_all_host_states(context)

Returns a dict of all the hosts the HostManager knows about.

Each of the consumable resources in HostState are populated with capabilities scheduler received from RPC.

For example:
{‘192.168.1.100’: HostState(), ...}
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, weigher_class_names=None)

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, capabilities=None, service=None)

Bases: object

Mutable and immutable information tracked for a host.

consume_from_volume(volume)

Incrementally update host state from an volume.

update_capabilities(capabilities=None, service=None)
update_from_volume_capability(capability)

Update information about a host from its volume_node info.

class ReadOnlyDict(source=None)

Bases: UserDict.IterableUserDict

A read-only dict.

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

Previous topic

The cinder.scheduler.flows.create_volume Module

Next topic

The cinder.scheduler.manager Module

This Page