The nova.scheduler.client.query Module

class SchedulerQueryClient

Bases: object

Client class for querying to the scheduler.

delete_aggregate(context, aggregate)

Deletes HostManager internal information about a specific aggregate.

Parameters:aggregate (nova.objects.Aggregate) – Aggregate to delete
delete_instance_info(context, host_name, instance_uuid)

Updates the HostManager with the current information about an instance that has been deleted on a host.

Parameters:
  • context – local context
  • host_name – name of host sending the update
  • instance_uuid – the uuid of the deleted instance
select_destinations(context, spec_obj)

Returns destinations(s) best suited for this request_spec and filter_properties.

The result should be a list of dicts with ‘host’, ‘nodename’ and ‘limits’ as keys.

sync_instance_info(context, host_name, instance_uuids)

Notifies the HostManager of the current instances on a host by sending a list of the uuids for those instances. The HostManager can then compare that with its in-memory view of the instances to detect when they are out of sync.

Parameters:
  • context – local context
  • host_name – name of host sending the update
  • instance_uuids – a list of UUID strings representing the current instances on the specified host
update_aggregates(context, aggregates)

Updates HostManager internal aggregates information.

Parameters:aggregates (nova.objects.Aggregate or nova.objects.AggregateList) – Aggregate(s) to update
update_instance_info(context, host_name, instance_info)

Updates the HostManager with the current information about the instances on a host.

Parameters:
  • context – local context
  • host_name – name of host sending the update
  • instance_info – an InstanceList object.

Previous topic

The nova.scheduler.chance Module

Next topic

The nova.scheduler.client.report Module

Project Source

This Page