Scheduler: Filter, match requested networks to network metadata in aggregate
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
- Started by
- Completed by
Related branches
Sprints
Whiteboard
Per http://
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:/
Addressed by: https:/
add per-aggregate filter to select hypervisors based on requested networks and aggregate metadata
Gerrit topic: https:/
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