Bug 5796

Summary: rpc.nfsd complains about setting version during boot
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Cristian Iorga <cristian.iorga>
Component: connectivityAssignee: Cristian Iorga <cristian.iorga>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
core-image-base qemux86-64 kernel 3.14
none
rpc.nfsd will start the nfs server normally none

Description Cristian Iorga 2014-02-06 16:06:42 UTC
This happens on qemux86-64 QEMU machine, on master, with commit 82f9c2bcff3e977beefde6048d2ba32d17acbbd0.

Ths issue:

Thu Feb  6 10:54:49 2014: starting 8 nfsd kernel threads: rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
Thu Feb  6 10:54:49 2014: done

Full log of /var/log/boot:

root@qemux86-64:~# cat /var/log/boot 
Thu Feb  6 10:54:35 2014: bootlogd.
Thu Feb  6 10:54:35 2014: Populating dev cache
Thu Feb  6 10:54:43 2014: ALSA: Restoring mixer settings...
Thu Feb  6 10:54:43 2014: /usr/sbin/alsactl: load_state:1729: No soundcards found...
Thu Feb  6 10:54:43 2014: net.ipv4.conf.default.rp_filter = 1
Thu Feb  6 10:54:43 2014: net.ipv4.conf.all.rp_filter = 1
Thu Feb  6 10:54:43 2014: Starting atd: OK
Thu Feb  6 10:54:43 2014: INIT: Entering runlevel: 5
Thu Feb  6 10:54:43 2014: Configuring network interfaces... done.
Thu Feb  6 10:54:44 2014: Starting system message bus: dbus.
Thu Feb  6 10:54:44 2014: Starting OpenBSD Secure Shell server: sshd
Thu Feb  6 10:54:44 2014:   generating ssh RSA key...
Thu Feb  6 10:54:45 2014:   generating ssh ECDSA key...
Thu Feb  6 10:54:45 2014:   generating ssh DSA key...
Thu Feb  6 10:54:47 2014: done.
Thu Feb  6 10:54:47 2014: Starting rpcbind daemon...done.
Thu Feb  6 10:54:47 2014: creating NFS state directory: done
Thu Feb  6 10:54:47 2014: starting statd: done
Thu Feb  6 10:54:48 2014: Starting Distributed Compiler Daemon: distcc.
Thu Feb  6 10:54:49 2014: starting 8 nfsd kernel threads: rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
Thu Feb  6 10:54:49 2014: done
Thu Feb  6 10:54:49 2014: starting mountd: done
Thu Feb  6 10:54:49 2014: Starting system log daemon...0
Thu Feb  6 10:54:50 2014: Starting kernel log daemon...0
Thu Feb  6 10:54:51 2014: Starting internet superserver: xinetd.
Thu Feb  6 10:54:51 2014: Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon/etc/core-lsb/lsb_log_message: line 26: begin: command not found
Thu Feb  6 10:54:51 2014: 
Thu Feb  6 10:54:52 2014: Starting Lighttpd Web Server: lighttpd.
Thu Feb  6 10:54:52 2014: cupsd: Child exited with status 1
Thu Feb  6 10:54:52 2014: cups: unable to start scheduler.
Thu Feb  6 10:54:53 2014: Starting crond: OK
Thu Feb  6 10:54:53 2014: Starting OProfileUI server
Thu Feb  6 10:54:53 2014: 
root@qemux86-64:~# uname -a
Linux qemux86-64 3.10.25-yocto-standard #5 SMP PREEMPT Thu Feb 6 11:29:14 EET 2014 x86_64 GNU/Linux
root@qemux86-64:~# rpm -qa | grep nfs
libnfsidmap0-0.25-r0.core2_64
kernel-module-nfsd-3.10.25+git0+4d658aa580_79af968f2f-r0.qemux86_64
packagegroup-base-nfs-1.0-r76.qemux86_64
nfs-utils-client-1.2.9-r0.core2_64
nfs-utils-1.2.9-r0.core2_64
packagegroup-core-nfs-server-1.0-r2.all
nfs-export-root-1.0-r1.core2_64
root@qemux86-64:~# rpm -qa | grep rpc  
libtirpc1-0.2.4-r0.core2_64
rpcbind-0.2.1-r0.core2_64
python-xmlrpc-2.7.3-r0.3.core2_64
root@qemux86-64:~#
Comment 1 Cristian Iorga 2014-02-06 16:07:01 UTC
Investigation started.
Comment 2 Cristian Iorga 2014-04-01 07:20:22 UTC
Similar issue:
rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
https://bugzilla.redhat.com/show_bug.cgi?id=1004104
Comment 3 Cristian Iorga 2014-04-01 07:22:06 UTC
This issue is generated by the fact that there is no support for NFS protocol v4.2 in kernel 3.10.x (on which the bug was opened), as such, the attempt the nfs server will fail.
Comment 4 Cristian Iorga 2014-04-01 07:22:52 UTC
Issue is no longer present after the upgrade to Linux kernel 3.14.
Comment 5 Cristian Iorga 2014-04-01 07:23:29 UTC
Created attachment 1884 [details]
core-image-base qemux86-64 kernel 3.14
Comment 6 Cristian Iorga 2014-04-01 07:24:25 UTC
Created attachment 1885 [details]
rpc.nfsd will start the nfs server normally
Comment 7 Cristian Iorga 2014-04-01 07:24:53 UTC
As can be seen from the attached screenshots, issue is resolved now.