Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1550148 - Web console install no longer honors openshift_master_console_port
Web console install no longer honors openshift_master_console_port
Status: CLOSED CURRENTRELEASE
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
3.9.0
Unspecified Unspecified
unspecified Severity medium
: ---
: 3.9.0
Assigned To: Samuel Padgett
Yadan Pei
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-28 11:12 EST by Samuel Padgett
Modified: 2018-03-27 05:49 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1553563 (view as bug list)
Environment:
Last Closed: 2018-03-09 08:40:42 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.9 RPM Release Advisory 2018-03-28 14:06:38 EDT

  None (edit)
Description Samuel Padgett 2018-02-28 11:12:59 EST
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 15:11:33 EST
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 17:57:15 EST
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 03:48:15 EST
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 12:56:03 EST
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 14:38:52 EST
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-08 22:50:23 EST
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-08 23:59:04 EST
Move back this bug to ON_QA, clone a new bug - 1553563 to track upgrade issue.
Comment 9 Yadan Pei 2018-03-09 02:37:59 EST
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.