Scheduler: Filter, match requested networks to network metadata in aggregate

Registered by Stephen Pierce

Adds new filter to select hypervisors based on user's requested networks and aggregate metadata tag ``network_id``. ``network_id`` is a comma separated list of network UUIDs to match against the request. If there is no metadata, then the filter will match all hosts/aggregates.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Stephen Pierce
Direction:
Needs approval
Assignee:
Stephen Pierce
Definition:
Review
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Per http://docs.openstack.org/developer/nova/devref/kilo.blueprints.html, I believe that a spec file is not needed to add this filter because the filter is self-contained, changes no APIs, and is simular to existing filters.

If a spec is needed, I'll write one; otherwise the whiteboard should be able to document the new filter appropriately.

The filter is simple: for each host that is analyzed, the aggregate metadata is checked for a ``network_id`` key/value pair. If found, then that host/aggregate is matched if and only-if all networks requested are listed. ``netowrk_id`` is a CSV of network_ids (``nova net-list``) that the aggregate will match.

For hosts without the metadata key/value (``network_id``), then the filter always matches.

Gerrit topic: https://review.openstack.org/#q,topic:aggregate-network-filter,n,z

Addressed by: https://review.openstack.org/185204
    add per-aggregate filter to select hypervisors based on requested networks and aggregate metadata

Gerrit topic: https://review.openstack.org/#q,topic:bp/aggregate-network-filter,n,z

This was discussed in the nova-meeting. Please submit a spec for this, because the filter needs extra information passed into the scheduler, which is currently tricky as we are in the process of requiring how that happens. Sorry. --johnthetubaguy 28th May 2015

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.