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 1499412

Summary: [ceph-ansible] - Duplication of rgw client section in conf file when rgw and nfs are collocated
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Madhavi Kasturi <mkasturi>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0CC: adeza, anharris, aschoen, ceph-eng-bugs, gmeno, hnallurv, kdreyer, nthomas, sankarshan
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.6-1.el7cp Ubuntu: ceph-ansible_3.0.6-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:47:21 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 conf file, playbook log, terminal log snippet demonstrating warnings, inventory file none

Description Vasishta 2017-10-07 08:50:53 UTC
Created attachment 1335652 [details]
File contains conf file, playbook log, terminal log snippet demonstrating warnings, inventory file

Description of problem:
RGW client section in conf file is duplicated when rgw and nfs are collocated leading to 'redefined' warnings on each run of radosgw-admin commands decreasing usability.

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

How reproducible:
Always

Steps to Reproduce:
1. Config ceph-ansible to get a cluster up and collocate rgw and nfs clients.
2. Run playbook.

Actual results:
(conf file snippet)
    22	[client.rgw.magna011]
    23	host = magna011
    24	keyring = /var/lib/ceph/radosgw/beta_2017-rgw.magna011/keyring
    25	log file = /var/log/ceph/beta_2017-rgw-magna011.log
    26	rgw frontends = civetweb port=10.8.128.11:8080 num_threads=100
    27	[client.rgw.magna011]
    28	host = magna011
    29	keyring = /var/lib/ceph/radosgw/beta_2017-rgw.magna011/keyring
    30	log file = /var/log/ceph/beta_2017-rgw-magna011.log
    31	rgw data = /var/lib/ceph/radosgw/beta_2017-rgw.magna011
    32	rgw frontends = civetweb port=10.8.128.11:8080 num_threads=100


Expected results:
Conf file must not be having duplicate values

Additional info:
'redefined' warnings -
warning: line 28: 'host' in section 'client.rgw.magna011' redefined 
warning: line 29: 'keyring' in section 'client.rgw.magna011' redefined 
warning: line 30: 'log_file' in section 'client.rgw.magna011' redefined 
warning: line 32: 'rgw_frontends' in section 'client.rgw.magna011' redefined

Comment 2 Sébastien Han 2017-10-08 17:14:59 UTC
will be in rc19

Comment 6 Sébastien Han 2017-10-11 20:28:56 UTC
This is actually fixed in https://github.com/ceph/ceph-ansible/releases/tag/v3.0.2
Sorry for the inconvenience.

Comment 12 Madhavi Kasturi 2017-10-25 12:37:07 UTC
Changing the state to assigned.

Comment 13 Sébastien Han 2017-10-25 13:51:24 UTC
Do you mind testing this https://github.com/ceph/ceph-ansible/pull/2104? Thanks

Comment 14 Madhavi Kasturi 2017-10-25 14:29:17 UTC
I am currently occupied verifying another bug. Would verify this once its moves to ON_QA.

Comment 15 Sébastien Han 2017-10-25 15:38:10 UTC
In https://github.com/ceph/ceph-ansible/releases/tag/v3.0.5

Ken, could you please build a new package? Thanks.

Comment 22 errata-xmlrpc 2017-12-05 23:47:21 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