Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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:
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.
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 3Waldirio 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 4Waldirio M Pinheiro
2021-03-30 18:51:27 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.
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