Error installing openshift-web-console
See original GitHub issueDescription
Provide a brief description of your issue here. For example:
On an all in one install, the openshift-web-console playbook fails to complete installation…
Version
ansible 2.7.2
config file = /usr/share/ansible/openshift-ansible/ansible.cfg
configured module search path = [u'/home/btm296/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Sep 12 2018, 05:31:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
openshift-ansible-3.11.49-1
Steps To Reproduce
- Run
ansible-playbook playbooks/openshift-web-console/config.yml
Expected Results
I expected the installation to run successfully and to be able to access the web console.
Observed Results
An error message is getting thrown about one minute into the playbook running.
TASK [openshift_web_console : Verify that the console is running] *************************************************************************************************************************************************
Friday 30 November 2018 12:04:36 -0700 (0:00:00.456) 0:01:29.187 *******
fatal: [asb-ucom-rhel.byu.edu]: FAILED! => {"msg": "The conditional check 'console_deployment.results.results[0].status.readyReplicas is defined' failed. The error was: error while evaluating conditional (console_deployment.results.results[0].status.readyReplicas is defined): 'dict object' has no attribute 'results'"}
...ignoring
TASK [openshift_web_console : Check status in the openshift-web-console namespace] ********************************************************************************************************************************
Friday 30 November 2018 12:04:38 -0700 (0:00:02.432) 0:01:31.619 *******
fatal: [asb-ucom-rhel.byu.edu]: FAILED! => {"msg": "The conditional check '(console_deployment.results.results[0].status.readyReplicas is not defined) or (console_deployment.results.results[0].status.readyReplicas == 0)' failed. The error was: error while evaluating conditional ((console_deployment.results.results[0].status.readyReplicas is not defined) or (console_deployment.results.results[0].status.readyReplicas == 0)): 'dict object' has no attribute 'results'\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_web_console/tasks/start.yml': line 21, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n block:\n - name: Check status in the openshift-web-console namespace\n ^ here\n"}
...ignoring
TASK [openshift_web_console : debug] ******************************************************************************************************************************************************************************
Friday 30 November 2018 12:04:39 -0700 (0:00:00.269) 0:01:31.889 *******
fatal: [asb-ucom-rhel.byu.edu]: FAILED! => {"msg": "The conditional check '(console_deployment.results.results[0].status.readyReplicas is not defined) or (console_deployment.results.results[0].status.readyReplicas == 0)' failed. The error was: error while evaluating conditional ((console_deployment.results.results[0].status.readyReplicas is not defined) or (console_deployment.results.results[0].status.readyReplicas == 0)): 'dict object' has no attribute 'results'\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_web_console/tasks/start.yml': line 26, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n ignore_errors: true\n - debug:\n ^ here\n"}
Additional Information
Provide any additional information which may help us diagnose the issue.
- Your operating system and version, ie: RHEL 7.2, Fedora 23 (
$ cat /etc/redhat-release
) - Your inventory file (especially any non-standard configuration parameters)
- Sample code, etc
OS: Red Hat Enterprise Linux Server release 7.6 (Maipo)
Inventory file:
# Create an OSEv3 group that contains the masters, nodes, and etcd groups
[OSEv3:children]
masters
nodes
etcd
# Set variables common for all OSEv3 hosts
[OSEv3:vars]
# # SSH user, this user should allow ssh based auth without requiring a password
ansible_ssh_user=root
# If ansible_ssh_user is not root, ansible_become must be set to true
#ansible_become=true
openshift_deployment_type=origin
# uncomment the following to enable htpasswd authentication; defaults to AllowAllPasswordIdentityProvider
#openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}]
# Use firewalld
os_firewall_use_firewalld=true
# extra 3.11 repo
openshift_additional_repos=[{'id': 'centos-okd-ci', 'name': 'centos-okd-ci', 'baseurl' :'http://buildlogs.centos.org/centos/7/paas/x86_64/openshift-origin311/', 'gpgcheck' :'0', 'enabled' :'1'}]
# host group for masters
[masters]
asb-ucom-rhel.byu.edu
# host group for etcd
[etcd]
asb-ucom-rhel.byu.edu
# host group for nodes, includes region info
[nodes]
asb-ucom-rhel.byu.edu openshift_node_group_name='node-config-master'
asb-ucom-rhel.byu.edu openshift_node_group_name='node-config-compute'
asb-ucom-rhel.byu.edu openshift_node_group_name='node-config-infra'
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Chapter 22. Troubleshooting installation issues OpenShift ...
To assist in troubleshooting a failed OpenShift Container Platform installation, you can gather logs from the bootstrap and control plane, or master, machines....
Read more >Chapter 2. Installing the Web Console Red Hat Application ...
When installed on OpenShift, the RHAMT web console is deployed on Red Hat JBoss ... When accessing the executor pod's logs the following...
Read more >1895372 – Web console going blank after selecting any ...
14) How reproducible: Always Steps to Reproduce: 1. Login the Web console as the cluster-admin user(or any user). OCP web-console -> Operator Hub...
Read more >Chapter 2. Installing the web console - Red Hat Customer Portal
After attempting to deploy Web Console on OpenShift, the Pod is unable to start, and the following error is seen in the Events...
Read more >[oc cluster up behind proxy] Failed to install "openshift-web ...
This might be caused by a failure to pull the web-console image. Could you provide logs for the running containers, logs for the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I tried using Ansible 2.6.8, but get the same error.
I am getting same error. Did anyone have any workaround to make this work?