Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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

Summary: Cannot perform errata installation action over remote execution for Host Collection
Product: Red Hat Satellite Reporter: Paul Dudley <pdudley>
Component: Host CollectionsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: bbuckingham, pdudley, ptrivedi, stbenjam
Target Milestone: UnspecifiedKeywords: Regression
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-14 14:57:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Entire traceback received
none
Stack including the controller action initiating the action. none

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 ***