Bug 1238865 - nm-dispatcher ignores 'pre-down' scripts on suspend
Summary: nm-dispatcher ignores 'pre-down' scripts on suspend
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 22
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-02 20:29 UTC by Dominique Brazziel
Modified: 2016-07-19 20:08 UTC (History)
4 users (show)

Fixed In Version: NetworkManager-1.4.0-0.3.git20160621.072358da.fc25
Clone Of:
Environment:
Last Closed: 2016-07-19 19:52:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 748531 0 None None None 2019-04-23 13:19:10 UTC

Description Dominique Brazziel 2015-07-02 20:29:07 UTC
Description of problem:
Dispatcher scripts in 'pre-down' ('/etc/NetworkManager/dispatcher.d/pre-down.d')
are not executed before suspend.  They are executed in the instance of an NM
restart.

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


How reproducible:
Select 'Suspend' from the desktop (i.e. XFCE4, GNOME, LXDE, etc.) environment  

Steps to Reproduce:
1.  Select 'Suspend' from the menu in the upper right corner (button has user name)
2.  Resume the system
3.  

Actual results:
See the systemd journal entries for 'nm-dispatcher' (journalctl -a _COMM=nm-dispatcher), no script(s) were dispatched for action 'pre-down'.  

Expected results:
Should see messages in the nm-dispatcher journal entries indicating the script(s) in 'pre-down.d' were executed.

Additional info:
Seems like NM ignores 'pre-down' when it gets the message (via dbus/UPower?) that it should go to sleep.  NM begins deactivating the device immediately:

(wlan0): device state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Jul 02 09:57:17 delldm51 NetworkManager[829]: <info>  (wlan0): deactivating device (reason 'sleeping') [37]
Jul 02 09:57:17 delldm51 NetworkManager[829]: <info>  NetworkManager state is now ASLEEP
Jul 02 09:57:36 delldm51 NetworkManager[829]: <info>  wake requested (sleeping: yes  enabled: yes)
Jul 02 09:57:36 delldm51 NetworkManager[829]: <info>  waking up...
Jul 02 09:57:36 delldm51 NetworkManager[829]: <info>  (eth0): device state change: unavailable -> unmanaged (reason 'sleeping') [20 10 37]

Comment 1 Fedora Admin XMLRPC Client 2015-08-18 15:00:19 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora End Of Life 2016-07-19 19:52:12 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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