Skip to content

Commit

Permalink
MGMT-11143: Fix missing DNS entry for reclaim test
Browse files Browse the repository at this point in the history
During the reclaim test, the error `Get
\"https://api.test-infra-cluster-8102e86e.redhat.com:6443/api/v1\":
dial tcp: lookup api.test-infra-cluster-8102e86e.redhat.com on
10.96.0.10:53: no such host"` was observed in assisted-service.
This adds the spoke cluster's DNS entry to `/etc/hosts` so
assisted-service can resolve the spoke cluster API DNS.
  • Loading branch information
CrystalChun committed Sep 6, 2024
1 parent 4ba9c2b commit 8476301
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/test_kube_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,11 @@ def _late_binding_install(
nodes.controller.add_dns_host_to_network(
network_name="default", api_vip=api_vip, cluster_name=cluster_deployment.ref.name
)
utils.config_etc_hosts(
cluster_name=cluster_deployment.ref.name,
base_dns_domain=cluster_deployment.get()["spec"]["baseDomain"],
api_vip,
)

agent_cluster_install.wait_to_be_ready(ready=True)
Agent.wait_for_agents_to_be_bound(agents)
Expand Down

0 comments on commit 8476301

Please sign in to comment.