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..
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
ansible-playbook playbooks/openshift-web-console/config.ymlI expected the installation to run successfully and to be able to access the web console.
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"}
Provide any additional information which may help us diagnose the
issue.
$ cat /etc/redhat-release)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'
One thing you may want to try is using an older version of the Ansible Installer (looks like you're using 2.7.2). This repo's README states:
Ansible >= 2.6.5, Ansible 2.7 is not yet supported and known to fail
May not be the underlying issue, but something to consider.
I tried using Ansible 2.6.8, but get the same error.
What's the pod status in openshift-web-console?
@blakemorgan can you try using ansible-2.6.5?
By the way openshift-origin311 now avaible on CentOS repos. So i assume that its available on RHEL repos too. http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin311/ . So openshift_additional_repos var in your inventory file is not neccessary.
@blakemorgan Did you ever get this to work?
I am getting same error. Did anyone have any workaround to make this work?
be sure these are set in your /etc/ansible/hosts file:
...
openshift_master_cluster_public_hostname=your.host.fqdn
openshift_master_cluster_hostname=your.host.fqdn
...
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten
/remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen.
Mark the issue as fresh by commenting/remove-lifecycle rotten.
Exclude this issue from closing again by commenting/lifecycle frozen./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Most helpful comment
I tried using Ansible 2.6.8, but get the same error.