From aedba941e316cfc237a65a6dd56669c382929067 Mon Sep 17 00:00:00 2001 From: Tom Weininger Date: Tue, 17 Dec 2024 10:05:07 +0100 Subject: [PATCH] Remove problematic DHCP interface configuration This fixes issues with `make openstack` in my environment, in particular with `make nncp_with_retries` which constantly timed out. --- devsetup/scripts/interfaces-setup-cleanup.sh | 4 ---- devsetup/scripts/interfaces-setup.sh | 1 - 2 files changed, 5 deletions(-) diff --git a/devsetup/scripts/interfaces-setup-cleanup.sh b/devsetup/scripts/interfaces-setup-cleanup.sh index 9f67b85..02f3c02 100644 --- a/devsetup/scripts/interfaces-setup-cleanup.sh +++ b/devsetup/scripts/interfaces-setup-cleanup.sh @@ -9,10 +9,6 @@ fi MAC_ADDRESS=$(virsh --connect=qemu:///system dumpxml $INSTANCE_NAME | xmllint --xpath "string(/domain/devices/interface/source[@network=\"$NETWORK_NAME\"]/../mac/@address)" -) if [ -n "${MAC_ADDRESS}" ]; then virsh --connect=qemu:///system detach-interface $INSTANCE_NAME network --mac $MAC_ADDRESS - # First try to remove the DHCP static IP entry by MAC, if it fails try by hostname - if ! virsh --connect=qemu:///system net-update $NETWORK_NAME delete ip-dhcp-host "" --config --live; then - virsh --connect=qemu:///system net-update $NETWORK_NAME delete ip-dhcp-host "" --config --live - fi sleep 5 fi diff --git a/devsetup/scripts/interfaces-setup.sh b/devsetup/scripts/interfaces-setup.sh index 5404068..4fe81f2 100644 --- a/devsetup/scripts/interfaces-setup.sh +++ b/devsetup/scripts/interfaces-setup.sh @@ -50,7 +50,6 @@ if [[ -z "${MAC_ADDRESS}" ]]; then else VM_ID_SECTION="mac='$MAC_ADDRESS'" fi -virsh --connect=qemu:///system net-update $NETWORK_NAME add-last ip-dhcp-host --xml "" --config --live virsh --connect=qemu:///system attach-interface $INSTANCE_NAME --source $NETWORK_NAME --type network --model virtio --mac $MAC_ADDRESS --config --persistent sleep 5