Bug 1691490

Summary: [RFE] hammer recurring-logic info lacks info
Product: Red Hat Satellite Reporter: Stephen Wadeley <swadeley>
Component: Tasks PluginAssignee: Oleh Fedorenko <ofedoren>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: aruzicka, ehelms, inecas, ofedoren
Target Milestone: 6.10.0Keywords: EasyFix, FutureFeature, Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman-tasks-1.1.0 tfm-rubygem-hammer_cli_foreman_tasks-0.0.15 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:08:28 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 Stephen Wadeley 2019-03-21 17:55:08 UTC
Description of problem:

The info printed to CLI is less than available in the web UI


Version-Release number of selected component (if applicable):
~]# hammer --version
hammer (0.15.1.1)
 * hammer_cli_csv (unknown version)
 * hammer_cli_foreman (0.15.1)
 * hammer_cli_foreman_admin (0.0.8)
 * hammer_cli_foreman_ansible (unknown version)
 * hammer_cli_foreman_bootdisk (0.1.3.3)
 * hammer_cli_foreman_discovery (1.0.0)
 * hammer_cli_foreman_docker (unknown version)
 * hammer_cli_foreman_openscap (0.1.6)
 * hammer_cli_foreman_remote_execution (unknown version)
 * hammer_cli_foreman_tasks (unknown version)
 * hammer_cli_foreman_templates (0.1.2)
 * hammer_cli_foreman_virt_who_configure (unknown version)
 * hammer_cli_katello (0.16.0.10)

How reproducible:


Steps to Reproduce:
1. create a sync plan 
2. view the sync plan in web UI
3. compare to CLI

Actual results:
~]# hammer recurring-logic info --id 43
ID:        43
Cron line: 26 17 * * 4
End time:  
Iteration: 1
State:     active



Expected results:

~]# hammer recurring-logic info --id 43
ID 	43
Cron line 	26 17 * * 4
Action 	Run Sync Plan:
Last occurrence 	-
Next occurrence 	2019-03-28 17:26:00 +0000
Current iteration 	1
Iteration limit 	Unlimited
Repeat until 	Unlimited
State 	 Active

Comment 6 Oleh Fedorenko 2020-04-08 20:45:34 UTC
Created redmine issue https://projects.theforeman.org/issues/29506 from this bug

Comment 7 Bryan Kearney 2020-04-08 22:04:26 UTC
Upstream bug assigned to ofedoren

Comment 8 Bryan Kearney 2020-04-08 22:04:28 UTC
Upstream bug assigned to ofedoren

Comment 9 Bryan Kearney 2020-05-01 14:15:06 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.

Comment 10 Adam Ruzicka 2020-05-04 07:35:13 UTC
A fix for this is waiting for review in upstream, moving back to assigned.

Comment 14 Peter Ondrejka 2021-06-01 08:00:18 UTC
Verified on Sat 6.10 snap 1, the requested lines are now included:

~]# hammer  recurring-logic info --id 1
ID:              1
Cron line:       52 09 * * *
Action:          Run hosts job:
Last occurrence: -
Next occurrence: 2021-06-02 07:52:00 UTC
Iteration:       1
Iteration limit: 33
Repeat until:    Unlimited
State:           active

~]# hammer  recurring-logic info --id 2
ID:              2
Cron line:       59 * * * *
Action:          Run hosts job: Run ls
Last occurrence: 2021-06-01 07:59:04 UTC
Next occurrence: 2021-06-01 08:59:00 UTC
Iteration:       2
Iteration limit: Unlimited
Repeat until:    2021-06-06 13:57:00 UTC
State:           active

Comment 17 errata-xmlrpc 2021-11-16 14:08:28 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 (Moderate: Satellite 6.10 Release), 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-2021:4702