Description of problem:
The dhcpd.service unit will be restarted regardless of the dependencies specified in the dhcpd.service systemd unit file. This causes the dhcpd service to start way too early in the servers boot process. If you could already fix that, e.g. with a check if the dhcpd.service unit has already been started, it would already solve a lot of problems.
The dhcpd service does not respect the dependencies specified in unit file. This should start after network connections are up. But instead dhcpd service is started earlier even before network connections are up.
WORKAROUND AS SUGGESTED IN #565921
>> Write a script to restart dhcpd service for 'up' event for each of the interfaces on the system. This works in small environment where DHCP leases are less.
But when DHCP leases are in thousand with primary and failover pairs, restarting dhcpd service for every interfaces results in 15-20 minutes of downtime.
Is there a way to avoid this restart of the service for each interface up event.
This is specific request for this particular environment. The work around did not help in this environment as it results in longer downtime and dhcpd service is frequently restarted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Use the patch provided in #565921 by adding it under /etc/NetworkManager/dispatcher.d
2. Reboot the system
System reboot would take longer time around 15-20 minutes as DHCP leases are in thousands
System reboot should happen quickly and dhcp should take care of the dependencies as specified in unit file.
> Workaround in #565921 not helpful
> DHCP unit file does not respect the dependencies specified.
*** Bug 1420135 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
The change to install /etc/NetworkManager/dispatcher.d/12-dhcpd with 0644 permissions produces repeated nm-dispatcher warnings:
Oct 3 12:50:27 localhost nm-dispatcher: find-scripts: Cannot execute '/etc/NetworkManager/dispatcher.d/12-dhcpd': not executable by owner.