Bug 1520174 - Enabling logging in install inventory causes install to fail
Summary: Enabling logging in install inventory causes install to fail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 3.7.z
Assignee: Andrew Butcher
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-03 20:05 UTC by Gerald Nunn
Modified: 2018-04-05 09:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-05 09:33:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Install log file (3.39 MB, text/plain)
2017-12-03 20:05 UTC, Gerald Nunn
no flags Details
inventory (2.46 KB, text/plain)
2017-12-03 20:05 UTC, Gerald Nunn
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0636 0 None None None 2018-04-05 09:33:53 UTC

Description Gerald Nunn 2017-12-03 20:05:10 UTC
Created attachment 1362368 [details]
Install log file

Description of problem:

I am installing OpenShift in AWS, if I enable the installation of logging via the openshift_logging_install_logging=true variable the installation fails. If I remove this variable it works as expected.

I am using my playbook at the following URL if you want to try to reproduce easily:

https://github.com/gnunn1/openshift-aws-setup

Version-Release number of selected component (if applicable):

openshift-ansible-3.7.9-1.git.7.eedd332.el7.noarch

How reproducible:

Every time

Steps to Reproduce:
1.
2.
3.

Actual results:

TASK [openshift_hosted_facts : Set hosted facts] *******************************
ok: [ip-10-0-1-58.us-west-2.compute.internal] => (item=hosted)
failed: [ip-10-0-1-58.us-west-2.compute.internal] (item=logging) => {"changed": false, "failed": true, "item": "logging", "module_stderr": "Shared connection to ip-10-0-1-58.us-west-2.compute.internal closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_f580vY/ansible_module_openshift_facts.py\", line 2470, in <module>\r\n    main()\r\n  File \"/tmp/ansible_f580vY/ansible_module_openshift_facts.py\", line 2457, in main\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_f580vY/ansible_module_openshift_facts.py\", line 1830, in __init__\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_f580vY/ansible_module_openshift_facts.py\", line 1879, in generate_facts\r\n    facts = set_selectors(facts)\r\n  File \"/tmp/ansible_f580vY/ansible_module_openshift_facts.py\", line 496, in set_selectors\r\n    facts['logging']['selector'] = None\r\nTypeError: 'str' object does not support item assignment\r\n", "msg": "MODULE FAILURE", "rc": 0}
failed: [ip-10-0-1-58.us-west-2.compute.internal] (item=loggingops) => {"changed": false, "failed": true, "item": "loggingops", "module_stderr": "Shared connection to ip-10-0-1-58.us-west-2.compute.internal closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_af_GOx/ansible_module_openshift_facts.py\", line 2470, in <module>\r\n    main()\r\n  File \"/tmp/ansible_af_GOx/ansible_module_openshift_facts.py\", line 2457, in main\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_af_GOx/ansible_module_openshift_facts.py\", line 1830, in __init__\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_af_GOx/ansible_module_openshift_facts.py\", line 1879, in generate_facts\r\n    facts = set_selectors(facts)\r\n  File \"/tmp/ansible_af_GOx/ansible_module_openshift_facts.py\", line 496, in set_selectors\r\n    facts['logging']['selector'] = None\r\nTypeError: 'unicode' object does not support item assignment\r\n", "msg": "MODULE FAILURE", "rc": 0}
failed: [ip-10-0-1-58.us-west-2.compute.internal] (item=metrics) => {"changed": false, "failed": true, "item": "metrics", "module_stderr": "Shared connection to ip-10-0-1-58.us-west-2.compute.internal closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_o0C_b0/ansible_module_openshift_facts.py\", line 2470, in <module>\r\n    main()\r\n  File \"/tmp/ansible_o0C_b0/ansible_module_openshift_facts.py\", line 2457, in main\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_o0C_b0/ansible_module_openshift_facts.py\", line 1830, in __init__\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_o0C_b0/ansible_module_openshift_facts.py\", line 1879, in generate_facts\r\n    facts = set_selectors(facts)\r\n  File \"/tmp/ansible_o0C_b0/ansible_module_openshift_facts.py\", line 496, in set_selectors\r\n    facts['logging']['selector'] = None\r\nTypeError: 'unicode' object does not support item assignment\r\n", "msg": "MODULE FAILURE", "rc": 0}
failed: [ip-10-0-1-58.us-west-2.compute.internal] (item=prometheus) => {"changed": false, "failed": true, "item": "prometheus", "module_stderr": "Shared connection to ip-10-0-1-58.us-west-2.compute.internal closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_RMmUeg/ansible_module_openshift_facts.py\", line 2470, in <module>\r\n    main()\r\n  File \"/tmp/ansible_RMmUeg/ansible_module_openshift_facts.py\", line 2457, in main\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_RMmUeg/ansible_module_openshift_facts.py\", line 1830, in __init__\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_RMmUeg/ansible_module_openshift_facts.py\", line 1879, in generate_facts\r\n    facts = set_selectors(facts)\r\n  File \"/tmp/ansible_RMmUeg/ansible_module_openshift_facts.py\", line 496, in set_selectors\r\n    facts['logging']['selector'] = None\r\nTypeError: 'unicode' object does not support item assignment\r\n", "msg": "MODULE FAILURE", "rc": 0}

