This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.scheduler.zone_manager Module

ZoneManager oversees all communications with child Zones.

class nova.scheduler.zone_manager.ZoneManager

Bases: object

Keeps the zone states updated.

delete_expired_host_services(host_services_dict)

Delete all the inactive host services information.

get_host_list()

Returns a list of dicts for each host that the Zone Manager knows about. Each dict contains the host_name and the service for that host.

get_zone_capabilities(context)

Roll up all the individual host info to generic ‘service’ capabilities. Each capability is aggregated into <cap>_min and <cap>_max values.

get_zone_list()

Return the list of zones we know about.

host_service_caps_stale(host, service)

Check if host service capabilites are not recent enough.

ping(context=None)

Ping should be called periodically to update zone status.

update_service_capabilities(service_name, host, capabilities)

Update the per-service capabilities based on this notification.

class nova.scheduler.zone_manager.ZoneState

Bases: object

Holds the state of all connected child zones.

log_error(exception)

Something went wrong. Check to see if zone should be marked as offline.

to_dict()
update_credentials(zone)

Update zone credentials from db

update_metadata(zone_metadata)

Update zone metadata after successful communications with child zone.