Bug 909577 - NM dispatcher script timeout warnings, scripts are killed
Summary: NM dispatcher script timeout warnings, scripts are killed
Keywords:
Status: CLOSED DUPLICATE of bug 982734
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-09 16:13 UTC by la_antorcha_guia
Modified: 2014-04-15 13:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-15 13:48:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description la_antorcha_guia 2013-02-09 16:13:54 UTC
Description of problem:
nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/13-named' took too long; killing it.
nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/20-squid' took too long; killing it.
NetworkManager[413]: <warn> Dispatcher script timed out: Script '/etc/NetworkManager/dispatcher.d/12-dhcpd' timed out.
NetworkManager[413]: <warn> Dispatcher script timed out: Script '/etc/NetworkManager/dispatcher.d/13-named' timed out.
NetworkManager[413]: <warn> Dispatcher script timed out: Script '/etc/NetworkManager/dispatcher.d/20-squid' timed out.
ww1 dbus-daemon[412]: ppp0: error fetching interface information: Device not found
dbus-daemon[412]: IP ppp0 no esta presente
dbus-daemon[412]: ppp0: error fetching interface information: Device not found
nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/12-dhcpd' took too long; killing it.
NET[863]: /etc/sysconfig/network-scripts/ifup-post : updated /etc/resolv.conf
nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/20-squid' took too long; killing it.
NetworkManager[413]: <warn> Dispatcher script timed out: Script '/etc/NetworkManager/dispatcher.d/13-named' timed out.
NetworkManager[413]: <warn> Dispatcher script timed out: Script '/etc/NetworkManager/dispatcher.d/20-squid' timed out.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.?
2.
3.
  
Actual results:
"warn" in logs

Expected results:
"clear" logs

Additional info:
NetworkManager-0.9.7.0-12.git20121004.fc18.i686
Executing "dispatchers" from shell, return without any problem.

Comment 1 Jirka Klimes 2013-02-11 07:56:18 UTC
The NM dispatcher uses 3 seconds timeout for the scripts. Is there any reason why the scripts should run that long?
Did you inspect the scripts what they do? Did you modify them?

E.g. 20-squid just reloads the squid configuration using systemctl:
/bin/systemctl reload squid.service

Comment 2 la_antorcha_guia 2013-02-11 11:07:44 UTC
"killed" scripts are fedora default, but I have other script (supposed not killed in logs) that could take 6 seconds or more while connect remote machine.

Comment 3 Fedora End Of Life 2013-04-03 14:27:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 4 Orion Poplawski 2014-01-21 19:09:50 UTC
Do we really need to kill the scripts?  Can we just stop waiting for them?  I have a local script that restarts autofs, but that can take longer than 3 seconds - and killing leaves autofs down:

Jan 21 11:25:46 paiute systemd: Started Network Manager Script Dispatcher Service.
Jan 21 11:25:47 paiute nm-dispatcher.action: NetworkManagerDispatcher: performing autofs stop
Jan 21 11:25:47 paiute NetworkManagerDispatcher: performing autofs stop
Jan 21 11:25:47 paiute systemd: Stopping Automounts filesystems on demand...
Jan 21 11:25:47 paiute automount[13514]: umount_autofs_indirect: ask umount returned busy /data
Jan 21 11:25:49 paiute automount[13514]: umount_autofs_indirect: ask umount returned busy /home
Jan 21 11:25:50 paiute nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/28-autofs' took too long; killing it.
Jan 21 11:25:51 paiute systemd: Stopped Automounts filesystems on demand.

Comment 5 Dan Williams 2014-01-24 20:21:50 UTC
(In reply to Orion Poplawski from comment #4)
> Do we really need to kill the scripts?  Can we just stop waiting for them? 
> I have a local script that restarts autofs, but that can take longer than 3
> seconds - and killing leaves autofs down:
> 
> Jan 21 11:25:46 paiute systemd: Started Network Manager Script Dispatcher
> Service.
> Jan 21 11:25:47 paiute nm-dispatcher.action: NetworkManagerDispatcher:
> performing autofs stop
> Jan 21 11:25:47 paiute NetworkManagerDispatcher: performing autofs stop
> Jan 21 11:25:47 paiute systemd: Stopping Automounts filesystems on demand...
> Jan 21 11:25:47 paiute automount[13514]: umount_autofs_indirect: ask umount
> returned busy /data
> Jan 21 11:25:49 paiute automount[13514]: umount_autofs_indirect: ask umount
> returned busy /home
> Jan 21 11:25:50 paiute nm-dispatcher.action: Script
> '/etc/NetworkManager/dispatcher.d/28-autofs' took too long; killing it.
> Jan 21 11:25:51 paiute systemd: Stopped Automounts filesystems on demand.

In the future NM will Just Wait Longer and yes, it could just continue without killing the script.

Comment 6 Martin Dimitrov 2014-03-13 11:57:27 UTC
I'm experiencing the same problem in Fedora 19. I can participate in testing reporting about this "feature" request if some developer would handle the implementation.

Comment 7 Charles R. Anderson 2014-04-15 13:48:49 UTC

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


Note You need to log in before you can comment on or make changes to this bug.