[ci_gen_kustomize_values] BGP: generate gateway IP for network bridges from CIDR#4053
[ci_gen_kustomize_values] BGP: generate gateway IP for network bridges from CIDR#4053eduolivares wants to merge 1 commit into
Conversation
…s from CIDR Use `ansible.utils.nthhost(1)` to derive the bridge gateway IP directly from the network CIDR instead of requiring a hardcoded `gateway` field in `values.yaml`. This ensures the `internalapi` and `storage` bridge gateway addresses in BGP deployments are always consistent with the configured subnet. Required by the NNCP fix in the `architecture` repo (OSPRH-32725), where the NNCP desired state must include the bridge gateway IP so NMState does not remove it during periodic reconciliation cycles, which otherwise causes `ovn-controller` to lose connectivity to the OVN SB DB pods. Related-Issue: #OSPRH-32725 Assisted-By: Claude Sonnet 4.6 Signed-off-by: Eduardo Olivares <eolivare@redhat.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Build failed (check pipeline). Post ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 54m 34s |
|
recheck |
Summary
bgp_dt01,bgp-l3-xl) useisGateway: truein the internalapi and storage NetworkAttachmentDefinitions, which causes the bridge CNI plugin to assign a gateway IP (e.g.172.17.0.1/24) to the bridge when the first pod starts on the node.ovn-controllerto lose connectivity to the OVN SB DB pods (typically after 24+ hours).ansible.utils.nthhost(1)to derive the gateway IP directly from the network CIDR when generatingvalues.yaml, so thearchitecturerepo NNCP templates can include it in the desired state without requiring a hardcoded value.This is the ci-framework counterpart to the fix in openstack-k8s-operators/architecture#783.
Related-Issue: #OSPRH-32725
AI attribution: commit message and PR description drafted with assistance from Claude Sonnet 4.6.
Test plan
values.yamlcontains correctgatewayfield forinternalapiandstoragenetworks in BGP deploymentsinternalapi/storagebridge gateway IPs are preserved after NMState reconciliationDepends-On: openstack-k8s-operators/architecture#783
🤖 Generated with Claude Code