Description of problem: When attempting to execute a report template permission via the CLI, it fails with an error if you attempt to use "--name" of the report template: "ERF42-5227 [Foreman::Exception]: unknown parent permission for api/v2/report_templates#generate" Version-Release number of selected component (if applicable): Red Hat Satellite 6.5.2 How reproducible: Always. Steps to Reproduce: 1. # hammer report-template generate --name "Applicable errata" --organization myorg Actual results: Returns error: ERF42-5227 [Foreman::Exception]: unknown parent permission for api/v2/report_templates#generate Expected results: Report is executed and out is displayed. Additional info: Workaround: Specifying the ID number of the report template (from "hammer report-template list" does work). # hammer report-template list ----|------------------ ID | NAME ----|------------------ 197 | Applicable errata 198 | Host statuses CSV 199 | Registered hosts 200 | Subscriptions ----|------------------ # hammer report-template generate --id 197 (Resulting successful data omitted)
Correction - This error is only produced if the --organization is specified. If left off, it runs the report correctly. Though since the "hammer report-template generate --help" shows --organization ORGANIZATION_NAME as an option, it's still a bug. So ... (works): # hammer report-template generate --name "Applicable errata" (doesn't): # hammer report-template generate --name "Applicable errata" --organization myorg
Just reproduced, this is a valid bug even in 6.6.
Created redmine issue https://projects.theforeman.org/issues/28167 from this bug
Upstream bug assigned to mhulan
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28167 has been resolved.
Verified with Sat 6.7 snap 4. Tried manually using reproducer from comment 3. Also, corresponding test in automation passed.
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, 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-2020:1454