Bug #28167
closedReport Template execution via hammer fails with "unknown parent permission"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1750924
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)
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Marek Hulán
- Pull request https://github.com/theforeman/foreman/pull/7145 added
Updated by Tomer Brisker over 5 years ago
- Subject changed from Report Template execution via hammer fails with "unknown parent permission" to Report Template execution via hammer fails with "unknown parent permission"
- Fixed in Releases 1.24.0 added
- Fixed in Releases deleted (
2.0.0)
Updated by Marek Hulán over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 84fa72f57ef74c8ce73985412590d9a51df4e8b5.
Updated by Tomer Brisker almost 5 years ago
- Category changed from Statistics to Reporting