Bug 1431527 - Ansible faild at TASK [openshift_logging : Generate Elasticsearch DeploymentConfig for Ops] if enabled ops cluster
Summary: Ansible faild at TASK [openshift_logging : Generate Elasticsearch DeploymentC...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jeff Cantrill
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On: 1431935
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-13 07:05 UTC by Junqi Zhao
Modified: 2017-07-24 14:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-04-12 19:03:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
inventory file, enabled ops cluster (815 bytes, text/plain)
2017-03-13 07:05 UTC, Junqi Zhao
no flags Details
ansible running log (741.79 KB, text/plain)
2017-03-13 07:07 UTC, Junqi Zhao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0903 0 normal SHIPPED_LIVE OpenShift Container Platform atomic-openshift-utils bug fix and enhancement 2017-04-12 22:45:42 UTC

Description Junqi Zhao 2017-03-13 07:05:13 UTC
Created attachment 1262314 [details]
inventory file, enabled ops cluster

Description of problem:

Deploy  logging stacks via ansible, set openshift_logging_use_ops=true, it  faild at TASK [openshift_logging : Generate Elasticsearch  DeploymentConfig for Ops],
this issue is only happened with enabled ops cluster.
TASK [openshift_logging : Generate Elasticsearch DeploymentConfig for Ops] *****
task path: /usr/share/ansible/openshift-ansible/roles/openshift_logging/tasks/install_elasticsearch.yaml:107
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 98, in run
    item_results = self._run_loop(items)
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 281, in _run_loop
    res = self._execute(variables=task_vars)
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 443, in _execute
    self._task.post_validate(templar=templar)
  File "/usr/lib/python2.7/site-packages/ansible/playbook/task.py", line 248, in post_validate
    super(Task, self).post_validate(templar)
  File "/usr/lib/python2.7/site-packages/ansible/playbook/base.py", line 373, in post_validate
    value = templar.template(getattr(self, name))
  File "/usr/lib/python2.7/site-packages/ansible/template/__init__.py", line 427, in template
    disable_lookups=disable_lookups,
  File "/usr/lib/python2.7/site-packages/ansible/template/__init__.py", line 383, in template
    disable_lookups=disable_lookups,
  File "/usr/lib/python2.7/site-packages/ansible/template/__init__.py", line 583, in do_template
    res = j2_concat(rf)
  File "<template>", line 10, in root
  File "/usr/share/ansible/openshift-ansible/roles/openshift_logging/filter_plugins/openshift_logging.py", line 33, in map_from_pairs
    return dict(source.split(delim) for item in source.split(","))
AttributeError: 'dict' object has no attribute 'split'
fatal: [ec2-54-236-13-247.compute-1.amazonaws.com]: FAILED! => {
    "failed": true
}


Version-Release number of selected component (if applicable):
openshift-ansible-3.5.28-1.git.0.103513e.el7.noarch
Note: openshift-ansible and playbooks are yum installed.

# python --version
Python 2.7.12


How reproducible:
Always

Steps to Reproduce:
1.Deploy logging stacks via ansible, set openshift_logging_use_ops=true

2.Check the deployment result

Actual results:
Deployment failed, failed at TASK [openshift_logging : Generate Elasticsearch DeploymentConfig for Ops]
Expected results:
Deployment should be successful

Additional info:
Ansible running log attached
inventory file  attached

Comment 1 Junqi Zhao 2017-03-13 07:07:31 UTC
Created attachment 1262316 [details]
ansible running log

Comment 2 Jeff Cantrill 2017-03-13 13:37:08 UTC
Fix was in https://github.com/openshift/openshift-ansible/pull/3608.  Please use installer code from after March 9. Looks like you would need 3.5.29 or better

Comment 4 Junqi Zhao 2017-03-14 05:27:00 UTC
blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1431935, will verify it after BZ # 1431935 get fixed.

Comment 5 Junqi Zhao 2017-03-15 02:27:28 UTC
BZ #1431935 get fixed according to the PR, but the new rpm package for openshift-ansible-playbooks is not ready not, will verify it after new rpm package is ready.

Comment 6 Junqi Zhao 2017-03-17 03:12:40 UTC
Verified with the following versions, this defect is fixed.

openshift-ansible-3.5.35-1.git.0.7aa4728.el7.noarch
openshift-ansible-playbooks-3.5.35-1.git.0.7aa4728.el7.noarch

Comment 8 errata-xmlrpc 2017-04-12 19:03:49 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-2017:0903


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