The nova.scheduler.baremetal_host_manager Module

Manage hosts in the current zone.

class BaremetalHostManager

Bases: nova.scheduler.host_manager.HostManager

Bare-Metal HostManager class.

host_state_cls(host, node, capabilities=None, service=None)

Returns an instance of BaremetalHostState or HostState according to capabilities. If ‘baremetal_driver’ is in capabilities, it returns an instance of BaremetalHostState. If not, returns an instance of HostState.

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

Bases: nova.scheduler.host_manager.HostState

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)
update_from_compute_node(compute)

Update information about a host from its compute_node info.

new_host_state(self, host, node, capabilities=None, service=None)

Returns an instance of BaremetalHostState or HostState according to capabilities. If ‘baremetal_driver’ is in capabilities, it returns an instance of BaremetalHostState. If not, returns an instance of HostState.

Previous topic

The nova.safe_utils Module

Next topic

The nova.scheduler.chance Module

This Page