network: respect pre-set API_VIPS and INGRESS_VIPS#1860
network: respect pre-set API_VIPS and INGRESS_VIPS#1860bogdando wants to merge 1 commit intoopenshift-metal3:masterfrom
Conversation
When API_VIPS and INGRESS_VIPS are already set in the environment (e.g. via config_$USER.sh), skip the dig lookups and dnsmasq reconfiguration in set_api_and_ingress_vip(). This is needed for bare-metal deployments where dnsmasq is not yet running when network.sh executes, causing the dig lookups to fail and leaving the VIPs empty in install-config.yaml. Generated-By: Cursor (claude-4.6-opus-high) Signed-off-by: Bohdan Dobrelia <bdobreli@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 |
|
Hi @bogdando. Thanks for your PR. I'm waiting for a openshift-metal3 member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
ftr, I needed this fix in https://github.com/openstack-k8s-operators/ci-framework/pull/3739/changes#diff-b42c1ffd0e6c247d43022ea34bad373ac33b9135425cd21e87549d0b0196d629R54 for our specific BM SNO setup in RHOSO |
|
This won't work for virt environments, so I think the logic should be moved into the baremetal-specific code path. I'm also curious how these records are being configured. Normally in a baremetal cluster the API and ingress records are created in the upstream DNS server prior to creating the cluster. Presumably that's not being done in this test environment. Is there a reason for that? |
Thanks, I will double check on my test env (that hack had surely helped to solve the issues with the bottstrap VM and BM target OCP SNO host)
I am trying a setup where api and ingress records are non routable addresses in the /etc/hosts, and being reached via DNAT rules on the CI controller into bootstrap VM so that virtual media traffic can traverse both directions - to the iDRAC and back to Ironic |
When API_VIPS and INGRESS_VIPS are already set in the environment (e.g. via config_$USER.sh), skip the dig lookups and dnsmasq reconfiguration in set_api_and_ingress_vip().
This is needed for bare-metal deployments where dnsmasq is not yet running when network.sh executes, causing the dig lookups to fail and leaving the VIPs empty in install-config.yaml.
Generated-By: Cursor (claude-4.6-opus-high)