Bug 1551903

Summary: nfsdcltrack fails to initialize the database in arches other than x86_64
Product: Red Hat Enterprise Linux 7 Reporter: Yongcheng Yang <yoyang>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Yongcheng Yang <yoyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.5CC: xzhou
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-utils-1.3.0-0.56.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 11:48:04 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:

Description Yongcheng Yang 2018-03-06 07:00:58 UTC
Description of problem:
"nfsdcltrack init" fails in arches ppc64, ppc64le, aarch64 or s390x (except x86_64).

Previously It returned "0" and we just didn't notice it until Bug 1461349 was fixed.

However, I have no idea whether it's expected or not. Do we support nfsdcltrack in those arches?


Version-Release number of selected component (if applicable):
This has been existing for long time and still reproducible in nfs-utils-1.3.0-0.54.el7


How reproducible:
100% easy

Steps to Reproduce:
1. nfsdcltrack init

Actual results:
[root@~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.50.el7.ppc64
[root@~]# systemctl restart nfs
[root@~]# nfsdcltrack init
Usage: nfsdcltrack [ -hfd ] [ -s dir ] < cmd > < arg >
Where < cmd > is one of the following and takes the following < arg >:
    init
    create <nfs_client_id4>
    remove <nfs_client_id4>
    check  <nfs_client_id4>
    gracedone <epoch time>
[root@~]# echo $?
0
^^^
[root@~]# rpm -Uvh nfs-utils-1.3.0-0.51.el7.ppc64.rpm >/dev/null
[root@~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.51.el7.ppc64
[root@~]# systemctl restart nfs
[root@~]# nfsdcltrack init
Usage: nfsdcltrack [ -hfd ] [ -s dir ] < cmd > < arg >
Where < cmd > is one of the following and takes the following < arg >:
    init
    create <nfs_client_id4>
    remove <nfs_client_id4>
    check  <nfs_client_id4>
    gracedone <epoch time>
[root@~]# echo $?
1
^^
[root@~]#


Expected results:
success

Comment 1 Steve Dickson 2018-06-25 17:23:31 UTC
commit a1f4e16d0426274d15c785ead3584bb7f9df32fd
Author: Steve Dickson <steved>
Date:   Sun Jun 24 14:21:24 2018 -0400

    nfsdcltrack: getopt_long() fails on a non x86_64 archs

Comment 5 errata-xmlrpc 2018-10-30 11:48:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3311