RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 985090 - command "rhsmcertd" options
Summary: command "rhsmcertd" options
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 6.5
Assignee: Bryan Kearney
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel65 1115818
TreeView+ depends on / blocked
 
Reported: 2013-07-16 18:37 UTC by Sharath Dwaral
Modified: 2014-07-03 07:55 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: rhsmcertd tab completion displayed incorrect options. Consequence: Incorrect options displayed. Fix: Update the tab completion script. Result:
Clone Of:
: 1115818 (view as bug list)
Environment:
Last Closed: 2013-11-21 21:26:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1659 0 normal SHIPPED_LIVE subscription-manager and python-rhsm bug fix and enhancement update 2013-11-20 21:53:10 UTC

Description Sharath Dwaral 2013-07-16 18:37:18 UTC
Description of problem:
Command rhsmcertd options

Version-Release number of selected component (if applicable):
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-1.8.13-1.el5_9
subscription-manager-migration-1.8.13-1.el5_9
python-rhsm-1.8.13-1.el5_9
subscription-manager-migration-data-1.11.3.1-1.git.1.78afd75.el5
subscription-manager-firstboot-1.8.13-1.el5_9
subscription-manager-debuginfo-1.8.13-1.el5_9
subscription-manager-gui-1.8.13-1.el5_9

How reproducible:
Always

Steps to Reproduce:
1. rhsmcertd <tab tab>
It tab completes to the following with "-h" as a suggestion

# rhsmcertd -
--auto-attach-interval  --cert-check-interval   -d                      -h                      --help                  -n                      
-c                      --cert-interval         --debug                 --heal-interval         -i                      --now


# rhsmcertd -h
Invalid argument specified: -h
For more information run: rhsmcertd --help


# rhsmcertd --help
Usage:
  rhsmcertd [OPTION...] 

Help Options:
>>  -?, --help                             Show help options

Application Options:
  --cert-interval=MINUTES                deprecated, see --cert-check-interval
  -c, --cert-check-interval=MINUTES      interval to run cert check (in minutes)
  --heal-interval=MINUTES                deprecated, see --auto-attach-interval
  -i, --auto-attach-interval=MINUTES     interval to run auto-attach (in minutes)
  -n, --now                              run the initial checks immediately, with no delay
  -d, --debug                            show debug messages


Actual results:
As show above

Expected results:
-h should display help menu
--help should not show '?' 

Additional info:

Comment 1 RHEL Program Management 2013-07-16 18:48:51 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 2 Sharath Dwaral 2013-07-16 19:58:35 UTC
"rhsm-icon" options

tab completion suggests "-h"

# rhsm-icon -h
option parsing failed: Unknown option -h

# rhsm-icon --help-all
Usage:
  rhsm-icon [OPTION...] 

Help Options:
>>  -?, --help                  Show help options
  --help-all                  Show all help options
  --help-gtk                  Show GTK+ Options

GTK+ Options
  --class=CLASS               Program class as used by the window manager
  --name=NAME                 Program name as used by the window manager
  --screen=SCREEN             X screen to use
  --sync                      Make X calls synchronous
  --gtk-module=MODULES        Load additional GTK+ modules
  --g-fatal-warnings          Make all warnings fatal

Application Options:
  -c, --check-period          how often to check for validity (in seconds)
  -d, --debug                 show debug messages
  -f, --force-icon=TYPE       force display of the icon (expired, partial or warning)
  -i, --check-immediately     run the first status check right away
  --display=DISPLAY           X display to use

Actual results:
As show above

Expected results:
-h should display help menu
--help should not show '?'

Comment 3 Bryan Kearney 2013-07-16 20:47:32 UTC
This seems to be an issue with RHEL 5, moving it to ON_QA for RHEL6. We will not bother fixing this for RHEL5.

Comment 6 Sharath Dwaral 2013-08-27 15:47:06 UTC
Version:

# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-firstboot-1.9.5-1.el6.x86_64
subscription-manager-migration-data-1.12.3.2-1.el6.noarch
python-rhsm-1.9.4-1.el6.x86_64
subscription-manager-gui-1.9.5-1.el6.x86_64
subscription-manager-1.9.5-1.el6.x86_64
subscription-manager-migration-1.9.5-1.el6.x86_64

Verification:

Command : rhsmcertd

rhsmcertd <tab tab>

# rhsmcertd -
--auto-attach-interval  --cert-check-interval   -d                      -h                      --help                  -n                      
-c                      --cert-interval         --debug                 --heal-interval         -i                      --now                   


# rhsmcertd -h                <<<<<<<<<<<<  -h works
Usage:
  rhsmcertd [OPTION...] 

Help Options:
  -h, --help                             Show help options   <<<<<<< -h displayed

Application Options:
  --cert-interval=MINUTES                deprecated, see --cert-check-interval
  -c, --cert-check-interval=MINUTES      interval to run cert check (in minutes)
  --heal-interval=MINUTES                deprecated, see --auto-attach-interval
  -i, --auto-attach-interval=MINUTES     interval to run auto-attach (in minutes)
  -n, --now                              run the initial checks immediately, with no delay
  -d, --debug                            show debug messages



Command: rhsm-icon

rhsm-icon <tab tab>

# rhsm-icon -
-c,                   --check-period,       --debug,              -f,                   -h,                   --help-all,           -i,                   
--check-immediately,  -d,                   --display             --force-icon,         --help,               --help-gtk,  
         
# rhsm-icon -h       <<<<<<<<<<  -h option works
Usage:
  rhsm-icon [OPTION...] 

Help Options:
  -h, --help                  Show help options        <<<<<<< -h displayed
  --help-all                  Show all help options
  --help-gtk                  Show GTK+ Options

Application Options:
  -c, --check-period          how often to check for validity (in seconds)
  -d, --debug                 show debug messages
  -f, --force-icon=TYPE       force display of the icon (expired, partial or warning)
  -i, --check-immediately     run the first status check right away
  --display=DISPLAY           X display to use


VERIFIED

Comment 8 errata-xmlrpc 2013-11-21 21:26:38 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/RHBA-2013-1659.html


Note You need to log in before you can comment on or make changes to this bug.