Bug 1033518

Summary: F20 - rpcbind: Cannot open '/var/lib/rpcbind/rpcbind.xdr' file for reading, errno 2 (No such file or directory)
Product: [Fedora] Fedora Reporter: IBM Bug Proxy <bugproxy>
Component: rpcbindAssignee: Steve Dickson <steved>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 20CC: jkachuck, mjc, steved, wgomerin
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-23 18:04:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
varlogmessages from the affected machine none

Description IBM Bug Proxy 2013-11-22 10:01:12 UTC
== Comment: #0 - Shubham Goyal <shubgoya.com> - 2013-11-20 13:12:52 ==
Description of problem: After a fresh installation am getting below messages in "/var/log/messages":

Nov 20 09:18:30 transam2s-lp1 rpcbind: Cannot open '/var/lib/rpcbind/rpcbind.xdr' file for reading, errno 2 (No such file or directory)
Nov 20 09:18:30 transam2s-lp1 rpcbind: Cannot open '/var/lib/rpcbind/portmap.xdr' file for reading, errno 2 (No such file or directory)

How reproducible: Always

Version-Release number of selected component like OS, packages etc
[root@transam2s-lp1 ~]# uname -a
Linux transam2s-lp1.xxxx.ibm.com 3.11.6-301.fc20.ppc64p7 #1 SMP Mon Oct 21 18:49:17 MST 2013 ppc64 ppc64 ppc64 GNU/Linux

Steps to Reproduce:

1) You'll get these messages in "/var/log/messages" post fresh install

Actual results: System showing these message

Expected results: Absence of any such failure messages

Additional info: Attaching serial console logs

== Comment: #1 - Shubham Goyal <shubgoya.com> - 2013-11-20 13:16:06 ==


== Comment: #7 - Onkar N. Mahajan <onmahaja.com> - 2013-11-22 04:51:13 ==
Seems like similar problem is fixed in debian in /etc/init.d/rpcbind script 

https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/KS1aD5alLUU

doing equivalent here  -  

[root@transam2s-lp1 BUILD]# diff -Naur rpcbind-0.2.1.orig/src/warmstart.c rpcbind-0.2.1/src/warmstart.c 
--- rpcbind-0.2.1.orig/src/warmstart.c	2013-11-22 02:23:04.206337364 -0700
+++ rpcbind-0.2.1/src/warmstart.c	2013-11-22 02:46:33.761666679 -0700
@@ -105,7 +105,7 @@
 	if (debugging)
 		fprintf(stderr, "rpcbind: using '%s' startup file\n", filename);
 
-	if ((fp = fopen(filename, "r")) == NULL) {
+	if ((fp = fopen(filename, "w+")) == NULL) {
 		syslog(LOG_ERR,
 			"Cannot open '%s' file for reading, errno %d (%s)", 
 			filename, errno, strerror(errno));


with this I verified that  no message is printed to the /var/log/message for 'rpcbind -w'

Comment 1 IBM Bug Proxy 2013-11-22 10:01:36 UTC
Created attachment 827664 [details]
varlogmessages from the affected machine

Comment 2 IBM Bug Proxy 2013-12-23 05:50:42 UTC
------- Comment From onmahaja.com 2013-12-23 05:46 EDT-------
** Externalizing **

Am able to reproduce this issue in F20 PPC GA as well. Below is the kernel version.

Linux transam2s-lp1.xxxx.ibm.com 3.11.10-301.fc20.ppc64p7 #1 SMP Tue Dec 10 00:35:14 MST 2013 ppc64 ppc64 ppc64 GNU/Linux

Comment 3 Steve Dickson 2014-10-23 18:04:31 UTC
So restarts and yum updates work rpcbind has to be started with -w 
flag which causes all the current port and service state to be
written to a file. So when that file does not exist
during start up, it should be logged.