Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 917493

Summary: oo-register-dns on broker has duplicate options
Product: OpenShift Container Platform Reporter: yangmingzhi <miyang>
Component: NodeAssignee: Jason DeTiberus <jdetiber>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 1.1.1CC: bleanhar, jdetiber, jinzhang, libra-onpremise-devel, lmeyer, mshao, xjia
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openshift-origin-broker-util-1.9.7-1.2.el6op Doc Type: Bug Fix
Doc Text:
Cause: oo-register-dns help text listed -h option twice. Consequence: This is confusing. Fix: Update to openshift-origin-broker-util-1.9.7-1.2.el6op Result: The -h option is only for host name and -? is for help.
Story Points: ---
Clone Of: 917491 Environment:
Last Closed: 2013-07-09 19:50:10 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:
Bug Depends On: 917491    
Bug Blocks:    

Description yangmingzhi 2013-03-04 07:50:31 UTC
+++ This bug was initially created as a clone of Bug #917491 +++

Description of problem:
oo-register-dns on broker has duplicate options.It will confuse customers.

Version-Release number of selected component (if applicable):
puddle:2013-02-27.1

How reproducible:
always

Steps to Reproduce:
1.run "oo-register-dns -h" on broker

  
Actual results:
[root@broker ~]# oo-register-dns -h
/usr/sbin/oo-register-dns: option requires an argument -- h
== Synopsis

oo-register-dns: Register node's DNS name with Bind
  This command must be run as root.

== Usage

oo-register-dns --with-node-hostname node1 \
                --with-node-ip 192.168.0.1 \
                --domain example.com \
                --dns-server broker.example.com

== List of arguments
  -h|--with-node-hostname   host        Hostname for the node (required)
  -n|--with-node-ip         ip          IP of the node (required)
  -d|--domain               domain      Domain name for this node (optional, default: example.com)  
  -s|--dns-server           server      IP address or hostname of DNS server to update (optional, default: 127.0.0.1)  
  -k|--key-file             file        Bind key (optional, default: /var/named/<domain name>.key)  
  -h|--help                             Print this message

[root@broker ~]# 


Expected results:
[-h|--with-node-hostname ] has a different short option from [-h| --help]

Additional info:

Comment 3 Jason DeTiberus 2013-05-14 20:49:50 UTC
This has been fixed upstream and been pulled in with the 1.2 rebase.

Comment 4 yangmingzhi 2013-05-15 02:07:56 UTC
Verified in puddle 2013-05-14.1



Verify steps and outputs:

[root@broker ~]# oo-register-dns -h
/usr/sbin/oo-register-dns: option requires an argument -- h
== Synopsis

oo-register-dns: Register node's DNS name with Bind
  This command must be run as root.

== Usage

oo-register-dns --with-node-hostname node1 \
                --with-node-ip 192.168.0.1 \
                --domain example.com \
                --dns-server broker.example.com

== List of arguments
  -h|--with-node-hostname   host        Hostname for the node (required)
  -n|--with-node-ip         ip          IP of the node (required)
  -d|--domain               domain      Domain name for this node (optional, default: example.com)  
  -s|--dns-server           server      IP address or hostname of DNS server to update (optional, default: 127.0.0.1)  
  -k|--key-file             file        Bind key (optional, default: /var/named/<domain name>.key)  
  -?|--help                             Print this message

Comment 7 errata-xmlrpc 2013-07-09 19:50:10 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.

http://rhn.redhat.com/errata/RHEA-2013-1031.html