add local-to-instance to create server api

Registered by ZhangNi

There is a usecase, user uses "block_device_mapping" to create a volume along with creating a instance, and for high performance user wants the volume created in the same host with instance.

Currently, there is a InstanceLocalityFilter in cinder, user can set "local_to_instance = Instance UUID" in "scheduler_hints" parameter when using "create volume" API, Cinder can enforces InstanceLocalityFilter filter and makes the volume created in the same host with this Instance.

"local_to_instance" is a property for volume, so this bp we suggest to add a "local_to_instance" parameter to "block_device_mapping" in create service API. "local_to_instance" parameter is optinal and default value is false. When "local_to_instance" is "false" Nova will do nothing. When "local_to_instance" is "true" nova will add "scheduler_hints" and set "local_to_instance = instance UUID" when generating create volume request to Cinder.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
ZhangNi
Direction:
Needs approval
Assignee:
ZhangNi
Definition:
New
Series goal:
Proposed for liberty
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-local-to-instance-to-create-server-api,n,z

Addressed by: https://review.openstack.org/190561
    Add local-to-instance to create server api

Removing milestone as blueprint is not get complete. In fact the nova-spec is still being reviewed. --johnthetubaguy 22nd June 2015

This is a feature we'd be happy to see and i can contribute to this. Could this be set to aim at the Mitaka release? Otherwise i can create a second blueprint, if that's better.

Addressed by: https://review.openstack.org/241066
    Add local-to-instance to create server api

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.