Bug 1339877

Summary: nfsidmap add help -h option to output usage info
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: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: chunwang, eguan, steved
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nfs-utils-1.3.0-0.29.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 05:03:58 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 2016-05-26 04:26:06 UTC
Description of problem:
Currently the nfsidmap don't support "-h" option. Even though the usage info can be showed up.

Version-Release number of selected component (if applicable):
nfs-utils-1.3.0-0.27.el7

How reproducible:
100% easy

Steps to Reproduce:
1. nfsidmap -h

Actual results:
[root@ibm-x3550m4-02 ~]# nfsidmap -h
nfsidmap: invalid option -- 'h'
nfsidmap: Usage: nfsidmap [-v] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
[root@ibm-x3550m4-02 ~]# nfsidmap --help
nfsidmap: invalid option -- '-'
nfsidmap: Usage: nfsidmap [-v] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
nfsidmap: invalid option -- 'h'
nfsidmap: Usage: nfsidmap [-v] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
nfsidmap: invalid option -- 'e'
nfsidmap: Usage: nfsidmap [-v] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
nfsidmap: invalid option -- 'p'
nfsidmap: Usage: nfsidmap [-v] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
No .id_resolver keys found.
[root@ibm-x3550m4-02 ~]# nfsidmap -xx
nfsidmap: invalid option -- 'x'
nfsidmap: Usage: nfsidmap [-v] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
nfsidmap: invalid option -- 'x'
nfsidmap: Usage: nfsidmap [-v] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
[root@ibm-x3550m4-02 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.27.el7.x86_64
[root@ibm-x3550m4-02 ~]# 


Expected results:
nfsidmap should spport "-h" option

Comment 3 Yongcheng Yang 2016-06-12 01:47:35 UTC
Verified with nfs-utils-1.3.0-0.29.el7

[root@ibm-x3550m4-02 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.29.el7.x86_64
[root@ibm-x3550m4-02 ~]# nfsidmap -h
nfsidmap: Usage: nfsidmap [-vh] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
[root@ibm-x3550m4-02 ~]# nfsidmap --help
nfsidmap: invalid option -- '-'
nfsidmap: Usage: nfsidmap [-vh] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
[root@ibm-x3550m4-02 ~]# nfsidmap -xx
nfsidmap: invalid option -- 'x'
nfsidmap: Usage: nfsidmap [-vh] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]
[root@ibm-x3550m4-02 ~]# echo $?
1
[root@ibm-x3550m4-02 ~]# 
[root@ibm-x3550m4-02 ~]# man nfsidmap | col -b | grep -w "\-h"
       nfsidmap -h
       -h     Display usage message.
[root@ibm-x3550m4-02 ~]#

Comment 4 Yongcheng Yang 2016-06-12 01:48:34 UTC
Move to VERIFIED as comment 3 and continue to run the automatic case.

Comment 6 errata-xmlrpc 2016-11-04 05:03:58 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://rhn.redhat.com/errata/RHBA-2016-2383.html