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.
DescriptionOleksandr 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:
Moving to POST since upstream bug http://projects.theforeman.org/issues/12651 has been closed
-------------
Brad Buckingham
Applied in changeset commit:katello|2eb8817e6495591402e7075fb44437a651e42e6a.
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'.
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 11Daniel Lobato Garcia
2017-01-03 07:42:25 UTC
*** Bug 1402767 has been marked as a duplicate of this bug. ***