Red Hat Bugzilla – Bug 1324330
Puppet classes can not be attached to content view
Last modified: 2016-07-27 05:30:59 EDT
Description of problem: After syncing Puppet Forge into Sat6.2 it is not possible to attach puppet classes to content view. Error: content_view_puppet_module not found PuppetForge product states 4056 modules being synced. In the GUI, when editing the CV to add a puppet module, I see "Showing 20 of 2554 (4055 Total)" while in the same dialog in Sat 6.1 I see "Showing 2458 of 2458 (2458 Total)" It is possible to scroll down the list in the GUI and finally reach the intended module. However, the search does not work: it seemingly does not proceed past a* The hammer CLI does not work at all. hammer content-view puppet-module add --organization "$ORG" --content-view RHEL7_Base --author puppetlabs --name ntp Could not add the puppet module: Error: content_view_puppet_module not found Version-Release number of selected component (if applicable): katello 3.0.0. 3.el7sat foreman 1.11.0.9 1.el7sat
foreman-rake katello:reindex does not change the behaviour. Upgrade to SNAP 7.0 does not solve the problem.
This bugzilla is actually raising a few different issues and I would like have separate bugs to address those issues. ISSUE 1. "After syncing Puppet Forge into Sat6.2 it is not possible to attach puppet classes to content view." Response: this is not entirely true. Adding the modules in the UI works; however, it is is very cumbersome when working with large numbers of modules. Item 3 below should help with that. ISSUE 2. "In the GUI, when editing the CV to add a puppet module, I see "Showing 20 of 2554 (4055 Total)" while in the same dialog in Sat 6.1 I see "Showing 2458 of 2458 (2458 Total)"" Response: created bug 1325448 to track this one. ISSUE 3. "...the search does not work: it seemingly does not proceed past a*" Response: created bug 1325450 to track this one. ISSUE 4. "The hammer CLI does not work at all. hammer content-view puppet-module add --organization "$ORG" --content-view RHEL7_Base --author puppetlabs --name ntp Could not add the puppet module: Error: content_view_puppet_module not found" Response: While there are a few issues, this is the most severe and I'd like to have it addressed with this bugzilla, covering the other issues as noted above.
Created redmine issue http://projects.theforeman.org/issues/14576 from this bug
Upstream bug component is Content Management
Upstream hammer-cli-katello PR: https://github.com/Katello/hammer-cli-katello/pull/379
Verified with sat6.2 beta snap8.2 As mentioned in comment3, only "ISSUE4" should be addressed in this bz. So as per comment2, that's the issue with hammer cli. And I can add puppet module to content-view. Please see below where I added two modules separately in cv # hammer -u admin -p changeme content-view puppet-module add --organization 'Default Organization' --content-view cv_rhel7 --author jeffmccune --name motd Puppet module added to content view [root@cloud-qe-3 ~]# hammer -u admin -p changeme content-view puppet-module add --organization 'Default Organization' --content-view cv_rhel7 --author openstack --name nova Puppet module added to content view
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