Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1638183

Summary: [ceph-ansible] : 'cluster' is undefined while initializing cluster
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED DUPLICATE QA Contact: Vasishta <vashastr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2CC: aschoen, ceph-eng-bugs, gmeno, hnallurv, nthomas, sankarshan
Target Milestone: rc   
Target Release: 3.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-15 11:35:56 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 Vasishta 2018-10-11 03:35:32 UTC
Description of problem:
While running playbook site.yml, task "get ceph status from the first monitor" failing saying 'cluster' is not defined

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

How reproducible:
Always

Steps to Reproduce:
1. Configure ceph-ansible to initialize a cluster and run playbook

Actual results:
fatal: [magna007]: 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"
}


Additional info:
**************

Observed that github.com/ceph/ceph-ansible/pull/3202 is intended to resolve this issue which has been merged to master branch.

Comment 3 Vasishta 2018-10-11 03:55:58 UTC
Tried fixes in PR 3202 with ceph-ansible-3.2.0-0.1.beta3, working fine.

Comment 4 Vasishta 2018-10-15 11:35:56 UTC

*** This bug has been marked as a duplicate of bug 1636962 ***