Bug 2129432

Summary: [RFE] hammer recurring-logic list should display 'Action', 'Last Occurrence' and 'Next Occurrence' field which can be seen on Satellite web UI.
Product: Red Hat Satellite Reporter: Anand Kulkarni <ankulkar>
Component: Tasks PluginAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.11.0CC: apatel, aruzicka, kgaikwad, ofedoren, rabajaj
Target Milestone: 6.14.0Keywords: FutureFeature, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-tasks-7.2.1, rubygem-hammer_cli_foreman_tasks-0.0.19 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:18:02 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 Anand Kulkarni 2022-09-23 18:21:31 UTC
Description of problem:

- The output of the hammer for recurring-logic list is shows ID and cron line, but not the 'Action', 'Last Occurrence' and 'Next Occurrence' columns displayed.

~~~~~
# hammer recurring-logic list
---|-----------|-----------|----------|-------
ID | CRON LINE | ITERATION | END TIME | STATE 
---|-----------|-----------|----------|-------
5  | 0 0 * * * | 51        |          | active
6  | 0 0 * * * | 51        |          | active
1  | 0 0 * * * | 51        |          | active
4  | 0 0 * * * | 51        |          | active
---|-----------|-----------|----------|-------
# hammer recurring-logic list --fields ALL
---|-----------|-----------|----------|-------
ID | CRON LINE | ITERATION | END TIME | STATE 
---|-----------|-----------|----------|-------
5  | 0 0 * * * | 51        |          | active
6  | 0 0 * * * | 51        |          | active
1  | 0 0 * * * | 51        |          | active
4  | 0 0 * * * | 51        |          | active
---|-----------|-----------|----------|-------
~~~~~

- However, the info 'Action', 'Last Occurrence' and 'Next Occurrence' available when we go on Satellite web UI -> Monitor -> Recurring logics. 


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

How reproducible: Yes.

Steps to Reproduce:
1. Check the output of hammer recurring-logic list from Satellite CLI.
2. Compare the output with the info available on Satellite web UI -> Monitor -> Recurring logics.


Actual results:

-The command hammer recurring-logic list shows only ID and cron line which is not useful to get an overview/summary to provide as info.

Expected results:

-The output of hammer recurring-logic list should display more info with additional columns like 'Action', 'Last Occurrence' and 'Next Occurrence'.

Additional info:

Comment 1 Bryan Kearney 2023-01-13 20:03:08 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35940 has been resolved.

Comment 4 Peter Ondrejka 2023-06-23 08:00:25 UTC
Verified on Satellite 6.14 snap 4, the additional fields now show up in the cli output

Comment 7 errata-xmlrpc 2023-11-08 14:18:02 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 (Important: Satellite 6.14 security and bug fix update), 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-2023:6818