Skip to content

Commit 316c7f1

Browse files
committed
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.
1 parent b6028e3 commit 316c7f1

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

devsetup/scripts/interfaces-setup-cleanup.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ fi
99
MAC_ADDRESS=$(virsh --connect=qemu:///system dumpxml $INSTANCE_NAME | xmllint --xpath "string(/domain/devices/interface/source[@network=\"$NETWORK_NAME\"]/../mac/@address)" -)
1010
if [ -n "${MAC_ADDRESS}" ]; then
1111
virsh --connect=qemu:///system detach-interface $INSTANCE_NAME network --mac $MAC_ADDRESS
12-
# First try to remove the DHCP static IP entry by MAC, if it fails try by hostname
13-
if ! virsh --connect=qemu:///system net-update $NETWORK_NAME delete ip-dhcp-host "<host mac='$MAC_ADDRESS'/>" --config --live; then
14-
virsh --connect=qemu:///system net-update $NETWORK_NAME delete ip-dhcp-host "<host name='$INSTANCE_NAME'/>" --config --live
15-
fi
1612
sleep 5
1713
fi
1814

devsetup/scripts/interfaces-setup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ if [[ -z "${MAC_ADDRESS}" ]]; then
5050
else
5151
VM_ID_SECTION="mac='$MAC_ADDRESS'"
5252
fi
53-
virsh --connect=qemu:///system net-update $NETWORK_NAME add-last ip-dhcp-host --xml "<host $VM_ID_SECTION ip='$IP_ADDRESS'/>" --config --live
5453
virsh --connect=qemu:///system attach-interface $INSTANCE_NAME --source $NETWORK_NAME --type network --model virtio --mac $MAC_ADDRESS --config --persistent
5554

5655
sleep 5

0 commit comments

Comments
 (0)