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 1368590

Summary: hammer lifecycle-environment list does not have the --per-page or --page option
Product: Red Hat Satellite Reporter: Mihir Lele <mlele>
Component: Lifecycle EnvironmentsAssignee: Ashish Humbe <ahumbe>
Status: CLOSED ERRATA QA Contact: Adam Ruzicka <aruzicka>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: aruzicka, awestbro, bbuckingham, csm, gkonda, hprakash, jcallaha, kgaikwad, satellite6-bugs, syamamot
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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 Mihir Lele 2016-08-19 21:08:09 UTC
Description of problem:

"# hammer lifecycle-environment list" only displays 20 lifecycle environment with no option to display the rest of the environments


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


How reproducible: Always


Steps to Reproduce:
1.  Create 20+ Life-cycle environments
2.  run "# hammer lifecycle-environment list"
3.  20 lifecycle-environments will be displayed followed by message at the bottom:

Page 1 of 2 (use --page and --per-page for navigation)

But these options are actually not present

Actual results:

Only 20 environments can be displayed.
 

Expected results:

Either the command should display all the list or should have the page or --per-page option which it claims exists

Additional info:

Comment 4 Kavita 2017-04-06 08:57:46 UTC
Hi,

This issue is resolved in upstream project. 

Upstream Bug link - http://projects.theforeman.org/issues/18470.

I am attaching this link to Bugzilla for further progess on bugzilla.

Comment 5 Satellite Program 2017-04-06 10:10:43 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18470 has been resolved.

Comment 8 Adam Ruzicka 2017-08-02 11:55:20 UTC
Verified.
Satellite-6.3 Snap 9
Package versions:
satellite-6.3.0-16.0.beta.el7sat.noarch
tfm-rubygem-hammer_cli-0.10.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_katello-0.10.0-1.el7sat.noarch

[root@snap9 foreman-debug-huBtb]# hammer lifecycle-environment list
---|--------------------------|-------------------------
ID | NAME                     | PRIOR
---|--------------------------|-------------------------
2  | Library                  |
1  | Library                  |
3  | Lifecycle Environment 0  | Library
4  | Lifecycle Environment 1  | Lifecycle Environment 0
13 | Lifecycle Environment 10 | Lifecycle Environment 9
14 | Lifecycle Environment 11 | Lifecycle Environment 10
15 | Lifecycle Environment 12 | Lifecycle Environment 11
16 | Lifecycle Environment 13 | Lifecycle Environment 12
17 | Lifecycle Environment 14 | Lifecycle Environment 13
18 | Lifecycle Environment 15 | Lifecycle Environment 14
19 | Lifecycle Environment 16 | Lifecycle Environment 15
20 | Lifecycle Environment 17 | Lifecycle Environment 16
21 | Lifecycle Environment 18 | Lifecycle Environment 17
22 | Lifecycle Environment 19 | Lifecycle Environment 18
5  | Lifecycle Environment 2  | Lifecycle Environment 1
23 | Lifecycle Environment 20 | Lifecycle Environment 19
24 | Lifecycle Environment 21 | Lifecycle Environment 20
25 | Lifecycle Environment 22 | Lifecycle Environment 21
26 | Lifecycle Environment 23 | Lifecycle Environment 22
27 | Lifecycle Environment 24 | Lifecycle Environment 23
28 | Lifecycle Environment 25 | Lifecycle Environment 24
6  | Lifecycle Environment 3  | Lifecycle Environment 2
7  | Lifecycle Environment 4  | Lifecycle Environment 3
8  | Lifecycle Environment 5  | Lifecycle Environment 4
9  | Lifecycle Environment 6  | Lifecycle Environment 5
10 | Lifecycle Environment 7  | Lifecycle Environment 6
11 | Lifecycle Environment 8  | Lifecycle Environment 7
12 | Lifecycle Environment 9  | Lifecycle Environment 8
---|--------------------------|-------------------------

[root@snap9 foreman-debug-huBtb]# hammer lifecycle-environment list --per-page 2
---|---------|------
ID | NAME    | PRIOR
---|---------|------
2  | Library |
1  | Library |
---|---------|------
Page 1 of 14 (use --page and --per-page for navigation)

[root@snap9 foreman-debug-huBtb]# hammer lifecycle-environment list --per-page 2 --page 3
---|--------------------------|-------------------------
ID | NAME                     | PRIOR
---|--------------------------|-------------------------
13 | Lifecycle Environment 10 | Lifecycle Environment 9
14 | Lifecycle Environment 11 | Lifecycle Environment 10
---|--------------------------|-------------------------
Page 3 of 14 (use --page and --per-page for navigation)

Comment 9 Satellite Program 2018-02-21 16:54:17 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-2018:0336