Bug 1386208

Summary: Rerun a job invocation loses the effective user
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: Remote ExecutionAssignee: Ivan Necas <inecas>
Status: CLOSED ERRATA QA Contact: Adam Ruzicka <aruzicka>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.2CC: aruzicka, bbuckingham, brubisch, inecas, jcallaha, ktordeur
Target Milestone: UnspecifiedKeywords: Triaged
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-02-21 16:51:07 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:
Bug Depends On:    
Bug Blocks: 1122832    

Description Peter Vreman 2016-10-18 12:11:20 UTC
Description of problem:
the effective user field is not included when a job is being rerun.
This is even more tricky, because it is not directly visible from the the new job invocation page because the effective user is hidden in the advanced fields that are by default collapsed.


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


How reproducible:


Steps to Reproduce:
1. Run a job template with effective user root
2. Rerun the job template
3.

Actual results:
The rerun of job template does not run with effective user root

Expected results:
The rerun job template runs with effective user root

Additional info:

Comment 2 Adam Ruzicka 2016-11-21 13:12:03 UTC
Created redmine issue http://projects.theforeman.org/issues/17410 from this bug

Comment 3 Satellite Program 2017-04-18 18:07:41 UTC
Upstream bug assigned to inecas

Comment 4 Satellite Program 2017-04-18 18:07:44 UTC
Upstream bug assigned to inecas

Comment 5 Satellite Program 2017-04-19 14:08:26 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17410 has been resolved.

Comment 6 Adam Ruzicka 2017-08-02 12:49:57 UTC
Verified.
Satellite-6.3 Snap 9
Package versions:
satellite-6.3.0-16.0.beta.el7sat.noarch
tfm-rubygem-foreman_remote_execution-1.3.3-1.fm1_15.el7sat.noarch

1) Set effective user to toor
2) Run the job
3) Rerun the job
4) Effective user for the new job is toor

Comment 7 Satellite Program 2018-02-21 16:51:07 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/RHSA-2018:0336