Persist scheduler hints for vm instance

Registered by Guangya Liu (Jay Lau)

When creating VMs with scheduler hints, scheduler hints will only take effect at deploying time. After the VM was deployed, scheduler hints will be lost.

Later on when someone try to migrate the VM, this VM can be migrated to a host which might violated the original scheduler hints. Same problems also exist for resize, cold migration etc.

A proposed solution was store scheduler hints so that it can be available for the whole life cycle of the VM instance, this can make sure the VM can retrieve and evaluate the scheduler hints before doing some VM operations so as to make sure the VM will always obey its scheduler hints during its life cycle.

This blueprint was mainly for persisting the scheduler hints to nova instance database and also enable "nova show" can list the scheduler hints.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Guangya Liu (Jay Lau)
Direction:
Needs approval
Assignee:
Alex Xu
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

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

Addressed by: https://review.openstack.org/88983
    Persist scheduler hints

Spec not approved yet, un-targeting blueprint from juno-1 --johnthetubaguy (28th May 2014)

You should not set a milestone target unless the blueprint has been properly prioritized by the project drivers.

Addressed by: https://review.openstack.org/134142
    Add scheduler_hints column in instance_extra table

Addressed by: https://review.openstack.org/134143
    Add scheduler_hints field into Instance object

Gerrit topic: https://review.openstack.org/#q,topic:bp/assign-new-scheduler-hints,n,z

Gerrit topic: https://review.openstack.org/#q,topic:bp/fix-race-when-migration-with-server-group,n,z

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.