Closed b-ehlers closed 4 months ago
As PR #2355 is a backport from v3.0, version 3.0 may be affected as well. But I haven't tested this.
Additionally PR #2355 won't assign IP addresses obtained from DHCP to the interface, very similar to issue #2159.
alpine-1 console is now available... Press RETURN to get started.
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting select for 172.30.0.167, server 172.30.0.254
udhcpc: lease of 172.30.0.167 obtained from 172.30.0.254, lease time 3600
/ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
7: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN qlen 1000
link/ether f6:3e:46:1b:22:5c brd ff:ff:ff:ff:ff:ff
inet6 fe80::f43e:46ff:fe1b:225c/64 scope link
valid_lft forever preferred_lft forever
This is also fixed, when the missing files bin/udhcpc
and etc/udhcpc/default.script
are copied to the writable location.
Yes, the resources are not recursively copied to the writable location. I will push a fix soon. Thanks for catching that.
@b-ehlers
The PR should fix the issue. Please can you check on your side? Thanks 👍
@b-ehlers
The PR should fix the issue. Please can you check on your side? Thanks 👍
Looks good. I merged this PR in my local installation and deleted the writable location (~/.local/share/GNS3/docker/). Then I tested both cases, DHCP with suspended link to NAT and DHCP with working link to NAT. Both tests were successful.
Furthermore the writable location is a full copy of the resource directory.
Good job.
Describe the bug Since PR #2355 in a Docker VM the DHCP server must respond within the first 3 discovers, otherwise the DHCP client fails. This was not the case before that PR was merged.
GNS3 version and operating system (please complete the following information):
To Reproduce Steps to reproduce the behavior:
Screenshots or videos
Additional context
The reason is, that PR #2355 doesn't copy the whole resources directory hierarchy, only the contents of the top directory is copied (and the busybox program is installed).
The files
bin/udhcpc
andetc/udhcpc/default.script
are missing.After copying the whole directory hierarchy to the writable location (
cp -a ~/GNS3/venv/lib/python3.11/site-packages/gns3server/compute/docker/resources ~/.local/share/GNS3/docker/
) the DHCP client works as expected.