Bug 1127382 - Unable to list puppet-modules since product options are missing
Unable to list puppet-modules since product options are missing
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Hammer (Show other bugs)
Unspecified Unspecified
unspecified Severity medium (vote)
: 6.1.3
: --
Assigned To: Brad Buckingham
Katello QA List
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2014-08-06 15:22 EDT by sthirugn@redhat.com
Modified: 2017-02-23 16:08 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-10-15 14:19:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
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
Foreman Issue Tracker 10410 None None None 2016-04-22 10:58 EDT
Red Hat Product Errata RHBA-2015:1911 normal SHIPPED_LIVE Satellite 6.1.3 bug fix update 2015-10-15 18:19:19 EDT

  None (edit)
Description sthirugn@redhat.com 2014-08-06 15:22:31 EDT
Description of problem:
Unable to list puppet-modules since product options are missing

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

How reproducible:

Steps to Reproduce:
1. Attempt to list puppet-modules of an Organization
hammer> puppet-module list --organization-id=3
Error: Missing options to search product

2. I am asked to enter product search options but the production options are not present in puppet-module list --help (see below)
hammer> puppet-module list --help
     puppet-module list [OPTIONS]

    --content-view CONTENT_VIEW_NAME Content view name to search by
    --content-view-id CONTENT_VIEW_ID content view numeric identifier
    --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Name to search by
    --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID  
    --organization ORGANIZATION_NAME Organization name to search by
    --organization-id ORGANIZATION_ID  
    --organization-label ORGANIZATION_LABEL Organization label to search by
    --repository REPOSITORY_NAME  Repository name to search by
    --repository-id REPOSITORY_ID repository ID
    -h, --help                    print help

Actual results:
As explained above

Expected results:
As explained above

Additional info:
Comment 1 sthirugn@redhat.com 2014-08-06 15:23:13 EDT
Version Tested:

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.19-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.19-1.el6_5.noarch
* candlepin-tomcat6-0.9.19-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-
* foreman-compute-
* foreman-gce-
* foreman-libvirt-
* foreman-ovirt-
* foreman-postgresql-
* foreman-proxy-
* foreman-selinux-
* foreman-vmware-
* katello-1.5.0-27.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-installer-0.0.56-1.el6sat.noarch
* openldap-2.4.23-34.el6_5.1.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.23.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.23.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.23.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.23.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.23.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.23.beta.el6sat.noarch
* pulp-server-2.4.0-0.23.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
* sssd-ldap-
Comment 2 sthirugn@redhat.com 2014-08-06 15:31:19 EDT
same with info command:

hammer> puppet-module info 
Error: Missing options to search product

hammer> puppet-module info --help
     puppet-module info [OPTIONS]

    --id ID                       puppet module identifier
    --name NAME                   Name to search by
    --organization ORGANIZATION_NAME Organization name to search by
    --organization-id ORGANIZATION_ID  
    --organization-label ORGANIZATION_LABEL Organization label to search by
    --repository REPOSITORY_NAME  Repository name to search by
    --repository-id REPOSITORY_ID repository ID
    -h, --help                    print help
Comment 4 sthirugn@redhat.com 2014-08-06 16:08:25 EDT
This has a UI workaround - Content Search -> Puppet Modules.
Comment 5 Stephen Benjamin 2015-05-07 08:15:24 EDT
Created redmine issue http://projects.theforeman.org/issues/10410 from this bug
Comment 6 Stephen Benjamin 2015-05-12 07:00:36 EDT
This totally breaks automation, can it be at least 6.1.z?
Comment 7 Brad Buckingham 2015-08-19 16:31:36 EDT
I ran a test on my Satellite 6.1.1 install and I am able to list the puppet modules without specifying a product:

hammer> puppet-module list --organization-id 1
[Foreman] Username: admin
[Foreman] Password for admin: 
ID                                   | NAME  | AUTHOR  | VERSION
90fb607d-8682-4e8f-87cd-f6ee176cbc08 | ovirt | jcannon | 0.0.4  
Comment 8 Brad Buckingham 2015-08-19 16:33:07 EDT
Hi Suresh,  Can you do me a favor and see if you are still observing this issue on 6.1.1? Thanks!
Comment 9 sthirugn@redhat.com 2015-08-31 11:47:03 EDT
Verified in Sat 6.1.2 z-stream build.  It works fine now.

hammer> puppet-module list --organization-id=17
ID                                   | NAME | AUTHOR     | VERSION
6559345f-ef5d-45f1-802a-83fdcb519d7b | motd | jeffmccune | 1.0.3  

hammer> puppet-module info --id=6559345f-ef5d-45f1-802a-83fdcb519d7b
ID:             6559345f-ef5d-45f1-802a-83fdcb519d7b
Name:           motd
Version:        1.0.3
Author:         jeffmccune
Summary:        Manages the message of the day
Description:    Places information about the host in the message of the day.
License:        Apache
Project Page:   https://github.com/jeffmccune/jeffmccune-motd
Source:         puppetlabs-motd

File checksums: 
    62755946ffc0f1321cb3096554774a58  templates/motd.erb
    a600ded995d948e393fbe2320ba8e51c  spec/spec.opts
    e52668944ee6af2fb5d5b9e798342645  spec/unit/puppet/provider/README.markdown
    3dab843b1c6d3352efe33d4140ddbd51  CHANGELOG
    bd7f0f1dadd573240cae3a354edace25  README.markdown
    ca19ec4f451ebc7fdb035b52eae6e909  spec/spec_helper.rb
    aada0a1952329e46b98695349dba6203  templates/README.markdown
    5086992bfbe4109aef08a6dc91736250  tests/init.pp
    fa064f18171fb87bd5ad1dd323dad548  Modulefile
    d34d0b70aba36510fbc2df4e667479ef  metadata.json
    3d44458cc68d8513b51e3b56c604eec4  files/README.markdown
    723e06ebe37b8c9dd1c41f218361b272  manifests/init.pp
    b9970454391883e36b55137328792a55  manifests/README.markdown
    32a1fc0121c28aff554ef5d422b8b51e  spec/README.markdown
    de26a7643813abd6c2e7e28071b1ef94  spec/unit/puppet/type/README.markdown
Tag List:       
 1) Id:   177
    Name: puppetrepo1
Comment 11 errata-xmlrpc 2015-10-15 14:19:46 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.


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