Bug 1190451

Summary: A duplicate line in the ceph.conf file causes the ceph daemon command to fail
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Jean-Charles Lopez <jelopez>
Component: RADOSAssignee: ceph-eng-bugs <ceph-eng-bugs>
Status: CLOSED NOTABUG QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.2.2CC: ceph-eng-bugs, dzafman, jelopez, kchai, kdreyer, nlevine, sweil
Target Milestone: pre-dev-freeze   
Target Release: 1.2.4   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 20:31:42 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
Example on one of my test VMs during last training taught where I experienced the problem none

Description Jean-Charles Lopez 2015-02-08 01:27:30 UTC
Created attachment 989306 [details]
Example on one of my test VMs during last training taught where I experienced the problem

Description of problem:
If using the ceph daemon command while a duplicate line is present in the ceph.conf file, the command fails with the following error message.
Can't get admin socket path: unable to get conf option admin_socket for {mon.id}: warning: line 13: '{duplicate_parameter_name}' in section '{section_name}' redefined


Version-Release number of selected component (if applicable):
Tested and confirmed with 0.80.4, 0.80.6, 0.80.8 so withing ICE 1.2 and above

How reproducible:
Easy any time

Steps to Reproduce:
1.Insert a duplicate line in the local ceph.conf file on the server where the ceph daemon command is run. See example below
[global]
fsid = 5ecc8f5f-ffba-4e7a-abae-23649a038d67
mon_initial_members = usrgw
mon_host = 192.168.122.114
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
filestore_xattr_use_omap = true
osd_journal_size = 1024
osd_pool_default_size = 2
osd_pool_default_min_size = 1
osd_crush_chooseleaf_type = 0
osd_crush_chooseleaf_type = 0

2. Run any ceph daemon command such as: ceph daemon {daemon.id} config show
3. Observe the output on stdout

Actual results:
Can't get admin socket path: unable to get conf option admin_socket for mon.usrgw: warning: line 13: 'osd_crush_chooseleaf_type' in section 'global' redefined 

Expected results:
Should display what you asked for to the daemon

Additional info:

Comment 1 Sage Weil 2015-06-16 20:31:42 UTC
That's just  warning.. it's not causing any failures.