Bug 1458639

Summary: Upgrade [6.2 -> 6.3]: Installer failed: Parameter foreman-websockets-ssl-key invalid:
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: UpgradesAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, egolov, ehelms, inecas, jcallaha, mbacovsk, sjagtap
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:54:37 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: 1458642    
Attachments:
Description Flags
foreman-debug none

Description Sachin Ghai 2017-06-05 05:22:03 UTC
Description of problem:
Upgraded 6.2.9 -> sat6.3.0 beta snap1. After package updates, satellite-installer failed w/ below error:

[SERVER] run: satellite-installer --scenario satellite --upgrade
[SERVER] out: Parameter foreman-websockets-ssl-key invalid:  is not one of regexes matchiParameter foreman-websockets-ssl-cert invalid:  is not one of regexes matchError during configuration, exiting


Version-Release number of selected component (if applicable):
sat6.2.9 -> sat6.3.0 snap1

How reproducible:


Steps to Reproduce:
1. yum update -y
2. satellite-installer --scenario satellite --upgrade
3.

Actual results:
Installer failed

Expected results: upgrade should be successful.


Additional info:

Comment 2 Sachin Ghai 2017-06-05 05:29:32 UTC
[ INFO 2017-06-05 01:26:33 verbose] Running validation checks
[ERROR 2017-06-05 01:26:33 verbose] Parameter foreman-websockets-ssl-key invalid:  is not one of regexes matching /^(([a-zA-Z]:[\\\/])|([\\\/][\\\/][^\\\/]+[\\\/][^\\\/]+)|([\\\/][\\\/]\?[\\\/][^\\\/]+))/ or regexes matching /^\/([^\/\0]+\/*)+$/
[ERROR 2017-06-05 01:26:33 verbose] Parameter foreman-websockets-ssl-cert invalid:  is not one of regexes matching /^(([a-zA-Z]:[\\\/])|([\\\/][\\\/][^\\\/]+[\\\/][^\\\/]+)|([\\\/][\\\/]\?[\\\/][^\\\/]+))/ or regexes matching /^\/([^\/\0]+\/*)+$/
Error during configuration, exiting

Comment 4 Sachin Ghai 2017-06-06 02:27:59 UTC
Created attachment 1285186 [details]
foreman-debug

Comment 5 Sachin Ghai 2017-06-06 02:36:29 UTC
As per comment3, here is what I see in satellite-answer file

-bash-4.2# cat /etc/foreman-installer/scenarios.d/satellite-answers.yaml | grep websocket
  websockets_encrypt: false
  websockets_ssl_key: ''
  websockets_ssl_cert: ''

Comment 6 Sachin Ghai 2017-09-27 09:20:30 UTC
Verified w/ sat6.2.11 -> sat6.3 snap16, the reported issue is no longer reproducible.

Comment 8 Satellite Program 2018-02-21 16:54:37 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