[Openstack] Deploying to a specific host using scheduler_hints

Joe D'Andrea jdandrea at research.att.com
Wed Jul 23 20:23:21 UTC 2014


I have a need to deploy a given VM on a specific host in my OpenStack Icehouse cluster, bypassing availability zones entirely.

To help with this, I've attempted the following:

1. Created Host Aggregate. Each contains a single host and metadata of the form 'host=hostname' (e.g., 'host=myhost').

2. Edited nova.conf to include the following (and restarted nova-schedule):

scheduler_default_filters = AggregateInstanceExtraSpecsFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter

Reference:

http://docs.openstack.org/icehouse/config-reference/content/section_compute-scheduler.html#d6e8083

3. In my Heat template's OS::Nova::Server properties, I've added:

scheduler_hints: {host: myhost}

4. In my Heat template's outputs, I've added:

host:
  description: The host myserver resides on.
  value: {get_attr: [myserver, show, 'OS-EXT-SRV-ATTR:host']}

When I try this, it doesn't seem to have any effect on the host selected.

I suspect pilot error, perhaps in the scheduler_hints step?

Clues welcome/appreciated!

jd



More information about the Openstack mailing list