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 2129432 - [RFE] hammer recurring-logic list should display 'Action', 'Last Occurrence' and 'Next Occurrence' field which can be seen on Satellite web UI.
Summary: [RFE] hammer recurring-logic list should display 'Action', 'Last Occurrence' ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Tasks Plugin
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.14.0
Assignee: Adam Ruzicka
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-23 18:21 UTC by Anand Kulkarni
Modified: 2023-11-08 14:18 UTC (History)
5 users (show)

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:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:18:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35940 0 Normal Closed Expose additional information about recurring logics in api/recurring_logics#index to reach parity with regular index 2023-06-20 12:43:13 UTC
Foreman Issue Tracker 35941 0 Normal Closed Expose additional information about recurring logics hammer recurring-logic list 2023-06-20 12:43:13 UTC
Red Hat Issue Tracker SAT-14913 0 None None None 2023-06-22 15:12:48 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:18:20 UTC

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


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