Bug 1316687

Summary: named's dispatcher for systemd blocks to get NetworkManager to state CONNECTED (boot delay)
Product: [Fedora] Fedora Reporter: Antonin <antonin.vecera>
Component: bindAssignee: Tomáš Hozza <thozza>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: psimerda, thozza, vonsch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 10:39:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Antonin 2016-03-10 19:24:38 UTC
Description of problem:
During boot process when network interfaces are set up (by NetworkManager) there are started installed dispatchers. For BIND daemon there is a file "/etc/NetworkManager/dispatcher.d/13-named". It contains this command:

/usr/bin/systemctl reload named.service > /dev/null 2>&1 || true

It calls "named.service". But systemd starts "named.service" when "network-online.target" is met. At this time the network is not accessible. So there is 30sec delay and then "NetworkManager-wait-online.service" fail. After that boot process continues.

Version-Release number of selected component (if applicable):
bind-9.10.3-10.P3.fc23.x86_64

How reproducible:
Package "bind" installed.
NetworkManager.service and NetworkManager-dispatcher.service enabled.

Steps to Reproduce:
1. Boot pc
2. Enter command "systemctl" or "journalctl -b"
3. search for NetworkManager-wait-online.service fail

Actual results:
Boot process delay 30 seconds and there is present "NetworkManager-wait-online.service" fail.

Expected results:
Faster boot.

Additional info:
In my environment it helps to use "--no-block" option in dispatcher file. Like this:
/usr/bin/systemctl --no-block reload named.service > /dev/null 2>&1 || true

Comment 1 Tomáš Hozza 2016-05-12 10:39:06 UTC

*** This bug has been marked as a duplicate of bug 1277257 ***