Skip to content

Conversation

@aedan
Copy link
Collaborator

@aedan aedan commented Dec 10, 2025

Updated ove-setup to cleanup interfaces when they are changed and added feature to create bonds on the bridge

Restore the Galera deployment option to MariaDB documentation.
The Galera kustomization configuration was already present in the
repository but the documentation was previously removed. This adds
back the Galera deployment option alongside the existing Replication
and AIO configurations.
Add ConfigMap-based state tracking to prevent network loops during
reconfiguration and enable OVS bond creation with advanced options.

Changes:
- Add per-node ConfigMap state tracking (ovn-state-<nodename>)
- Implement first-run detection with graceful handling
- Smart cleanup of old ports/bonds when configuration changes
- Prevent network loops by removing old ports before adding new ones
- Add support for ovn.openstack.org/bonds annotation
- Add support for ovn.openstack.org/bond-options annotation
- Support LACP configuration with MII monitoring and timing options
- Validate port types before removal to protect system ports
- Update RBAC to allow ConfigMap operations
- Add comprehensive documentation with examples
Adds comprehensive state tracking and bond configuration support to the
OVN setup script, with intelligent cleanup to prevent network loops and
conflicts when changing configurations.

Features:
- State tracking via per-node ConfigMaps to track previous configurations
- LACP bond support with configurable options (MII monitoring, lacp-time, etc.)
- Intelligent port cleanup when changing from single ports to bonds
- Orphaned port detection and removal
- Prevention of conflicts when bonds are listed in port mappings
- File-based state transfer between containers (kubectl availability fix)

The script now safely handles configuration changes such as:
- Changing from single interface (ens6f0) to bonded interfaces (bond0)
- Removing old ports before creating bonds with those interfaces
- Skipping bond creation as regular ports to prevent conflicts

This enables operators to reconfigure nodes without manual cleanup or
risk of network loops from simultaneous port attachments.
aedan and others added 2 commits December 10, 2025 10:44
Improved bond interface handling to avoid unnecessary recreation by comparing existing bond configuration (bridge, members, mode, LACP) with desired state. Only recreates bonds when actual configuration changes are detected, reducing network disruptions during OVN setup runs.
@cloudnull cloudnull merged commit 3ec5c18 into rackerlabs:main Dec 11, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants