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 1791025 - Unable to use Organization ID in report templates using CLI
Summary: Unable to use Organization ID in report templates using CLI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Reporting
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.9.0
Assignee: Amit Upadhye
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-14 17:28 UTC by Cole Higgins
Modified: 2021-04-21 13:12 UTC (History)
3 users (show)

Fixed In Version: foreman-2.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:12:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 28771 0 Normal Closed Missing taxonomy scoped routes for report templates 2021-01-19 13:06:11 UTC
Foreman Issue Tracker 28987 0 Normal Closed Reporting Engine API to list report template per organization/location returns 404 error 2021-01-19 13:06:11 UTC

Description Cole Higgins 2020-01-14 17:28:14 UTC
Description of problem:
When trying to generate a report template using hammer, the "organization-id" and "organization" field cannot be called. Organization ID and name cannot be found(404 Not Found).  


Version-Release number of selected component (if applicable): 6.7.0_06 and 6.5.3.1


How reproducible:100%


Steps to Reproduce:
1.Create an organization in Sat
2.ssh into Sat
3.hammer report-template list --organization "org_name"

Actual results:
404 NOt Found

Expected results:
List the organization in the Satellite.

Additional info:

Comment 7 Ondřej Pražák 2020-01-16 07:51:15 UTC
Created redmine issue https://projects.theforeman.org/issues/28771 from this bug

Comment 9 Bryan Kearney 2020-05-05 15:46:46 UTC
Upstream bug assigned to aupadhye

Comment 10 Bryan Kearney 2020-11-06 12:05:25 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/28771 has been resolved.

Comment 11 Lukáš Hellebrandt 2021-01-14 14:36:14 UTC
Verified with Sat 6.9 snap 8.0.

# hammer report-template list --organization "Default Organization"
----|--------------------------------------
ID  | NAME                                 
----|--------------------------------------
128 | Ansible - Ansible Inventory          
186 | editable                             
185 | fish                                 
129 | Host - Applicable Errata             
130 | Host - Applied Errata                
131 | Host - compare content hosts packages
132 | Host - Last Checkin                  
133 | Host - Registered Content Hosts      
134 | Host - Statuses                      
135 | Subscription - Entitlement Report    
136 | Subscription - General Report        
137 | User - Registered Users

# hammer report-template create --organization-id 1 --name whatever --file template_contents.txt
Report template created.

# hammer report-template list --organization-id 1
----|--------------------------------------
ID  | NAME                                 
----|--------------------------------------
128 | Ansible - Ansible Inventory          
186 | editable                             
185 | fish                                 
129 | Host - Applicable Errata             
130 | Host - Applied Errata                
131 | Host - compare content hosts packages
132 | Host - Last Checkin                  
133 | Host - Registered Content Hosts      
134 | Host - Statuses                      
135 | Subscription - Entitlement Report    
136 | Subscription - General Report        
187 | test                                 
137 | User - Registered Users              
188 | whatever                             
----|--------------------------------------

Comment 14 errata-xmlrpc 2021-04-21 13:12:25 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 (Moderate: Satellite 6.9 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-2021:1313


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