Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1583318

Summary: hammer recurring-logic list command does not accept options --per-page or --page but suggests those option
Product: Red Hat Satellite Reporter: Gauravi <gapatil>
Component: Tasks PluginAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: high    
Version: 6.3.0CC: akarsale, apatel, aruzicka, d.a.maguire, dhlavacd, inecas, kgaikwad, mhulan, pcreech, rabajaj
Target Milestone: 6.5.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman-tasks-0.13.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:37:23 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 Gauravi 2018-05-28 16:59:21 UTC
Description of problem:
hammer recurring-logic list command does not accept options --per-page or --page but suggests them when there are more number of output rows

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

How reproducible:
Always

Steps to Reproduce:
1. Have more number of recurring logics, let say more than 15
2. Try to list them using below command:
   _______________________________
   # hammer recurring-logic list
   _______________________________
   o/p:
   ______________________________________________________________________
   ---|-------------|----------|-----------|----------
   ID | CRON LINE   | END TIME | ITERATION | STATE
   ---|-------------|----------|-----------|----------
   // some output rows will be displayed here followed by below message
   ---|-------------|----------|-----------|----------
   Page 1 of 6 (use --page and --per-page for navigation)
   ______________________________________________________________________

3.Now use either of the options mentioned:
   ____________________________________________  
   # hammer recurring-logic list --per-page 20
   Error: Unrecognised option '--per-page'

   See: 'hammer recurring-logic list --help'
   ____________________________________________

Actual results:
hammer command is not accepting the mentioned option and giving below error:
____________________________________________
Error: Unrecognised option '--per-page'

See: 'hammer recurring-logic list --help'
____________________________________________

Expected results:
Either those options should be accepted by the command or if not then the message should be removed that suggests to run those options.

Additional info:
After checking the possible options with --help, it did not give any such options so it seems to me that no such option exists there at the moment.
___________________________________________
# hammer recurring-logic list -h
Usage:
    hammer recurring-logic list [OPTIONS]

Options:
 -h, --help                    print help
___________________________________________

Comment 2 Adam Ruzicka 2018-06-11 12:48:35 UTC
Created redmine issue http://projects.theforeman.org/issues/23881 from this bug

Comment 3 Satellite Program 2018-06-13 18:17:50 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23881 has been resolved.

Comment 6 Peter Ondrejka 2018-11-02 10:29:10 UTC
Verified on Satellite 6.5 snap 1

~]# hammer recurring-logic list --per-page 2
---|-------------|----------|-----------|-------
ID | CRON LINE   | END TIME | ITERATION | STATE 
---|-------------|----------|-----------|-------
1  | 0 0 * * 6   |          | 0         |       
2  | 22 11 * * * |          | 1         | active
---|-------------|----------|-----------|-------
Page 1 of 3 (use --page and --per-page for navigation).

~]# hammer recurring-logic list --per-page 2 --page 2
---|---------------|----------|-----------|-------
ID | CRON LINE     | END TIME | ITERATION | STATE 
---|---------------|----------|-----------|-------
3  | 23 11 2 * *   |          | 1         | active
4  | 23 11 * * 3,7 |          | 1         | active
---|---------------|----------|-----------|-------
Page 2 of 3 (use --page and --per-page for navigation).

Comment 10 errata-xmlrpc 2019-05-14 12:37:23 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://access.redhat.com/errata/RHSA-2019:1222