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 1163398 - [RFE] Include default check-period value in rhsm-icon --help
Summary: [RFE] Include default check-period value in rhsm-icon --help
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.6
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: pre-dev-freeze
: 6.8
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel68
TreeView+ depends on / blocked
 
Reported: 2014-11-12 15:52 UTC by Rehana
Modified: 2016-05-10 20:35 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 20:35:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0797 0 normal SHIPPED_LIVE python-rhsm and subscription-manager bug fix and enhancement update 2017-01-06 16:31:50 UTC

Description Rehana 2014-11-12 15:52:35 UTC
Description of problem:
After the discussion with Dev,it came to our notice that rhsm-icon has initial check-period of 4 min if check immeidately is false  (which is default) and then the check happens every day, so it will be good include these dafault time to rhsm-icon --help

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.rhsm-icon --help 
2.
3.

Actual results:
no default check period in the description

Expected results:
rhsm-icon --help should display the default --check-period in it's description field.

Additional info:

Comment 2 John Sefler 2014-11-12 16:39:52 UTC
I just want to clarify that there is actually a hard coded 4 minute delay for the initial check when rhsm-icon is started.  If  check immeidately is false, then a 4 minute delay is used before the initial check, thereafter the --check-period is used.  The default is equivalent to one day.


[root@jsefler-os7 ~]# rhsm-icon --help
Usage:
  rhsm-icon [OPTION...] 

Help Options:
  -h, --help                  Show help options
  --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


TODO...
Please change the --check-period description to:
                              how often to check for validity (in seconds)
                              (defaults to one day)

Please change the --check-immediately description to:
                              run the first status check right away,
                              otherwise a 4 minute delay is used before
                              the start of the initial check period 

Please update the man page to include these defaults.  The 4 minute delay is already presented in the man page.

Comment 4 William Poteat 2015-12-15 19:51:32 UTC
Current help output:

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

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

Application Options:
  -c, --check-period          how often to check for validity (in seconds; default is one day)
  -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 without delay (otherwise wait 4 minutes)
  --display=DISPLAY           X display to use

Comment 5 William Poteat 2015-12-21 14:49:50 UTC
master commit 47b84fe71cc28a71d278559d15d2e54b9452d7ac

Comment 7 Rehana 2016-01-11 09:48:04 UTC
retested on ,
subscription management server: 0.9.51.11-1
subscription management rules: 5.15
subscription-manager: 1.16.7-1.el6
python-rhsm: 1.16.5-1.el6

Observed that now the default check period is mentioned for the options --check-period  and --check-immediately

1) on the help

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

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

Application Options:
  -c, --check-period          how often to check for validity (in seconds; default is one day)
  -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 without delay (otherwise wait 4 minutes)
  --display=DISPLAY           X display to use


2) on the man page 

<snip>
-c, --check-period   
    Sets the interval to use between checks for the product subscription status. The value is in seconds and the  default  is  one day.

--i, --check-immediately
     Runs the status check process immediately when the command is invoked. Otherwise, there is a four (4) minute delay before running the initial check.

Marking Verified!!!

Comment 9 errata-xmlrpc 2016-05-10 20:35:54 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-0797.html


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