Bug 1368590 - hammer lifecycle-environment list does not have the --per-page or --page option
Summary: hammer lifecycle-environment list does not have the --per-page or --page option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Lifecycle Environments
Version: 6.2.0
Hardware: x86_64
OS: Linux
medium
medium vote
Target Milestone: Unspecified
Assignee: Ashish Humbe
QA Contact: Adam Ruzicka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-19 21:08 UTC by Mihir Lele
Modified: 2021-07-21 09:24 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:54:17 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 18470 0 None None None 2017-04-06 08:57:46 UTC
Red Hat Knowledge Base (Solution) 3338601 0 None None None 2018-01-30 19:00:20 UTC

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


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