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 1223755 - NoMethodError: undefined method `archive_puppet_evironment' for #<Katello::ContentViewVersion:0x0000000f66e518>
Summary: NoMethodError: undefined method `archive_puppet_evironment' for #<Katello::Co...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-21 11:56 UTC by Sachin Ghai
Modified: 2017-02-23 20:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:57:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
on selecting puppet-module tab, UI remains in loading state and production.log filled with long traceback: (60.01 KB, image/png)
2015-05-21 11:56 UTC, Sachin Ghai
no flags Details
production.log (26.94 KB, text/plain)
2015-05-21 11:58 UTC, Sachin Ghai
no flags Details
puppet_module loaded successfully (51.47 KB, image/png)
2015-06-04 11:46 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10588 0 None None None 2016-04-22 16:49:39 UTC

Description Sachin Ghai 2015-05-21 11:56:39 UTC
Created attachment 1028108 [details]
on selecting puppet-module tab, UI remains in loading state and production.log filled with long traceback:

Description of problem:
when you create a content-view and select the version to see what all packages/puppet-modules it contains then on selecting puppet-module tab, UI remains in loading state and production.log filled with long traceback:


2015-05-21 13:50:31 [I] Processing by Katello::Api::V2::PuppetModulesController#index as JSON
2015-05-21 13:50:31 [I]   Parameters: {"content_view_version_id"=>"2", "page"=>"1", "search"=>"", "api_version"=>"v2"}
2015-05-21 13:50:31 [E] NoMethodError: undefined method `archive_puppet_evironment' for #<Katello::ContentViewVersion:0x0000000f66e518>
/opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/attribute_methods.rb:407:in `method_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods.rb:149:in `method_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.42/app/controllers/katello/api/v2/puppet_modules_controller.rb:21:in `filter_by_content_view_version'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.42/app/controllers/katello/concerns/api/v2/repository_content_controller.rb:44:in `index'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:561:in `block (4 levels) in _run__2924347591320558897__process_action__2658524545881076663__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_11495'


Version-Release number of selected component (if applicable):
sat6.1 GA snap5

How reproducible:
always

Steps to Reproduce:
1. create a content-view
2. publish it
3. select version1
4. goto puppet-modules tab

Actual results:
page remains in loading state and long traceback in production.log

Expected results:
no error and page should be loaded properly.

Additional info:

Comment 1 Sachin Ghai 2015-05-21 11:58:03 UTC
Created attachment 1028109 [details]
production.log

Comment 4 Eric Helms 2015-05-22 12:27:14 UTC
Created redmine issue http://projects.theforeman.org/issues/10588 from this bug

Comment 5 Bryan Kearney 2015-05-27 12:05:32 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10588 has been closed
-------------
Eric Helms
Applied in changeset commit:katello|014c84c3b5d77981e69497d95922c71c55592031.

Comment 7 Sachin Ghai 2015-06-04 11:46:01 UTC
Verified with sat6.1 GA snap7.

Now on selecting puppet-module tab from seelcted content-view version, UI is loading the modules properly. No error in logs.

-
2015-06-04 07:43:25 [I] Processing by Katello::Api::V2::PuppetModulesController#index as JSON
2015-06-04 07:43:25 [I]   Parameters: {"content_view_version_id"=>"6", "page"=>"1", "search"=>"", "api_version"=>"v2"}
2015-06-04 07:43:25 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.46/app/views/katello/api/v2/puppet_modules/index.json.rabl within katello/api/v2/layouts/collection (87.1ms)
2015-06-04 07:43:25 [I] Completed 200 OK in 129ms (Views: 83.6ms | ActiveRecord: 7.6ms)
--

Comment 8 Sachin Ghai 2015-06-04 11:46:52 UTC
Created attachment 1034676 [details]
puppet_module loaded successfully

Comment 9 Bryan Kearney 2015-08-11 13:21:15 UTC
This bug is slated to be released with Satellite 6.1.

Comment 10 Bryan Kearney 2015-08-12 13:57:12 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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