Skip to content

deploy: Fix API hostname in /etc/hosts and refresh bridge XML - #406

Merged
SamuelePilleri merged 3 commits into
bn222:mainfrom
SamuelePilleri:deploy-etc-hosts-bridge-fixes
Nov 26, 2026
Merged

SamuelePilleri merged 3 commits into
bn222:mainfrom
SamuelePilleri:deploy-etc-hosts-bridge-fixes

Conversation

@SamuelePilleri

Copy link
Copy Markdown
Collaborator

Two fixes for provisioning hosts that use a custom DNS suffix or whose libvirt default network has to be rebuilt.

The API hostname was hardcoded to api.<cluster>.redhat.com, so clusters
using a different base_dns_domain got an incorrect /etc/hosts entry. Use
cc.base_dns_domain, which defaults to redhat.com, as already done when
generating the assisted installer configuration.

Signed-off-by: Samuele Pilleri <spilleri@redhat.com>
The API VIP entry was only written after the installation completed,
leaving api.<cluster> unresolvable on the provisioning host while the
installer was still working. Update it as soon as the masters are
started, and keep the post-install refresh.

Signed-off-by: Samuele Pilleri <spilleri@redhat.com>
configure() kept using the XML captured before the default network was
destroyed and recreated, so the DHCP range comparison ran against stale
configuration and could try to delete a range that no longer existed.
Re-read the network XML after the optional reconfiguration.

Signed-off-by: Samuele Pilleri <spilleri@redhat.com>
@SamuelePilleri
SamuelePilleri merged commit ac8159a into bn222:main Nov 26, 2026
1 check 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.

1 participant