Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dhcpd failed to start on Fedora 40/41/rawhide and CentOS Stream 10 on Azure #427

Open
henrywang opened this issue Dec 23, 2024 · 1 comment

Comments

@henrywang
Copy link

Start Azure Fedora 40/41/rawhide or CentOS Stream 10 VM, VM starts blocked by dhcpd.
CentOS Stream 10 log (dhcpcd-10.0.6):

[  257.812642] audit: type=1326 audit(1734943163.932:190): auid=4294967295 uid=992 gid=995 ses=4294967295 subj=system_u:system_r:dhcpc_t:s0 pid=4371 comm="dhcpcd" exe="/usr/sbin/dhcpcd" sig=31 arch=c000003e syscall=14 compat=0 ip=0x7fce635e5e5f code=0x0
[  257.406558] cloud-init[1180]: 2024-12-23 08:39:24,088 - subp.py[DEBUG]: command ['/usr/sbin/dhcpcd', '--ipv4only', '--waitip', '--persistent', '--noarp', '--script=/bin/true', 'eth0'] took 0.1s to run
[  257.417375] cloud-init[1180]: 2024-12-23 08:39:24,088 - dhcp.py[DEBUG]: dhcpcd exited with code: 1 stderr: 'dhcpcd-10.0.6 starting\n        DUID 00:01:00:01:2e:fb:dd:5e:60:45:bd:ee:a7:99\n        eth0: IAID bd:ee:a7:99\n        dhcpcd_fork_cb: dhcpcd manager hungup' stdout: ''
[  257.425195] cloud-init[1180]: 2024-12-23 08:39:24,088 - azure.py[ERROR]: Failed to obtain DHCP lease (iface=None)

Fedora 41 log (dhcpcd-10.0.8 starting):

2024-11-27 09:12:58,107 - subp.py[DEBUG]: Running command ['/usr/sbin/dhcpcd', '--ipv4only', '--waitip', '--persistent', '--noarp', '--script=/bin/true', 'eth0'] with allowed return codes [0] (shell=False, capture=True)
2024-11-27 09:12:59,117 - subp.py[DEBUG]: ['/usr/sbin/dhcpcd', '--ipv4only', '--waitip', '--persistent', '--noarp', '--script=/bin/true', 'eth0'] took 1.0s to run
2024-11-27 09:12:59,118 - dhcp.py[DEBUG]: dhcpcd exited with code: 1 stderr: 'dhcpcd-10.0.8 starting\n        DUID 00:01:00:01:2e:d9:9f:1a:7c:1e:52:68:50:eb\n        eth0: IAID 52:68:50:eb\n        dhcpcd_fork_cb: dhcpcd manager hungup' stdout: ''
2024-11-27 09:12:59,118 - azure.py[ERROR]: Failed to obtain DHCP lease (iface=None)
@yuxisun1217
Copy link

This only happen in bootc image but not normal image.
In bootc image:

# /usr/sbin/dhcpcd --ipv4only --waitip --persistent --noarp --script=/bin/true eth0 --debug
dhcpcd-10.0.6 starting
spawned manager process on PID 61726
chrooting as dhcpcd to /var/lib/dhcpcd
sandbox: seccomp
spawned privileged proxy on PID 61727
spawned controller proxy on PID 61728
DUID xxxx
eth0: executing: /bin/true PREINIT
eth0: executing: /bin/true CARRIER
eth0: IAID 48:21:3f:97
dhcpcd_fork_cb: dhcpcd manager hungup

In normal image:

dhcpcd-10.0.6 starting
chrooting as dhcpcd to /var/lib/dhcpcd
sandbox: seccomp
spawned manager process on PID 9924
spawned privileged proxy on PID 9925
spawned controller proxy on PID 9926
DUID xxxx
eth0: executing: /bin/true PREINIT
eth0: executing: /bin/true CARRIER
eth0: IAID 3a:1d:f2:75
eth0: delaying IPv4 for 0.8 seconds
eth0: reading lease: /var/lib/dhcpcd/eth0.lease
eth0: rebinding lease of 10.0.0.4
eth0: spawned BPF ARP 10.0.0.4 on PID 9929
eth0: sending REQUEST (xid 0x55dd493), next in 3.3 seconds
eth0: spawned BPF BOOTP on PID 9930
eth0: acknowledged 10.0.0.4 from 168.63.129.16 IAD201130117009
eth0: leased 10.0.0.4 for infinity
eth0: writing lease: /var/lib/dhcpcd/eth0.lease
eth0: adding IP address 10.0.0.4/24 broadcast 10.0.0.255
eth0: using Classless Static Routes
forked to background

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants