From e3d94c673c504573bed21048486d68dc85444b58 Mon Sep 17 00:00:00 2001 From: Pawan Pinjarkar Date: Wed, 28 Jan 2026 12:45:09 -0500 Subject: [PATCH] AGENT-1434: ISO_NO_REGISTRY mode generates hosts file with incorrect IP addresses --- agent/common.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/agent/common.sh b/agent/common.sh index 8b7c69083..e659a5301 100644 --- a/agent/common.sh +++ b/agent/common.sh @@ -74,10 +74,15 @@ export AGENT_NODE0_IPSV6=${AGENT_NODE0_IPSV6:-} # Modifies the baremetal network to be fully isolated. export AGENT_ISOLATED_NETWORK=${AGENT_ISOLATED_NETWORK:-"false"} -# Set isolated network to true for truely disconnected OVE env -# in case of agent ISO with no registry if [ "${AGENT_E2E_TEST_BOOT_MODE}" == "ISO_NO_REGISTRY" ] ; then + # Set isolated network to true for truly disconnected OVE env + # in case of agent ISO with no registry export AGENT_ISOLATED_NETWORK=true + # ISO_NO_REGISTRY mode doesn't pre-configure IPs, so nodes use DHCP + # Make sure the hosts file reflects the DHCP IP range + if [[ -z "${NETWORKING_MODE}" ]]; then + export NETWORKING_MODE="DHCP" + fi fi function getRendezvousIP() {