Bug 1775653

Summary: adminConsolePublicURL of webconsole CM is changed in upgrade to 3.11.153, which makes upgrade to fail
Product: OpenShift Container Platform Reporter: Alberto Gonzalez de Dios <algonzal>
Component: InstallerAssignee: Russell Teague <rteague>
Installer sub component: openshift-ansible QA Contact: shahan <hasha>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: unspecified CC: bleanhar, hasha, jroberts, pkanthal
Version: 3.11.0Keywords: Regression
Target Milestone: ---   
Target Release: 3.11.z   
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: 2019-12-16 11:57:11 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: 1700082    

Description Alberto Gonzalez de Dios 2019-11-22 14:10:27 UTC
Description of problem:
When upgrading to last version 3.11.153, the upgrade playbook is replacing adminConsolePublicURL to https://console.{{openshift_master_default_subdomain}}, which is causing the upgrade to fail:

     "msg": [
        "Error: AssetConfig.webconsole.config.openshift.io \"\" is invalid: config.clusterInfo.adminConsolePublicURL: Invalid value: \"https://console.{{openshift_master_default_subdomain}}/\": must be a valid URL", 

As we can see in logs, previous value was set properly:

Before:
2019-11-22 13:33:36,980 p=9722 u=v002978 |  ok: [master.example.com] => {"ansible_facts": {"existing_config_map_data": {"webconsole-config.yaml": "apiVersion: webconsole.config.openshift.io/v1\nclusterInfo:\n  adminConsolePublicURL: https://console.example.com/\n

Later:
2019-11-22 13:33:38,864 p=9722 u=v002978 |  changed: [master.example.com] => {"changed": true, "module_results": [{"edit": {"apiVersion": "webconsole.config.openshift.io/v1", "clusterInfo": {"adminConsolePublicURL": "https://console.{{openshift_master_default_subdomain}}/",


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

How reproducible:
Run upgrade playbook of last version

Comment 4 Russell Teague 2019-11-22 18:15:29 UTC
PR was already opened to address this:
https://github.com/openshift/openshift-ansible/pull/12014

Comment 8 errata-xmlrpc 2019-12-16 11:57:11 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-2019:4050