Bug 1558524

Summary: Remote Execution Fails for Applying errata in Content Hosts Via Remote Execution Method.
Product: Red Hat Satellite Reporter: Jaskaran Singh Narula <janarula>
Component: Remote ExecutionAssignee: Walden Raines <walden>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: high    
Version: 6.3.0CC: aruzicka, ehelms, inecas, lpramuk, mmccune, pcreech, pdudley, walden
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/23082
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.4.5.72-1,tfm-rubygem-katello-3.4.5.74-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1575988 1728268 (view as bug list) Environment:
Last Closed: 2018-06-20 17:29:18 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:
Bug Depends On:    
Bug Blocks: 1553017    

Description Jaskaran Singh Narula 2018-03-20 12:10:32 UTC
Description of problem:
This problem is where when you try to apply any errata to any no. of hosts ( may it be single also) then there are no jobs that are invoking which seems not to be expected. Whereas when you try to apply any package through the remote execution process it works as by creating a job for that task. 



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


How reproducible:
>> Satellite Web UI >> Content hosts >> Select any no. of hosts >> Select action (Drop down List) >> Manage Errata >> select Errata >> Drop Down List >> Via Remote Execution >> Pop-up (Yes)

Now how I reproduced it as I removed the ssh keys from the hosts and then tried to install the errata from the satellite web ui through remote execution method and the tasks got executed and the errata was installed on the hosts. 

This will take you to Monitor >> Tasks Page. Which is not expected. Whereas this should take as to Monitor >> Jobs Page. 


Actual results:
After clicking on Via Remote execution it is not creating a job in Monitor >> Jobs for this task that needs to be performed. Rather this is creating a Tasks in Monitor >> Tasks and create tasks for this action.  

Expected results:
After clicking on Via Remote execution it is should create a job in Monitor >> Jobs for this task that needs to be performed and then route us to the same page. And then route us to the same page. 

Additional info:

Comment 9 Walden Raines 2018-04-02 13:31:47 UTC
Created redmine issue http://projects.theforeman.org/issues/23082 from this bug

Comment 10 Satellite Program 2018-04-05 16:14:55 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23082 has been resolved.

Comment 19 Lukas Pramuk 2018-06-13 10:24:35 UTC
VERIFIED.

@satellite-6.3.2-1.el7sat.noarch
tfm-rubygem-katello-3.4.5.74-1.el7sat.noarch

by reproducer described in comment#6:

1) Navigate to Hosts > Content Hosts
2) Select a host for errata operations
3) Select Action > Manage Errata
4) Open browser debug console
5) In the modal window select an errata
6) Open install dropdown and select 'via remote execution'

> POST https://<SATFQDN>/katello/remote_execution HTTP/1.1
< HTTP/1.1 302 Found

Redirected to https://<SATFQDN>/job_invocations/4
100% Success

Comment 20 Stephen Benjamin 2018-06-14 14:57:36 UTC
*** Bug 1585839 has been marked as a duplicate of this bug. ***

Comment 21 Bryan Kearney 2018-06-20 17:29:18 UTC
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-2018:1950