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 1585839 - Cannot perform errata installation action over remote execution for Host Collection
Summary: Cannot perform errata installation action over remote execution for Host Coll...
Keywords:
Status: CLOSED DUPLICATE of bug 1558524
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Host Collections
Version: 6.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
: 1589089 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-04 22:21 UTC by Paul Dudley
Modified: 2021-09-09 14:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-14 14:57:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Entire traceback received (16.44 KB, text/plain)
2018-06-04 22:26 UTC, Paul Dudley
no flags Details
Stack including the controller action initiating the action. (17.13 KB, text/plain)
2018-06-13 20:13 UTC, Brad Buckingham
no flags Details

Description Paul Dudley 2018-06-04 22:21:12 UTC
Description of problem:
When attempting to run an errata installation over remote execution for a host collection the following traceback occurs:

2018-06-04 17:49:43 1317a13f [app] [W] Action failed
 | NoMethodError: undefined method `underscore' for nil:NilClass
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.64.2/app/controllers/katello/remote_execution_controller.rb:44:in `feature_name'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.64.2/app/controllers/katello/remote_execution_controller.rb:21:in `prepare_composer'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.64.2/app/controllers/katello/remote_execution_controller.rb:9:in `create'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/actionpack-4.2.6/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/actionpack-4.2.6/lib/abstract_controller/base.rb:198:in `process_action'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/actionpack-4.2.6/lib/action_controller/metal/rendering.rb:10:in `process_action'


Version-Release number of selected component (if applicable):
Satellite 6.3/6.3.1

How reproducible:
100%

Steps to Reproduce:
1. Select host collection
2. Select 'Errata Installation'
3. Select errata
4. Select install via remote execution (both the normal and customize first options produce the traceback)

Actual results:
Cannot install errata via remote execution through a host collection

Expected results:
The selection of remote execution goes to job template page

Comment 1 Paul Dudley 2018-06-04 22:26:00 UTC
Created attachment 1447657 [details]
Entire traceback received

Comment 6 Brad Buckingham 2018-06-13 20:07:49 UTC
*** Bug 1589089 has been marked as a duplicate of this bug. ***

Comment 7 Brad Buckingham 2018-06-13 20:13:49 UTC
Created attachment 1451026 [details]
Stack including the controller action initiating the action.

Comment 8 Brad Buckingham 2018-06-13 20:14:25 UTC
Thanks Paul!

Comment 10 Stephen Benjamin 2018-06-14 14:57:36 UTC
Fix for this is same as BZ1558524, we are sending remoteAction instead of remote_action in the call to remote execution:

2018-06-14 10:53:01 686f47ec [app] [I]   Parameters: {"{\"authenticityToken\":\"qV8pdAfZ8UTUf4ggFMOQkWVYNplZ MVHRK7hpZ26TbIq1FSRqETETocKki WLnR2qOgfRDs6rr31NU HVVrW6w"=>"=\",\"remoteAction\":\"errata_install\",\"errata\":\"RHBA-2018:1838\",\"hostIds\":\"17,25,26\",\"search\":null,\"customize\":false}"}
2018-06-14 10:53:01 686f47ec [app] [I] Current user: admin (administrator)
2018-06-14 10:53:01 686f47ec [app] [I] Expire fragment views/tabs_and_title_records-3 (0.1ms)
2018-06-14 10:53:01 686f47ec [app] [W] Action failed
 | NoMethodError: undefined method `underscore' for nil:NilClass
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.64.2/app/controllers/katello/remote_execution_controller.rb:44:in `feature_name'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.64.2/app/controllers/katello/remote_execution_controller.rb:21:in `prepare_composer'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.64.2/app/controllers/katello/remote_execution_controller.rb:9:in `create'

*** This bug has been marked as a duplicate of bug 1558524 ***


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