Repository navigation
Validate ansibleHost and ctlplane fixedIP for pre-provisioned nodes - #1802
openshift-merge-bot[bot] merged 1 commit into
Conversation
|
Probably a flaky test? |
|
/test openstack-operator-build-deploy-kuttl-4-18 |
0ed8bf0 to
496f239
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/27c287f32bb74b7e8ee5a39af21bb77a ❌ openstack-k8s-operators-content-provider NODE_FAILURE Node request 100-0008160556 failed in 0s |
… nodes For pre-provisioned dataplane nodes, ansibleHost must be a valid IP address. This is required because the controller defaults the ctlplane network fixedIP from ansibleHost during IPAM reservation, ensuring the reserved IP matches the already-configured node interface. Without a valid IP, IPAM could reserve a different address and break connectivity during deployment. The validating webhook enforces that for pre-provisioned nodes: - ansibleHost is not empty - ansibleHost is a valid IP address The controller (ipam.go) defaults the ctlplane fixedIP from ansibleHost when not already set. The ctlplane network is identified using the netServiceNetMap from NetConfig, so it works regardless of the network name. Signed-off-by: rabi <ramishra@redhat.com>
496f239 to
3f6c604
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/4f8823cf30a84e3fa7b102deeb1cf5c8 ❌ openstack-k8s-operators-content-provider NODE_FAILURE Node request 100-0008160605 failed in 0s |
|
Hi @rabi - thanks for filing this PR! About this part:
Will this still catch the problem in our case? Here's what we used to have: Now we are using this: We also have this (unchanged): Using I can share more of our |
Hmm.. the issue in your case is you're using external network for ssh, which is unusual(normally ctlplane network is used for that, any reason you're not doing that?). Any network for a node that you need to use predetermined IP, you've to use fixedIP in the networks section. In your case (unless you're configuring all networks beforehand), you just need match the IP you use in ansibleHost with the fixedIP for the desired network in networks section. This PR is to copy ansibleHost ip to ctlplane IP unless it's provided for scenarios where users forgets to set fixedIP for ctlplane network (the default network used for ssh) in pre-provisioned nodes. |
|
recheck |
Thanks @rabi - that's a fair question. I do not know the origin story of this particular configuration. I've asked colleagues if they can provide insight here. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rabi, slagle The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test openstack-operator-build-deploy-kuttl-4-18 |
f46ba0f
into
openstack-k8s-operators:main
|
/cherry-pick 18.0-fr5 |
|
@rabi: new pull request created: #1810 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hi @rabi - I can answer this question now! From our lab environment team: It makes more sense for us to use the From our dev team: "In some instances, orgs want to save as much infrastructure as possible and use the two minimal interfaces that are needed. Sometimes, they even have LACP bonds for each OSP network, independent interfaces for OBB, and another for server management (like EDPM-Ansible)." So while it might appear a bit unusual, this configuration should still be possible/supported. My own thoughts: I see this PR is already merged (thank you!). I'd love to see a future update to this not assume Thank you again for the PR! |
I don't get why your lab can't you use ctlplane network for ansible (to me it's about adding routes on the virt host). This PR is not assuming anything, if you miss to match the IP for the network used for ansibleHost with the one in network section, you would end up with IPAM/os-net-config configuring a different IP and you would have issues. The only thing it's catering for is general scenario where folks don't provide any fixedIP in the network section with pre-provisioned nodes. There is no way for us to know what other network you've used in ansibleHost. |
For pre-provisioned dataplane nodes, ansibleHost must be a valid IP address. This is required because the controller defaults the ctlplane network fixedIP from ansibleHost during IPAM reservation, ensuring the reserved IP matches the already-configured node interface. Without a valid IP, IPAM could reserve a different address and break connectivity during deployment.
The validating webhook enforces that for pre-provisioned nodes:
The controller (ipam.go) defaults the ctlplane fixedIP from ansibleHost when not already set. The ctlplane network is identified using the netServiceNetMap from NetConfig, so it works regardless of the network name.