Skip to content

feat: Add CUSTOM_NETGROUP_* traits and Nova network-group-affinity patch#2086

Draft
RSabounds wants to merge 1 commit into
mainfrom
openstack-servergroup-network-affinity
Draft

feat: Add CUSTOM_NETGROUP_* traits and Nova network-group-affinity patch#2086
RSabounds wants to merge 1 commit into
mainfrom
openstack-servergroup-network-affinity

Conversation

@RSabounds

Copy link
Copy Markdown
Contributor

Extends the LLDP inspection hook to add CUSTOM_NETGROUP_ traits to Ironic nodes for each '-network' VLAN group they are connected to. These traits are consumed by the new NetworkGroupAffinityFilter and NetworkGroupAntiAffinityFilter in Nova to constrain scheduling to nodes within a specific cabinet switch pair.

Changes:

  • inspect_hook_update_baremetal_ports.py: adds network_group_trait_name() function and includes CUSTOM_NETGROUP* traits in _set_node_traits()
  • is_our_trait() updated to manage both CUSTOMSWITCH and CUSTOM_NETGROUP patterns
  • Nova patch (0002_network_group_affinity_policy.patch) added to containers/nova/patches/ for quilt application during image build
  • Tests updated and new test class added for trait functions

@RSabounds RSabounds added the enhancement New feature or request label Jun 19, 2026
@RSabounds RSabounds force-pushed the openstack-servergroup-network-affinity branch from fed40eb to eeafb0f Compare June 19, 2026 15:25
@RSabounds RSabounds changed the title Add CUSTOM_NETGROUP_* traits and Nova network-group-affinity patch feat: Add CUSTOM_NETGROUP_* traits and Nova network-group-affinity patch Jun 19, 2026
Extends the LLDP inspection hook to add CUSTOM_NETGROUP_<name> traits
to Ironic nodes for each '-network' VLAN group they are connected to.
These traits are consumed by the new NetworkGroupAffinityFilter and
NetworkGroupAntiAffinityFilter in Nova to constrain scheduling to
nodes within a specific cabinet switch pair.

Changes:
- inspect_hook_update_baremetal_ports.py: adds _network_group_trait_name()
  function and includes CUSTOM_NETGROUP_* traits in _set_node_traits()
- _is_our_trait() updated to manage both CUSTOM_*_SWITCH and
  CUSTOM_NETGROUP_* patterns
- Nova patch (0002_network_group_affinity_policy.patch) added to
  containers/nova/patches/ for quilt application during image build
- Tests updated and new test class added for trait functions
@RSabounds RSabounds force-pushed the openstack-servergroup-network-affinity branch from eeafb0f to 0bd9a3d Compare June 19, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant