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
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
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
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'.
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
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
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.
Move back this bug to ON_QA, clone a new bug - 1553563 to track upgrade issue.
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