This Page

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

The nova.scheduler.manager Module

Scheduler Service

class nova.scheduler.manager.SchedulerManager(scheduler_driver=None, *args, **kwargs)

Bases: nova.manager.Manager

Chooses a host to run instances on.

get_zone_capabilities(context=None, service=None)

Get the normalized set of capabilites for this zone, or for a particular service.

get_zone_list(context=None)

Get a list of zones from the ZoneManager.

periodic_tasks(context=None)

Poll child zones periodically to get status.

show_host_resources(context, host, *args)

Shows the physical/usage resource given by hosts.

Parameters:
  • context – security context
  • host – hostname
Returns:

example format is below. {‘resource’:D, ‘usage’:{proj_id1:D, proj_id2:D}} D: {‘vcpus’:3, ‘memory_mb’:2048, ‘local_gb’:2048}

update_service_capabilities(context=None, service_name=None, host=None, capabilities={})

Process a capability update from a service node.