Nova Create Notifications to contain Scheduler Hints

Registered by Julian Sy

Creating Nova Servers should emit Nova Notifications that contain scheduler hint information.

One use case would be Heat's stack_scheduler_hints. Currently, when the Heat configuration stack_scheduler_hints is set to True, Heat's scheduler hints are sent to Nova. However, Nova notifications don't have this information available.

An enhancement for Nova Notifications would be to include in the notification scheduler hint information that is passed into Nova. This could be done by either extending the VM metadata or creating a new section specifically for scheduler hints.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Julian Sy
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

I don't think Nova should be looking for specific Heat scheduler hints and including those in notifications. Making this generic is probably the only way, which probably means getting scheduler hints in general included in the server create notifications. -- mriedem 20160328

Extending compute.instance.create notification should be done after it is transformed to the new versioned notification framework. The spec https://review.openstack.org/#/c/286675/4/specs/newton/approved/versioned-notification-transformation.rst proposes the compute.instance.delete transformation first as it used the most. However after that the compute.instance.create wouldn't be hard to do. -- gibi 20160329

Gerrit topic: https://review.openstack.org/#q,topic:bp/nova-create-notification-scheduler-hints,n,z

Addressed by: https://review.openstack.org/312169
    Creating Nova Servers should emit Nova Notifications that contain scheduler hint information.

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.