Commit 3ec5c18
Feat: Update ovn-setup (#1358)
* docs: restore Galera cluster deployment documentation
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.
* feat(ovn): add intelligent state management and bond support
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
* feat(ovn): add intelligent state management and bond support
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.
* Update base-kustomize/ovn/base/ovn-setup.yaml
Co-authored-by: Kevin Carter <kevin@cloudnull.com>
* feat(ovn): add intelligent bond configuration comparison
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.
---------
Co-authored-by: Kevin Carter <kevin@cloudnull.com>1 parent 45854d0 commit 3ec5c18
File tree
2 files changed
+505
-15
lines changed- base-kustomize/ovn/base
- docs
2 files changed
+505
-15
lines changed
0 commit comments