Bug 722795 - Doesn't start in Rawhide
Summary: Doesn't start in Rawhide
Keywords:
Status: CLOSED DUPLICATE of bug 699040
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-17 21:18 UTC by Matěj Cepl
Modified: 2018-04-11 12:51 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-03 11:11:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matěj Cepl 2011-07-17 21:18:37 UTC
Description of problem:
After upgrade to Rawhide nfslock doesn't start:

bradford:~# systemctl status nfslock.service
nfslock.service - LSB: Start up the NFS file locking sevice
	  Loaded: loaded (/etc/rc.d/init.d/nfslock)
	  Active: failed since Sun, 17 Jul 2011 23:16:20 +0200; 3s ago
	 Process: 2523 ExecStart=/etc/rc.d/init.d/nfslock start (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/nfslock.service
bradford:~# tail /var/log/messages
Jul 17 23:15:41 bradford NetworkManager[1049]: <info>   nameserver '192.168.1.13'
Jul 17 23:15:41 bradford dbus[1079]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Jul 17 23:15:41 bradford dbus[1079]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jul 17 23:15:43 bradford nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/90-ipv6-tunnel' exited with error status 127.
Jul 17 23:15:43 bradford NMdispatch-dnsmasq: INTERFACE=wlan0, UPDOWN=dhcp4-change
Jul 17 23:16:20 bradford rpc.statd[2537]: Version 1.2.4 starting
Jul 17 23:16:20 bradford sm-notify[2538]: Version 1.2.4 starting
Jul 17 23:16:20 bradford rpc.statd[2537]: failed to create RPC listeners, exiting
Jul 17 23:16:20 bradford systemd[1]: nfslock.service: control process exited, code=exited status=1
Jul 17 23:16:20 bradford systemd[1]: Unit nfslock.service entered failed state.
bradford:~# 

Version:
nfs-utils-1.2.4-2.fc16.x86_64

Comment 1 Michal Jaegermann 2011-07-24 19:43:28 UTC
Checking 'systemctl status nfslock.service' shows that this tries to run:
...
Process: 1211 ExecStart=/etc/rc.d/init.d/nfslock start ...
...
and fails.  OTOH tracing '/etc/rc.d/init.d/nfslock start' one can see that
sourcing from that file /etc/rc.d/init.d/functions results in an attempt to run 'systemctl_redirect /etc/init.d/nfslock start' which ends up with a circular run of '/bin/systemctl start nfslock.service' and we are back when we started.

It seems to me that this is very unlikely to run.

Comment 2 Lennart Poettering 2011-07-28 13:35:04 UTC
Michal: we actually guard against that and forward things to systemctl only if the PPID is not 1. So this is not the explanation here.

Comment 3 Michal Jaegermann 2011-07-28 14:04:39 UTC
(In reply to comment #2)

> ... and forward things to systemctl only if the PPID is not 1.

I am not entirely sure what is "the PPID" but we are not running here init so it will be not 1.

>  So this is not the explanation here.

In such case maybe this is related to bug 725259?  In the current rawhide attempts to start NFS just failed.  Yes, I know that nfslock should be able to run independently.

Comment 4 Matěj Cepl 2011-07-28 18:28:13 UTC
(In reply to comment #3)
> I am not entirely sure what is "the PPID" but we are not running here init so
> it will be not 1.

Parent PID. Every process (aside from process 1) has some parent.

Comment 5 Steve Dickson 2011-07-28 19:36:31 UTC
Hmm... I bet this has to with changes I made to rpcbind.... 
I converted rpcbind to use systemd but not nfs-utils...

Comment 6 Zdenek Kabelac 2011-07-29 15:38:48 UTC
I've started manually 

systemctl start rpcbind.service

systemctl restart nfs.service 

And it now works for me.

Comment 7 Steve Dickson 2011-07-29 15:51:00 UTC
(In reply to comment #6)
> I've started manually 
> 
> systemctl start rpcbind.service
> 
> systemctl restart nfs.service 
> 
> And it now works for me.

Ok... thanks for verifying that... I'm working
on the nfs-utils conversion atm...

Comment 8 Michal Jaegermann 2011-07-29 23:28:06 UTC
(In reply to comment #6)
> I've started manually 
> 
> systemctl start rpcbind.service
> 
> systemctl restart nfs.service 


That looks like pertinent to bug 725259 and not that one which was about nfslock. :-)  But indeed nfslock requires at least rpc.statd and starting rpcbind.service seems to help in case of nfslock.service too.  OTOH NFS would like to see rpc.mountd and rpc.rquotad running (and not necessarily rpc.statd, right?).

Comment 9 Steve Dickson 2011-08-03 11:11:35 UTC

*** This bug has been marked as a duplicate of bug 699040 ***


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