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:
Created redmine issue https://projects.theforeman.org/issues/28771 from this bug
Upstream bug assigned to aupadhye
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/28771 has been resolved.
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 ----|--------------------------------------
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