Bug 1431527
Summary: | Ansible faild at TASK [openshift_logging : Generate Elasticsearch DeploymentConfig for Ops] if enabled ops cluster | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Junqi Zhao <juzhao> | ||||||
Component: | Installer | Assignee: | Jeff Cantrill <jcantril> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Junqi Zhao <juzhao> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 3.5.0 | CC: | aos-bugs, jcantril, jokerman, mmccomas, pruan | ||||||
Target Milestone: | --- | Keywords: | Regression | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | No Doc Update | |||||||
Doc Text: |
undefined
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-04-12 19:03:49 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | 1431935 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Created attachment 1262316 [details]
ansible running log
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 blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1431935, will verify it after BZ # 1431935 get fixed. 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. 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 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 |
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