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 1943306 - Hammer Report-Template Complains about 'Input Days from Now' Being Blank
Summary: Hammer Report-Template Complains about 'Input Days from Now' Being Blank
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Reporting
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: 6.15.0
Assignee: Quinn James
QA Contact: Sam Bible
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-25 18:43 UTC by myoder
Modified: 2024-04-23 17:10 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:10:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32359 0 Normal Closed Hammer Report-Template Complains about 'Input Days from Now' Being Blank 2023-12-06 20:22:11 UTC
Red Hat Issue Tracker SAT-20355 0 None None None 2023-09-25 15:04:17 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:10:43 UTC

Description myoder 2021-03-25 18:43:47 UTC
Description of problem:

This seems like a regression from earlier versions of Satellite.  Trying to generate a Subscription - Entitlement Report throws an error about Input Days from Now.  Earlier versions of Satellite (6.6, 6.7) did not show this issue:

~~~
# hammer report-template list | grep 130
130 | Subscription - Entitlement Report

# hammer report-template generate --report-format yaml --id 130 

Input Days from Now: Value can't be blank
Input Days from Now: Value is not included in the list
~~~

Adding the "--inputs" flag with a value works:

~~~
# hammer report-template generate --report-format yaml --id 130 --inputs "Days from Now"="no limit"
~~~

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

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
report template fails to run due to error about "Days from Now"

Expected results:
report template should generate without warning

Additional info:

Comment 1 Marek Hulan 2021-03-30 09:00:17 UTC
I think the earlier versions of Satellite didn't contain this report template. This was introduced with 6.8 if I'm not mistaken. CC Jeremy who introduced it, perhaps he has more thoughts. I think the valid value for this filter is "no limit" as you found out. Perhaps we should also permit nil value for making API/hammer experience easier.

Comment 2 Jeremy Lenz 2021-03-30 13:24:46 UTC
You can see the other possible values if you generate the report in the web UI.  "No limit" is the default.  No hammer changes were made as a part of this feature addition, so maybe something additional needs to be done to make hammer not require that parameter..

Comment 3 Waldirio M Pinheiro 2021-03-30 18:50:42 UTC
Hello,

Could you set "no limit" as standard when calling the hammer command as below?

---
# hammer report-template generate --report-format yaml --id 130
---

I believe this is the main point here.


Thank you friends!

Waldirio

Comment 4 Waldirio M Pinheiro 2021-03-30 18:51:27 UTC
*standard input.

Thank you
Waldirio

Comment 5 Oleh Fedorenko 2021-04-20 14:18:32 UTC
Created redmine issue https://projects.theforeman.org/issues/32359 from this bug

Comment 14 Brad Buckingham 2023-10-30 11:29:29 UTC
Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set.

Comment 15 Bryan Kearney 2023-12-06 20:01:16 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32359 has been resolved.

Comment 16 Sam Bible 2024-01-10 03:34:14 UTC
Verified on 6.15 - Snap 5

Steps to test:
1. Navigate to Monitor -> Reports -> Report Templates
2. Edit the 'Subscription - Entitlement Reports'

Expected Results:
The 'Days from Now' field has "no limit" set as the default.

Actual Results:
The 'Days from Now' field has "no limit" set as the default.

Comment 20 errata-xmlrpc 2024-04-23 17:10:41 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.15.0 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-2024:2010


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