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 1493552

Summary: [ceph-ansible] - conf file generation failing on rgw nodes when nodes have different interface names
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, gmeno, kdreyer, nthomas, sankarshan, seb, vashastr, vimishra
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.0-0.1.rc11.el7cp Ubuntu: ceph-ansible_3.0.0~rc11-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:44:17 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 inventory file, contents of all.yml, ansible log
none
ansible rgw setup none

Description Vasishta 2017-09-20 13:24:00 UTC
Created attachment 1328443 [details]
File contains inventory file, contents of all.yml, ansible log

Description of problem:
Conf file generation failing on rgw nodes when nodes have different interface names.

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

How reproducible:
Always

Steps to Reproduce:
1. Configure ceph-ansible to get a cluster up with multiple rgws nodes having different interface names
2. Run ansible-playbook site.yml


Actual results:
ceph-ansible is failing to generate conf files on rgw nodes saying 
"'dict object' has no attribute u'ansible_enp4s0f0'"

Expected results:
rgws configuration must be successful 

Additional info:
As radosgw_interface has different values for different nodes, the variables was initialized in inventory file as
 
[rgws]
magna069 radosgw_interface=eno1
hp-ms-01-c04.moonshot1.lab.eng.rdu.redhat.com radosgw_interface=enp4s0f0
hp-ms-01-c05.moonshot1.lab.eng.rdu.redhat.com radosgw_interface=enp4s0f0

Comment 2 Vasishta 2017-09-20 13:27:09 UTC
Created attachment 1328444 [details]
ansible rgw setup

Comment 3 seb 2017-09-22 12:46:58 UTC
Do you mind testing the patch attached?
Thanks!

Comment 11 errata-xmlrpc 2017-12-05 23:44:17 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