Bug 1636962

Summary: Cluster's health is ok but installation output throws error
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Yogesh Mane <ymane>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Yogesh Mane <ymane>
Severity: high Docs Contact:
Priority: high    
Version: 3.2CC: anharris, aschoen, ceph-eng-bugs, gmeno, hnallurv, nthomas, sankarshan, vashastr
Target Milestone: rc   
Target Release: 3.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.2.0-0.1.beta5.el7cp Ubuntu: ceph-ansible_3.2.0~beta5-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-03 19:02:01 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:

Description Yogesh Mane 2018-10-08 11:19:20 UTC
Description of problem:
fatal: [magna092]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'cluster' is undefined\n\nThe error appears to have been in '/usr/share/ceph-ansible/site.yml': line 410, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  tasks:\n    - name: get ceph status from the first monitor\n      ^ here\n"}

This error comes in output of installation cluster command(ansible-playbook site.yml).No other error nodes states changed failed status are all zero.After checking the status output comes Health_OK


Version-Release number of selected component (if applicable):ceph-ansible-3.2.0-0.1.beta3.el7cp.noarch


How reproducible:
2/2

Steps to Reproduce:
1.I didnt Enable repo rhel-7-server-ansible-2.6-rpms
2.executed site.yml
3.Error came Ansible must 2.6
4.I enabled repo rhel-7-server-ansible-2.6-rpms
5.installed ansible(version 2.4)
6.then updated ansible(to 2.6)
7.installed ceph-ansible
8.created var/log/ansible directory
8.executed site.yml
9.Then this error came


Actual results:
fatal: [magna092]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'cluster' is undefined\n\nThe error appears to have been in '/usr/share/ceph-ansible/site.yml': line 410, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  tasks:\n    - name: get ceph status from the first monitor\n      ^ here\n"}



Expected results:No error


Additional info:

Comment 3 Sébastien Han 2018-10-12 15:24:27 UTC
Present in https://github.com/ceph/ceph-ansible/releases/tag/v3.2.0beta5

Comment 4 Vasishta 2018-10-15 11:35:56 UTC
*** Bug 1638183 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2019-01-03 19:02:01 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-2019:0020