Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1162061 - API list puppet_modules does not work
API list puppet_modules does not work
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
6.0.4
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: Unused
Assigned To: Katello Bug Bin
jaudet
: Triaged
Depends On:
Blocks: 1122832
  Show dependency treegraph
 
Reported: 2014-11-10 03:01 EST by Peter Vreman
Modified: 2017-02-23 15:49 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:18:53 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Peter Vreman 2014-11-10 03:01:18 EST
Description of problem:
The API call /katello/api/v2/puppet_modules does not list any puppet modules, even if there are 2000+ modules available. Instead the call with a repositories filter works:

List all modules:

curl -K /opt/hoici/etc/curl-hoici.conf -H 'Content-Type: application/json' -d '{"per_page":"9999"}' -XGET https://localhost/katello/api/v2/puppet_modules
{"total":0,"subtotal":0,"page":1,"per_page":"9999","search":null,"sort":{"by":null,"order":null},"results":[]}

List of single repository:

curl -K /opt/hoici/etc/curl-hoici.conf -H 'Content-Type: application/json' -d '{"per_page":"9999"}' -XGET https://localhost/katello/api/v2/repositories/10/puppet_modules | jq . | grep -c name
2084


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create product with puppet repository
2. Load puppet modules in a repo
3. List all puppet_modules

Actual results:


Expected results:


Additional info:
Comment 1 RHEL Product and Program Management 2014-11-10 03:03:00 EST
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Comment 5 Eric Helms 2015-03-09 14:15:34 EDT
This is satisfied in the current code base.
Comment 7 jaudet 2015-03-12 11:58:50 EDT
Verified against Satellite-6.1.0-RHEL-6-20150311.1 and Satellite-6.1.0-RHEL-7-20150311.1. Example of procedure used:

    >>> from robottelo import entities
    >>> from nailgun import client
    >>> url = entities.PuppetModule().path()
    >>> response1 = client.get(url, …)
    >>> response2 = client.get(url, data={'repository_id': …}, …)
    >>> for response in (response1, response2):
    ...     response.raise_for_status()
    ...
    >>> # all puppet modules >= puppet modules in a repo
    >>> response1.json()['total'] >= response2.json()['total']
    True
    >>> response1.json()['total']
    5
Comment 8 Bryan Kearney 2015-08-11 09:33:51 EDT
This bug is slated to be released with Satellite 6.1.
Comment 9 errata-xmlrpc 2015-08-12 01:18:53 EDT
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-2015:1592

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