Bug 1630447

Summary: Deploying a cluster with multiple rgw instances breaks the ceph.conf
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Guillaume Abrioux <gabrioux>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.1CC: aschoen, ceph-eng-bugs, gmeno, nthomas, sankarshan, tchandra, tserlin
Target Milestone: rc   
Target Release: 3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.1.5-1.el7cp Ubuntu: ceph-ansible_3.1.5-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-26 18:24:01 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 Guillaume Abrioux 2018-09-18 16:44:22 UTC
Description of problem:


Deploying a cluster with multiple rgw instances breaks the ceph.conf
It makes the rgw daemon unable to start because of wrong sections in ceph.conf


Version-Release number of selected component (if applicable):
ceph-ansible v3.1.4

How reproducible:
100%

Steps to Reproduce:
1. Deploy a cluster with multiple radosgw 

Actual results:
ceph.conf is broken like following:

[root@ceph-mon0 ~]# cat /etc/ceph/test.conf
[client.rgw.ceph-mon0]
host = ceph-mon0
keyring = /var/lib/ceph/radosgw/test-rgw.ceph-mon0/keyring
log file = /var/log/ceph/test-rgw-ceph-mon0.log
log file = /var/log/ceph/test-rgw-ceph-osd0.log
rgw frontends = civetweb port=192.168.1.10:8080 num_threads=100
rgw frontends = civetweb port=192.168.1.100:8080 num_threads=100


Expected results:
ceph.conf has correct client.rgw sections :

[client.rgw.ceph-mon0]
host = ceph-mon0
keyring = /var/lib/ceph/radosgw/test-rgw.ceph-mon0/keyring
log file = /var/log/ceph/test-rgw-ceph-mon0.log
rgw frontends = civetweb port=192.168.1.10:8080 num_threads=100

[client.rgw.ceph-osd0]
host = ceph-osd0
keyring = /var/lib/ceph/radosgw/test-rgw.ceph-osd0/keyring
log file = /var/log/ceph/test-rgw-ceph-osd0.log
rgw frontends = civetweb port=192.168.1.100:8080 num_threads=100

Comment 9 errata-xmlrpc 2018-09-26 18:24:01 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-2018:2819