I had to edit the reproducer to avoid hitting a race condition (I
think). Updated code below:
```
#!/bin/bash
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
ip netns add ns1
ip link add veth0 type veth peer name veth1 netns ns1
ip link set veth0 up
ip -n ns1 link set veth1 up
ip -n ns1 address add dev veth1 172.25.1.4/24
ip netns exec ns1 dnsmasq --bind-interfaces --interface veth1 --dhcp-
range=172.25.1.100,172.25.1.150,60
tcpdump -venni veth0 udp port 67 &
sleep 5
nmcli connection add type ethernet ifname veth0 con-name veth0+ ipv6.method
disabled autoconnect no
nmcli connection up veth0+
sleep 5 # wait for DHCP ACK
ip addr flush dev veth0 # clear IP received from DHCP server
ip addr add 172.25.1.42/24 dev veth0 # add non-DHCP address
ip addr show dev veth0
killall dnsmasq
sleep 1
ip netns exec ns1 dnsmasq --bind-interfaces --interface veth1
--dhcp-range=172.25.1.151,172.25.1.200,60
sleep 240
nmcli connection delete veth0+
ip link delete veth0
ip netns delete ns1
```
** Changed in: network-manager (Ubuntu Jammy)
Status: New => In Progress
** Changed in: network-manager (Ubuntu Questing)
Status: New => In Progress
** Changed in: network-manager (Ubuntu Jammy)
Assignee: (unassigned) => Guilherme Puida Moreira (puida)
** Changed in: network-manager (Ubuntu Noble)
Status: New => In Progress
** Changed in: network-manager (Ubuntu Noble)
Assignee: (unassigned) => Guilherme Puida Moreira (puida)
** Changed in: network-manager (Ubuntu Questing)
Assignee: (unassigned) => Guilherme Puida Moreira (puida)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2126573
Title:
n-dhcp4: Do not set ciaddr in DISCOVER state.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2126573/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs