Bug 1493552 - [ceph-ansible] - conf file generation failing on rgw nodes when nodes have different interface names
Summary: [ceph-ansible] - conf file generation failing on rgw nodes when nodes have di...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 3.0
Assignee: Sébastien Han
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-20 13:24 UTC by Vasishta
Modified: 2017-12-05 23:44 UTC (History)
10 users (show)

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:
Clone Of:
Environment:
Last Closed: 2017-12-05 23:44:17 UTC
Embargoed:


Attachments (Terms of Use)
File contains inventory file, contents of all.yml, ansible log (1.37 MB, text/plain)
2017-09-20 13:24 UTC, Vasishta
no flags Details
ansible rgw setup (69.48 KB, text/plain)
2017-09-20 13:27 UTC, Vasishta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 1940 0 None None None 2017-09-22 12:46:58 UTC
Red Hat Product Errata RHBA-2017:3387 0 normal SHIPPED_LIVE Red Hat Ceph Storage 3.0 bug fix and enhancement update 2017-12-06 03:03:45 UTC

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


Note You need to log in before you can comment on or make changes to this bug.