Bug 1775653 - adminConsolePublicURL of webconsole CM is changed in upgrade to 3.11.153, which makes upgrade to fail
Summary: adminConsolePublicURL of webconsole CM is changed in upgrade to 3.11.153, whi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 3.11.z
Assignee: Russell Teague
QA Contact: shahan
URL:
Whiteboard:
Depends On:
Blocks: 1700082
TreeView+ depends on / blocked
 
Reported: 2019-11-22 14:10 UTC by Alberto Gonzalez de Dios
Modified: 2023-03-24 16:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-16 11:57:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 12014 0 'None' closed Bug 1775653: Fix web console URL 2020-11-24 20:20:12 UTC
Red Hat Product Errata RHBA-2019:4050 0 None None None 2019-12-16 11:57:28 UTC

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


Note You need to log in before you can comment on or make changes to this bug.