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 1283173 - 'puppet-module list' command ignore information about organization
Summary: 'puppet-module list' command ignore information about organization
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.1.4
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: Unspecified
Assignee: Brad Buckingham
QA Contact: Jitendra Yejare
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1269434 1402767 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-18 12:13 UTC by Oleksandr Shtaier
Modified: 2019-04-01 20:26 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:18:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 12651 0 None None None 2016-04-22 16:01:58 UTC

Description Oleksandr Shtaier 2015-11-18 12:13:31 UTC
Description of problem:

Here is description of the command:

>hammer puppet-module list --help
Message
"Usage:
    hammer puppet-module list [OPTIONS]

Options:
...
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
...
"

It seems these three options do not effect overall flow.
For example:
>hammer -v -u name -p pass --output=csv puppet-module list --organization-id="9999999999"
showed me list of puppet modules that I have in the system, not the error

Same result for:
>hammer -v -u name -p pass --output=csv puppet-module list --organization="MY_NON_EXISTENT_ORGANIZATION"

And similar result for valid data:
>hammer -v -u name -p pass --output=csv puppet-module list --organization-id="1" 

Command returned list of all puppet modules, but not the ones assigned for that specific organization

Version-Release number of selected component (if applicable):
It is not specific for 6.1.4, but behavior was analyzed for that version. The issue exists for a long time in the system

How reproducible:
Always

Steps to Reproduce:
1. Use any commands described above

Actual results:
System *always* show list of *all* unique puppet modules

Expected results:
System should show an error or correct list of puppet modules


Additional info:

Comment 2 Bryan Kearney 2015-12-01 18:30:43 UTC
Created redmine issue http://projects.theforeman.org/issues/12651 from this bug

Comment 3 Brad Buckingham 2015-12-03 15:46:58 UTC
Upstream Katello PR: https://github.com/Katello/katello/pull/5645

Comment 4 Bryan Kearney 2015-12-08 15:05:41 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/12651 has been closed
-------------
Brad Buckingham
Applied in changeset commit:katello|2eb8817e6495591402e7075fb44437a651e42e6a.

Comment 5 Brad Buckingham 2015-12-22 17:20:29 UTC
*** Bug 1269434 has been marked as a duplicate of this bug. ***

Comment 7 Jitendra Yejare 2016-03-22 09:11:37 UTC
Verified this in Satellite 6.2 snap 4.

The issue is no more reproducible.

Steps and Results:

[root@dell-t7400-01 ~]# hammer --output=csv puppet-module list --organization-id="9999999999"
Couldn't find organization '9999999999'

[root@dell-t7400-01 ~]# hammer --output=csv puppet-module list --organization="non existing"
Error: organization not found

[root@dell-t7400-01 ~]# hammer -u admin -p changeme --output=csv puppet-module list --organization-id=1
ID,Name,Author,Version
1,nova,openstack,7.0.0

[root@dell-t7400-01 ~]# hammer -u admin -p changeme --output=csv puppet-module list --organization-id=3
ID,Name,Author,Version
2,openssl,camptocamp,1.6.1

So, changing the state to 'Verified'.

Comment 10 Bryan Kearney 2016-07-27 11:18:29 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/RHBA-2016:1501

Comment 11 Daniel Lobato Garcia 2017-01-03 07:42:25 UTC
*** Bug 1402767 has been marked as a duplicate of this bug. ***


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