Project

General

Profile

Actions

Bug #28167

closed

Report Template execution via hammer fails with "unknown parent permission"

Added by Marek Hulán over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Reporting
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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).

  1. hammer report-template list
    ----|------------------
    ID | NAME
    ----|------------------
    197 | Applicable errata
    198 | Host statuses CSV
    199 | Registered hosts
    200 | Subscriptions
    ----|------------------
  1. hammer report-template generate --id 197
    (Resulting successful data omitted)
Actions #1

Updated by The Foreman Bot over 4 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
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 2.0.0 added
Actions #3

Updated by Tomer Brisker over 4 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)
Actions #4

Updated by Marek Hulán over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Tomer Brisker about 4 years ago

  • Category changed from Statistics to Reporting
Actions

Also available in: Atom PDF