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 1507907

Summary: [ceph-ansible] - osd_auto_discovery set to true is getting ignored
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: high Docs Contact:
Priority: high    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, gmeno, hnallurv, kdreyer, nthomas, sankarshan
Target Milestone: rcKeywords: Regression
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.8-1.el7cp Ubuntu: ceph-ansible_3.0.8-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:49:35 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:
Attachments:
Description Flags
File contains contents of inventory file, conf files, ansible-playbook log none

Description Vasishta 2017-10-31 12:26:25 UTC
Created attachment 1345876 [details]
File contains contents of inventory file, conf files, ansible-playbook log

Description of problem:
osd_auto_discovery set to tru is getting ignored and playbook is failing saying "'devices' is undefined" while running th task ceph-defaults : resolve device link(s)

Version-Release number of selected component (if applicable):
ceph-ansible-3.0.7-1.el7cp.noarch

How reproducible:
Always

Steps to Reproduce:
1. Configure ceph-ansible to get a cluster up
2. Set osd_auto_discovery to true.
3. Run ansible-playbook.

Actual results:
FAILED! => {"failed": true, "msg": "'devices' is undefined"}

Expected results:
Setting osd_auto_discovery flag to true must be recognized while running ansible-playbook

Additional info:
Attachment contains example scenario details where containerized scenario was tried and the flag osd_auto_discovery was set in inventory file.
But this issue is being observed in non-containerized scenario also and even when flag was initialized in osds.yml also

Comment 4 Sébastien Han 2017-10-31 13:45:49 UTC
Fix will be in 3.0.8

Comment 5 Sébastien Han 2017-10-31 14:29:01 UTC
https://github.com/ceph/ceph-ansible/releases/tag/v3.0.8

Ken, can we get a new package?
Thanks.

Comment 10 Vasishta 2017-11-02 10:23:58 UTC
Working fine with ceph-ansible-3.0.8-1.el7cp.noarch.

Comment 13 errata-xmlrpc 2017-12-05 23:49:35 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:3387