Bug 1013931

Summary: Executing gverify.sh without any option should display its usage.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Gowrishankar Rajaiyan <grajaiya>
Component: geo-replicationAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED EOL QA Contact: M S Vishwanath Bhat <vbhat>
Severity: low Docs Contact:
Priority: low    
Version: 2.1CC: avishwan, chrisw, csaba, mzywusko, rwheeler
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Gowrishankar Rajaiyan 2013-10-01 05:08:39 UTC
Description of problem: gverify.sh displays the usage of "ping" command with ambiguous redirect message for log_file. Ideally executing gverify.sh without any options should display its usage, instead of having the user to open the file to find it.


Version-Release number of selected component (if applicable):
glusterfs-geo-replication-3.4.0.33rhs-1.el6rhs.x86_64

How reproducible: Always


Steps to Reproduce:
1. Execute /usr/libexec/glusterfs/gverify.sh


Actual results:
# /usr/libexec/glusterfs/gverify.sh 
/usr/libexec/glusterfs/gverify.sh: line 100: $log_file: ambiguous redirect
Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline]
            [-p pattern] [-s packetsize] [-t ttl] [-I interface or address]
            [-M mtu discovery hint] [-S sndbuf]
            [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination
/usr/libexec/glusterfs/gverify.sh: line 107: $log_file: ambiguous redirect


Expected results: Should display the "Usage" of gverify.sh.


Additional info:

Comment 3 Aravinda VK 2015-08-06 14:22:14 UTC
*** Bug 1013947 has been marked as a duplicate of this bug. ***

Comment 4 Aravinda VK 2015-11-25 08:51:30 UTC
Closing this bug since RHGS 2.1 release reached EOL. Required bugs are cloned to RHGS 3.1. Please re-open this issue if found again.

Comment 5 Aravinda VK 2015-11-25 08:52:18 UTC
Closing this bug since RHGS 2.1 release reached EOL. Required bugs are cloned to RHGS 3.1. Please re-open this issue if found again.