Bug 796171

Summary: On shutdown /var/lib/nfs/rpc_pipefs cannot be unmounted because it is busy
Product: [openSUSE] openSUSE 12.2 Reporter: Jan Ritzerfeld <suse>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: nfbrown
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: systemd-journalctl output for shutdown
Full file created using "shutdown complete eventually" debug section

Description Jan Ritzerfeld 2012-12-30 07:12:31 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.24 (KHTML, like Gecko) Chrome/26.0.1371.0 Safari/537.24 SUSE/26.0.1371.0

On every shutdown, umount always complains that it cannot unmount /var/lib/nfs/rpc_pipefs because the target is busy. I am using autofs to mount some NFS shares. I attach the systemd-journalctl output for a shutdown.


Reproducible: Always
Comment 1 Jan Ritzerfeld 2012-12-30 07:13:20 UTC
Created attachment 518509 [details]
systemd-journalctl output for shutdown
Comment 2 Neil Brown 2013-01-07 04:12:44 UTC
I think this looks like a systemd-config issue more than an NFS issue.


/etc/init.d/nfs stop

 will unmount /var/lib/nfs/rpc_pipefs at the correct time, so systemd/umount shouldn't even try to unmount it.
But I don't know which bit code is responsible for running umount on /var/lib/nfs/rpc_pipefs too early and causing the message:

Dec 29 15:03:17 karl.site umount[4795]: umount: /var/lib/nfs/rpc_pipefs: target is busy.

Fredrick?
Comment 3 Frederic Crozat 2013-01-07 17:06:06 UTC
yes, systemd is trying to unmount all mount points.

But it should be do that only after initscripts have been stopped, so it shouldn't matter.

The real fix (for 12.3) would be to replace nfs initscript with various .service / .mount files, like it is done in Fedora.

Could you try doing the "shutdown complete eventually" debug section from http://freedesktop.org/wiki/Software/systemd/Debugging#Shutdown_Completes_Eventually
so we get a exact trace of what is happening ?

Thanks.
Comment 4 Jan Ritzerfeld 2013-01-13 17:20:00 UTC
Created attachment 520047 [details]
Full file created using "shutdown complete eventually" debug section
Comment 5 Frederic Crozat 2013-01-30 13:08:48 UTC
ok, "reproduced" in a 12.2 VM: I see systemd trying to umount /var/lib/nfs/rpc_pipefs before stopping nfs service. It doesn't block anything on my test system but it looks suspicious, nevertheless. 

I'll investigate.
Comment 6 Frederic Crozat 2013-01-30 17:56:08 UTC
bug is already fixed in Factory / systemd 195 by upstream.

I think I've backported the fix (it seems to work on my test case but I didn't had busy unmount), please test systemd from http://download.opensuse.org/repositories/home:/fcrozat:/branches:/openSUSE:/12.2:/Update/openSUSE_12.2_Update/
Comment 7 Jan Ritzerfeld 2013-03-17 17:23:35 UTC
Sorry that I did not test it, I could not reproduce it anymore. This week I was busy installing 12.3. I seems to be fixed! Many thanks for your effort.

However, should I resolve this bug as WONTFIX (because 12.3 is out) or FIXED and change the Product to 12.3?
Comment 8 Jan Ritzerfeld 2013-04-28 09:37:24 UTC
After I fully set up my 12.3, the problem is back. I will be trying to get logs again. BTW, the path in the "shutdown complete eventually" debug section seems to be /usr/lib/systemd/system-shutdown/ on 12.3.
Comment 9 Frederic Crozat 2013-06-12 10:58:34 UTC
requesting maintenance update for 12.2 : mr 178807
Comment 10 Benjamin Brunner 2013-06-13 03:34:17 UTC
Update started for openSUSE 12.2. See openSUSE:Maintenance:1775. Thanks for your submission.
Comment 11 Benjamin Brunner 2013-06-20 07:08:04 UTC
Update released for openSUSE 12.2. Resolved fixed.
Comment 12 Swamp Workflow Management 2013-06-20 08:04:33 UTC
openSUSE-RU-2013:1055-1: An update that has four recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 793411,796171,804575,808144
CVE References: 
Sources used:
openSUSE 12.2 (src):    systemd-44-10.15.1, systemd-gtk-44-10.15.1