Bug 1343986

Summary: systemd-shutdown[1]: Could not unmount /run/netns/namespace: Invalid argument
Product: Red Hat Enterprise Linux 7 Reporter: Jan Stodola <jstodola>
Component: systemdAssignee: Michal Sekletar <msekleta>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: fedoraproject, msekleta, systemd-maint-list
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-15 07:42:00 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:
Bug Depends On:    
Bug Blocks: 1256306, 1298243, 1420851    

Description Jan Stodola 2016-06-08 12:39:45 UTC
Description of problem:
When verifying bug 1338759 I noticed the following warning when rebooting the system:

[   42.401813] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[   42.404672] systemd-shutdown[1]: Unmounting file systems.
[   42.406297] systemd-shutdown[1]: Unmounting /run/netns/namespace.
[   42.407469] systemd-shutdown[1]: Unmounting /run/netns/namespace.
[   42.408819] systemd-shutdown[1]: Unmounting /run/netns.
[   42.474532] systemd-shutdown[1]: Unmounting /run/netns/namespace.
[   42.475970] systemd-shutdown[1]: Unmounting /run/netns/namespace.
[   42.477191] systemd-shutdown[1]: Could not unmount /run/netns/namespace: Invalid argument
[   42.478824] systemd-shutdown[1]: Not all file systems unmounted, 1 left.

Version-Release number of selected component (if applicable):
systemd-219-19.el7
dracut-033-360.el7_2.1

How reproducible:
always

Steps to Reproduce:
1. install RHEL-7.2 GA with root file system on LVM
2. update dracut to version 033-360.el7_2.1
3. Add a network namespace:
# ip netns add namespace
4. # systemctl reboot

Actual results:
warning message on reboot:
...
systemd-shutdown[1]: Could not unmount /run/netns/namespace: Invalid argument
...

Expected results:
no warning message

Additional info:
From IRC conversation:
<harald> systemd should probably delete all network namespaces on shutdown

Comment 5 RHEL Program Management 2020-12-15 07:42:00 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.