Select one available node instead of returning the first(0th) node

Registered by Vincent Hou

In nova, one nova-compute can support multiple available nodes. When we build an instance, prep-resize for an instance, unshelve an instance, etc, the first(0th) available node is always returned in the mamager(node = self.driver.get_available_nodes()[0]).
I suggest we should make the nova-compute able to select one available node in a certain rule. This can be done in the hypovisor driver or in the current scheduler.

Blueprint information

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

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/smart-available-node-return,n,z

Addressed by: https://review.openstack.org/89006
    Propose: add scheduling for choosing an available node

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.