Add network-group-affinity/anti-affinity server group policies#116
Draft
RSabounds wants to merge 1 commit into
Draft
Add network-group-affinity/anti-affinity server group policies#116RSabounds wants to merge 1 commit into
RSabounds wants to merge 1 commit into
Conversation
Introduces two new server group policies that constrain instance
placement based on the physical network group (VLAN group / cabinet
switch pair) an Ironic node belongs to.
New policies:
- network-group-affinity: schedule only onto nodes in the specified
network group
- network-group-anti-affinity: schedule only onto nodes NOT in the
specified network group
The network group is specified via the server group rules field:
openstack server group create --policy network-group-affinity \
--rule network_group=a1-1-network my-cabinet-group
The filters match CUSTOM_NETGROUP_* traits reported by Ironic nodes
via the Placement service. This eliminates the need for per-network-
group flavor proliferation.
Changes:
- New NetworkGroupAffinityFilter and NetworkGroupAntiAffinityFilter
- Schema updated to accept new policies and network_group rule
- API controller validates rules per policy type
- InstanceGroup.rules property parses network_group
- Scheduler utils recognizes new policies
- New filters added to default enabled_filters
- Unit tests (15 tests, all passing)
- Lint clean (flake8 + hacking)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces two new server group policies that constrain instance placement based on the physical network group (VLAN group / cabinet switch pair) an Ironic node belongs to.
New policies:
The network group is specified via the server group rules field:
openstack server group create --policy network-group-affinity
--rule network_group=a1-1-network my-cabinet-group
The filters match CUSTOM_NETGROUP_* traits reported by Ironic nodes via the Placement service. This eliminates the need for per-network- group flavor proliferation.
Changes: