Red Hat Bugzilla – Bug 1542391
calling service reload after starting firewalld stop NM daemon
Last modified: 2018-05-08 14:32:09 EDT
Description of problem: NM service goes down after calling systemctl reload NetworkManager after I unmasked firewalld and started it. This is very odd. Version-Release number of selected component (if applicable): 1.10.2-10 How reproducible: always Steps to Reproduce: systemctl unmask firewalld systemctl start firewalld systemctl reload NetworkManager Actual results: no NM service running Expected results: NM should be running and conf reloaded Additional info:
Created attachment 1391916 [details] logs
without unmasking it doesn't happen.
Created attachment 1392041 [details] journal for NetworkManager restarting I replaced NetworkManager.service's ExecStart with: ExecStart=/usr/bin/strace -s 2048 -ttt -x -f -D /sbin/NetworkManager --no-daemon Attached is the journal. We see: Feb 06 06:38:57 gsm-r5s2-01.wlan.rhts.eng.bos.redhat.com systemd[1]: Reloading. Feb 06 06:39:08 gsm-r5s2-01.wlan.rhts.eng.bos.redhat.com NetworkManager[2874]: <info> [1517917148.9204] audit: op="reload" arg="0" pid=2995 uid=0 result="success" Feb 06 06:39:08 gsm-r5s2-01.wlan.rhts.eng.bos.redhat.com strace[2874]: [pid 2878] 1517917148.963770 restart_syscall(<... resuming interrupted poll ...> <unfinished ...> Feb 06 06:39:08 gsm-r5s2-01.wlan.rhts.eng.bos.redhat.com strace[2874]: [pid 2880] 1517917148.963792 --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=1, si_uid=0} --- Feb 06 06:39:08 gsm-r5s2-01.wlan.rhts.eng.bos.redhat.com strace[2874]: [pid 2874] 1517917148.963801 <... poll resumed> ) = ? ERESTART_RESTARTBLOCK (Interrupted by signal) Feb 06 06:39:08 gsm-r5s2-01.wlan.rhts.eng.bos.redhat.com strace[2874]: [pid 2880] 1517917148.963813 --- SIGCONT {si_signo=SIGCONT, si_code=SI_USER, si_pid=1, si_uid=0} --- Feb 06 06:39:08 gsm-r5s2-01.wlan.rhts.eng.bos.redhat.com NetworkManager[2874]: <info> [1517917148.9641] caught SIGTERM, shutting down normally. Apparently, systemd is not only executing ExecReload ExecReload=/usr/bin/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.Reload uint32:0 but also sending SIGTERM, which causes NetworkManager to exit.
Created attachment 1392044 [details] systemctl show NetworkManager.service output Also, the output of `systemctl show NetworkManager` Note: ExecReload={ path=/usr/bin/dbus-send ; argv[]=/usr/bin/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.Reload uint32:0 ; ignore_errors=no ; start_time=[Tue 2018-02-06 06:39:08 EST] ; stop_time=[Tue 2018-02-06 06:39:08 EST] ; pid=2995 ; code=exited ; status=0 } which matches the time from the previous log, when SIGTERM was received.
Reassigning to systemd, to understand why SIGTERM was sent.
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/194 -> post
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. https://access.redhat.com/errata/RHBA-2018:0711