Bug 1249644

Summary: umount network filesystems order slows shutdown procedure
Product: [Fedora] Fedora Reporter: Helio Chissini de Castro <helio>
Component: systemdAssignee: systemd-maint
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 22CC: johannbg, jonathan, jsynacek, kzak, lnykryn, msekleta, s, systemd-maint, zbyszek
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-07-19 19:16:13 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 Helio Chissini de Castro 2015-08-03 13:14:40 UTC
Network filesystems are schedule to bee unmounted after the network is shut down.

NetworkManager is already down and system keep trying to unmount nfs and samba shared for around 120 seconds per share.

Network filesystems should be unmounted before networkmanager.

Comment 1 Zbigniew Jędrzejewski-Szmek 2015-08-03 15:46:05 UTC
They should already be ordered so: network mount units are ordered after network.target, and NetworkManager.service is ordered before network.target. Shutdown is performed in reverse, so network mounts are stopped first, then network.target, then NetworkManager.service.

Can you show the output of 'systemctl show -p Before,After,Wants xxx' for xxx being your network mounts (e.g. some-path.mount) and NetworkManager.service?

Comment 2 Helio Chissini de Castro 2015-08-03 17:01:33 UTC
Here we go, system is a fedora 22 x86_64

[root@tiefighter ~]# systemctl show -p Before,After,Wants NetworkManager.service
Wants=network.target system.slice
Before=NetworkManager-wait-online.service network.target multi-user.target shutdown.target network.service
After=systemd-journald.socket system.slice basic.target netcf-transaction.service firewalld.service

[root@tiefighter ~]# systemctl show -p Before,After,Wants /media/multimedia
Wants=network-online.target system.slice
Before=umount.target remote-fs.target
After=systemd-journald.socket system.slice network.target remote-fs-pre.target -.mount network-online.target

Comment 3 Fedora End Of Life 2016-07-19 19:16:13 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.