Bug 1550148 - Web console install no longer honors openshift_master_console_port
Summary: Web console install no longer honors openshift_master_console_port
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.9.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-28 16:12 UTC by Samuel Padgett
Modified: 2018-03-27 09:49 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1553563 (view as bug list)
Environment:
Last Closed: 2018-03-09 13:40:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.9 RPM Release Advisory 2018-03-28 18:06:38 UTC

Description Samuel Padgett 2018-02-28 16:12:59 UTC
The web console install no longer honors the ansible variable `openshift_master_console_port` during install. The API server proxies to the console running in a pod in 3.9, so currently you can only access the console on the API server port.

See https://docs.openshift.org/latest/install_config/install/advanced_install.html#configuring-host-port

Comment 1 Samuel Padgett 2018-03-01 20:11:33 UTC
We're planning on removing this option in the install. This PR will fail early with a message when the console port is different than the API server port:

https://github.com/openshift/openshift-ansible/pull/7348

Comment 2 openshift-github-bot 2018-03-02 22:57:15 UTC
Commits pushed to master at https://github.com/openshift/openshift-ansible

https://github.com/openshift/openshift-ansible/commit/bc35693db802e9c14496321578cbcbbb8fd32a1f
Bug 1550148 - Fail install if console port does not match API server port

https://bugzilla.redhat.com/show_bug.cgi?id=1550148

https://github.com/openshift/openshift-ansible/commit/8ce73ffb40d0bb81a15b4e0880dd93a10740855f
Merge pull request #7348 from spadgett/fail-console-port

Automatic merge from submit-queue.

Bug 1550148 - Fail install if console port does not match API server port

https://bugzilla.redhat.com/show_bug.cgi?id=1550148

/assign @sdodson 
cc @jwforres

Comment 3 Yanping Zhang 2018-03-07 08:48:15 UTC
Tested installation of ocp 3.9 with openshift-ansible-3.9.3-1 which contains the fix in https://github.com/openshift/openshift-ansible/pull/7348,

I install the env with jenkins job, and set ansible paramter "openshift_master_console_port" with a value not equal to 8443, here is: "openshift_master_console_port: 7443"
The installation failed at task "Ensure that web console port matches API server port":
fatal: [qe-ui-39-bug-master-etcd-1.0307-nsq.qe.rhcloud.com]: FAILED! => {"failed": true, "msg": "The conditional check 'openshift_version | version_compare('3.9', '>=')' failed. The error was: Version comparison: 'openshift_version' is undefined\n\nThe error appears to have been in '/home/slave2/workspace/Launch Environment Flexy/private-openshift-ansible/roles/openshift_sanitize_inventory/tasks/main.yml': line 92, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Ensure that web console port matches API server port\n  ^ here\n"}


Also tried to run playbook in localhost, met same error as above. 
' failed. The error was: Version comparison: 'openshift_version' is undefined '
There is something wrong with 'openshift_version'.

Comment 4 Samuel Padgett 2018-03-07 17:56:03 UTC
3.9 follow on fix: https://github.com/openshift/openshift-ansible/pull/7426

master follow on fix: https://github.com/openshift/openshift-ansible/pull/7424

Comment 5 openshift-github-bot 2018-03-07 19:38:52 UTC
Commits pushed to master at https://github.com/openshift/openshift-ansible

https://github.com/openshift/openshift-ansible/commit/598f5f4d7509ed52de414345d40c01c2d2f7b1a8
Bug 1550148 - Don't use undefined openshift_version in openshift_sanitize_inventory

Follow on fix for https://bugzilla.redhat.com/show_bug.cgi?id=1550148

https://github.com/openshift/openshift-ansible/commit/5f34fe33aeefd0f616a62118de7f43dfaa660a3e
Merge pull request #7424 from spadgett/sanitize-skip-version-check

Bug 1550148 - Don't use undefined openshift_version in openshift_sanitize_inventory

Comment 7 Johnny Liu 2018-03-09 03:50:23 UTC
Seem like this does not take upgrade scenario into consideration, e.g:
1. customer install 3.7 cluster with console port is set to 7443, and api port is set to 443.
2. upgrade the cluster to 3.9.


Then user would can not access web console on 7443.

Comment 8 Johnny Liu 2018-03-09 04:59:04 UTC
Move back this bug to ON_QA, clone a new bug - 1553563 to track upgrade issue.

Comment 9 Yadan Pei 2018-03-09 07:37:59 UTC
Define a not matching console port "openshift_master_console_port: 7443" and run installation, installation failed at task [Ensure that web console port matches API server port] with error message:
..."The OpenShift web console port must now match the API server port. If you were previoiusly running the web console on a different port than the API server, please open a support ticket.



Set openshift_master_extension_scripts or openshift_master_extension_stylesheets during installation, installation will fail at [TASK:Ensure removed web console extension variables are not set] with error message:
...."The OpenShift web console extensions must now be served as URLs. You can add extensions using the openshift_web_console_extension_script_urls and openshift_web_console_extension_stylesheet_urls variables. The following variables are no longer used: openshift_master_extension_scripts, openshift_master_extension_stylesheets, openshift_master_extensions\n"}


Move to VERIFIED, also clear the NEEDINFO request since upgrade issue tracked in another bug


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