Bug 1382692

Summary: Installer does not use foreman-admin-email to set administrator mail
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: InstallerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.2CC: chrobert, jcallaha, stbenjam
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-09-04 17:47:31 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-07 12:29:04 UTC
Description of problem:
The foreman-admin-email is not applied to the foreman setting 'administrator'. Instead the 'administator' setting defaults to "root@<domainname>".

[crash] root@li-lc-1017:~# hammer -c/opt/hoici/etc/sat6/hammer-hoici.yaml settings list | grep administrator
administrator                                          | root.com                          | The default administrator email address

[crash] root@li-lc-1017:~# grep admin_email /etc/foreman-installer/scenarios.d/satellite-answers.yaml
    admin_email: "root.hilti.com"



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


How reproducible:


Steps to Reproduce:
1. Install with '--foreman-admin-email=blah'
2.
3.

Actual results:
Setting 'administrator' is still root@<domainname>

Expected results:
Setting 'administrator' is set to 'blah'

Additional info:
Alternative solution is to remove the 'administrator' setting and replace its use with the mail address from the admin user account instead.

Comment 2 Peter Vreman 2016-10-12 07:39:12 UTC
Additional issue i noticed with an incorrect mail address:

If you supply an invalid mail address, then the db-seed 04-admin.rb will fail and in WARNs the invalid mail addresses error is listed. Then after correcting the mail address the next run of satellite-installer will not apply it. And in the end also the admin account did not get a password set.
A regular user is unable to recover from this without completely clean OS installation and then retry satellite installation again

Comment 3 Stephen Benjamin 2016-10-13 15:24:44 UTC
Created redmine issue http://projects.theforeman.org/issues/16905 from this bug

Comment 4 Bryan Kearney 2018-09-04 17:47:31 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.