Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1711929

Summary: 'uuid' option removed from command "hammer content-view puppet-module list"
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: Content ViewsAssignee: John Mitsch <jomitsch>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.6.0CC: jomitsch, jsherril, mzalewsk, pondrejk, zhunting
Target Milestone: 6.6.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.12.0.1-11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:51:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jameer Pathan 2019-05-20 12:30:07 UTC
Description of problem:
'uuid' option removed from command "hammer content-view puppet-module list --help"

Version-Release number of selected component (if applicable):
@satellite 6.6.0 snap 3

How reproducible:
always

Steps to Reproduce:
1.Run # hammer content-view puppet-module list --help

Actual results:
# hammer content-view puppet-module list --help
Usage:
    hammer content-view puppet-module list [OPTIONS]

Options:
 --author AUTHOR                         Author of the puppet module
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view numeric identifier
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Name of the puppet module
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 -h, --help                              Print help


Expected results:
# hammer content-view puppet-module list --help
Usage:
    hammer content-view puppet-module list [OPTIONS]

Options:
 --author AUTHOR                         Author of the puppet module
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view numeric identifier
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Name of the puppet module
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 --uuid UUID                             The uuid of the puppet module to associate
 -h, --help                              Print help

Additional info:

Comment 4 John Mitsch 2019-05-24 15:25:17 UTC
This looks like it was an intentional change: https://github.com/Katello/katello/commit/0d5a1ebe7d722113d16146d6f98b6d2a39c351c0#diff-b3f64de16869054a88473910f7fef5cf

It looks like it is deprecated for the POST action in the commit above. I'm guessing it was removed for the GET action as it doesn't serve a purpose, the puppet module isn't being associated with anything when you list the puppet modules for a content view.

cc'ing jsherril who may be able to clarify better

Comment 5 John Mitsch 2019-05-24 15:32:41 UTC
seems related to https://bugzilla.redhat.com/show_bug.cgi?id=1709915 as well

Comment 6 John Mitsch 2019-05-28 14:14:37 UTC
Created redmine issue https://projects.theforeman.org/issues/26902 from this bug

Comment 7 John Mitsch 2019-05-28 14:40:10 UTC
Talking with jsherril off-thread, we are going to add the option back, but deprecate it.

Comment 8 John Mitsch 2019-05-28 15:37:25 UTC
*** Bug 1709915 has been marked as a duplicate of this bug. ***

Comment 9 Bryan Kearney 2019-05-28 16:04:15 UTC
Upstream bug assigned to jomitsch

Comment 10 Bryan Kearney 2019-05-28 16:04:17 UTC
Upstream bug assigned to jomitsch

Comment 11 Bryan Kearney 2019-05-28 18:04:08 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/26902 has been resolved.

Comment 14 Jameer Pathan 2019-06-13 13:11:12 UTC
Verified

@Satellite 6.6.0 snap 6

Steps:
1.Run # hammer content-view puppet-module list --help

Observation:
- 'uuid' option is added back in command "hammer content-view puppet-module list"

# hammer content-view puppet-module list --help
Usage:
    hammer content-view puppet-module list [OPTIONS]

Options:
 --author AUTHOR                         Author of the puppet module
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view numeric identifier
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Name of the puppet module
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 --uuid UUID                             Uuid of the puppet module
 -h, --help                              Print help

Comment 15 Bryan Kearney 2019-10-22 19:51:03 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, 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-2019:3172