Passing stack ID from heat to nova-scheduler.

Registered by Kamil Gardziejczyk on 2013-03-02

Nova-scheduler should be aware of stack which is taking a create action on the VM. Stack ID generated by heat could be passed as a scheduler hint to nova-scheduler.
filter_properties:{
               'scheduler_hints': {
               'stack_id': 8c19174f-4220-44f0-824a-cd1eeef10287
}
}

More about Filter Scheduler hints:
http://docs.openstack.org/trunk/openstack-compute/admin/content/scheduler-filters.html
Example of use:
http://docs.openstack.org/trunk/openstack-compute/admin/content/differenthostfilter.html

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Steve Baker on 2013-11-20

Related branches

Whiteboard

Just a comment:

we do support nova hints now, see:
https://github.com/openstack/heat/blob/master/templates/InstanceGroup.template#L49

So you could achieve what you are after with:

"NovaSchedulerHints": [ {"Key": "stack_id", "Value": {"Ref": "AWS::StackId"}}],

shardy: I think what is actually desired here is to pass the *instance* ID to nova via NovaSchedulerHints - we support this for individual instance resources via Ref, but not for InstanceGroups or AutoScalingGroups (which based on the differenthostfilter example above is likely to be what the reporter wants?)

(stevebaker) OS::Nova::Server already has a scheduler_hints property

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.