NO MORE HOSTS LEFT *************************************************************
 [WARNING]: Could not create retry file '/usr/share/ansible/openshift-
ansible/playbooks/byo/config.retry'.         [Errno 13] Permission denied:
u'/usr/share/ansible/openshift-ansible/playbooks/byo/config.retry'

PLAY RECAP *********************************************************************
ip-10-0-1-24.us-west-2.compute.internal : ok=48   changed=5    unreachable=0    failed=0   
ip-10-0-1-58.us-west-2.compute.internal : ok=236  changed=71   unreachable=0    failed=1   
ip-10-0-1-9.us-west-2.compute.internal : ok=48   changed=5    unreachable=0    failed=0   
localhost                  : ok=11   changed=0    unreachable=0    failed=0   


INSTALLER STATUS ***************************************************************
Initialization             : Complete
Health Check               : Complete
etcd Install               : Complete
Master Install             : In Progress
	This phase can be restarted by running: playbooks/byo/openshift-master/config.yml


Expected results:

OpenShift installs with logging

Additional info:


Description of problem:

Version-Release number of the following components:
rpm -q openshift-ansible
rpm -q ansible
ansible --version

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

Expected results:

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Gerald Nunn 2017-12-03 20:05:57 UTC
Created attachment 1362369 [details]
inventory

Comment 2 Jeff Cantrill 2017-12-04 18:31:32 UTC
Gerald,

You can repeatedly and consistently deploy a cluster but fail when installing logging?  There is no chance this is intermittent?

Comment 3 Jeff Cantrill 2017-12-04 18:32:21 UTC
@Scott,

Is there someone who works on the fact gathering code that may address this.  We have not even executed the logging playbooks when this error occurs

Comment 4 Gerald Nunn 2017-12-04 18:38:44 UTC
It fails everytime when install logging is true so yes it is consistent. With it set to false the cluster installs fine without issue.

Comment 5 Scott Dodson 2017-12-04 18:44:27 UTC
Jeff, Yeah, I'll see if Andrew can take a stab at it.

Comment 8 Anping Li 2018-01-25 08:31:15 UTC
@scott, logging can be deployed using openshift-ansible-3.7.26,  I had modified the target version to v3.7.z.

Comment 9 Anping Li 2018-01-25 08:35:46 UTC
@jialiu,  Logging can be deployed during installing OpenShift with openshift_logging_storage_kind=dynamic. the pull/6306 inlcude many other fix in filter and openshift_hosted. please investigate if we need more test coverage.

Comment 10 Scott Dodson 2018-01-25 14:50:31 UTC
(In reply to Anping Li from comment #8)
> @scott, logging can be deployed using openshift-ansible-3.7.26,  I had
> modified the target version to v3.7.z.

Ok, thanks!

Comment 11 Anping Li 2018-02-25 02:00:52 UTC
Logging can be installed alongside using openshift-ansible-3.7.2. so move bug to verified.

Comment 15 errata-xmlrpc 2018-04-05 09:33:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0636


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