From 847630118f6d1907d0b21dd6b8f65561dc7f4ea7 Mon Sep 17 00:00:00 2001 From: CrystalChun Date: Fri, 6 Sep 2024 13:58:45 -0500 Subject: [PATCH] MGMT-11143: Fix missing DNS entry for reclaim test 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. --- src/tests/test_kube_api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/test_kube_api.py b/src/tests/test_kube_api.py index 9e9dabdfd41..335162ae91f 100644 --- a/src/tests/test_kube_api.py +++ b/src/tests/test_kube_api.py @@ -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)