-
Notifications
You must be signed in to change notification settings - Fork 50
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
wicked is slow to start up at boot #681
Comments
Hi Robert,
This sounds to me as if you have a router that advertises IPv6 routes, and tells the client to find a DHCP6 server to obtain more information. Note how it starts the wicked-dhcp6 supplicant. But that DHCPv6 server does not seem to be there. In this case, you run into a timeout.
Regards,
Olaf
… Am 24.11.2016 um 00:12 schrieb Robert Munteanu ***@***.***>:
Running on openSUSE Tumbleweed x86_64
$ rpm -q wicked
wicked-0.6.39-1.1.x86_64
Booting up is quite slow, and systemd-analyze points to wicked
# systemd-analyze blame | head -n 3
16.792s wicked.service
2.081s logrotate.service
1.163s apparmor.service
The journal does not say much, pasting below the output. There is a large gap between "Committed DHCPv4 lease" and "Notified neighbours about IP address" though:
# journalctl -b | grep wicked
Nov 23 22:52:16 mars systemd[1]: Starting wicked AutoIPv4 supplicant service...
Nov 23 22:52:16 mars systemd[1]: Starting wicked DHCPv4 supplicant service...
Nov 23 22:52:16 mars systemd[1]: Starting wicked DHCPv6 supplicant service...
Nov 23 22:52:16 mars audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=wickedd-dhcp6 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 23 22:52:16 mars systemd[1]: Started wicked DHCPv6 supplicant service.
Nov 23 22:52:16 mars audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=wickedd-dhcp4 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 23 22:52:16 mars systemd[1]: Started wicked DHCPv4 supplicant service.
Nov 23 22:52:16 mars audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=wickedd-auto4 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 23 22:52:16 mars systemd[1]: Started wicked AutoIPv4 supplicant service.
Nov 23 22:52:16 mars systemd[1]: Starting wicked network management service daemon...
Nov 23 22:52:16 mars systemd[1]: Started wicked network management service daemon.
Nov 23 22:52:16 mars audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=wickedd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 23 22:52:16 mars systemd[1]: Starting wicked network nanny service...
Nov 23 22:52:16 mars systemd[1]: Started wicked network nanny service.
Nov 23 22:52:16 mars audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=wickedd-nanny comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 23 22:52:16 mars systemd[1]: Starting wicked managed network interfaces...
Nov 23 22:52:18 mars wickedd-dhcp4[1108]: enp6s0: Request to acquire DHCPv4 lease with UUID 80013658-de5f-0800-6904-000005000000
Nov 23 22:52:18 mars wickedd-dhcp6[1109]: enp6s0: Request to acquire DHCPv6 lease with UUID 80013658-de5f-0800-6904-000006000000 in mode auto
Nov 23 22:52:19 mars wickedd-dhcp4[1108]: enp6s0: Committed DHCPv4 lease with address 192.168.1.52 (lease time 86400 sec, renew in 43200 sec, rebind in 75600 sec)
Nov 23 22:52:19 mars wickedd[1129]: enp6s0: Notified neighbours about IP address 192.168.1.52
Nov 23 22:52:33 mars wicked[1147]: lo up
Nov 23 22:52:33 mars wicked[1147]: enp6s0 up
Nov 23 22:52:33 mars systemd[1]: Started wicked managed network interfaces.
Nov 23 22:52:33 mars audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=wicked comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi Olaf, IPv6 is the key here, indeed. It is disabled on my router, but perhaps it's bugged. Enabling it in the router did not help, as there was still a long delay and I did not get an IPv6 address. But disabling it for my machine reduced the time greatly
Not sure if this can be reduced more, but it's a great improvement. Can I somehow debug the IPv6 situation? I am not using IPv6 but perhaps there is something more to uncover here. Thanks, Robert |
Without the config, IPv6 RA dump and debug logs, I cannot say much about. When you want to use DHCP4 only, use To tell you more what is going on, please first
Next step is to enable debug logging in wicked: After reboot, please collect the logs using |
I can't see any, but "Committed" means, lease gets sent from wickedd-dhcp6 to wickedd, which receives it, verifies the address (duplicate address detection), sets the address on the device and announces it on the network (notify message). After the address (and routes) are set, the lease is sent it to netconfig to update dns, nis and ntp. With Finally, wickedd reports that this lease has been applied to nanny and wicked ifup and waits the remaining time of the 15sec for the another (dhcp6) lease to get applied before wicked ifup returns (wicked.service finishes). |
BTW: The
|
When a RA prefix event arrives and the managed/other-config RA flags are not set (dhcp not used on the network), send a defer event to stop waiting for the lease in ifup. [openSUSE#681]
Test RPMs with pull #682 applied will appear at |
I'd like to drop by and say thanks. I had a long, long startup time because wicked was waiting for a ipv6 lease. Disabling ipv6 on my system solved it! :) |
I have disabled DHCPv6 in Yast however still have 45 sec timeout on OS start for wicked. What other problem could be, how to solve? Can't use NetworkManager because of this problem: |
Found solution here: https://www.reddit.com/r/openSUSE/comments/cbn0xk/slow_boot_time_because_of_wicked_and/ :
|
Running on openSUSE Tumbleweed x86_64
Booting up is quite slow, and
systemd-analyze
points to wickedThe journal does not say much, pasting below the output. There is a large gap between "Committed DHCPv4 lease" and "Notified neighbours about IP address" though:
The text was updated successfully, but these errors were encountered: