Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1520174 - Enabling logging in install inventory causes install to fail
Enabling logging in install inventory causes install to fail
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.7.0
Unspecified Unspecified
medium Severity high
: ---
: 3.7.z
Assigned To: Andrew Butcher
Anping Li
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-03 15:05 EST by Gerald Nunn
Modified: 2018-04-05 05:33 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-05 05:33:10 EDT
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)
Install log file (3.39 MB, text/plain)
2017-12-03 15:05 EST, Gerald Nunn
no flags Details
inventory (2.46 KB, text/plain)
2017-12-03 15:05 EST, Gerald Nunn
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0636 None None None 2018-04-05 05:33 EDT

  None (edit)
Description Gerald Nunn 2017-12-03 15:05:10 EST
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 15:05 EST
Created attachment 1362369 [details]
inventory
Comment 2 Jeff Cantrill 2017-12-04 13:31:32 EST
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 13:32:21 EST
@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 13:38:44 EST
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 13:44:27 EST
Jeff, Yeah, I'll see if Andrew can take a stab at it.
Comment 8 Anping Li 2018-01-25 03:31:15 EST
@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 03:35:46 EST
@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 09:50:31 EST
(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-24 21:00:52 EST
Logging can be installed alongside using openshift-ansible-3.7.2. so move bug to verified.
Comment 15 errata-xmlrpc 2018-04-05 05:33:10 EDT
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.