← Back to team overview

openstack team mailing list archive

How to use nova.scheduler.rpcapi:SchedulerAPI.select_hosts?

 

Hi,
  guys. the prototype of select_hosts is
  def select_hosts(self, ctxt, request_spec, filter_properties):
     ....

   1 I want to use this method to get a live,
can-accept-instances-to-evacuate, compute node.
      Is scheduler can meet my request?
   2 what's the format of parameter request_spec?

Thanks