Skip to content

nautilus: ceph.in: check ceph-conf returncode - #31367

Merged
yuriw merged 1 commit into
ceph:nautilusfrom
jan--f:wip-42400-nautilus
Dec 18, 2019
Merged

yuriw merged 1 commit into
ceph:nautilusfrom
jan--f:wip-42400-nautilus

Conversation

@jan--f

@jan--f jan--f commented Nov 4, 2019

Copy link
Copy Markdown
Contributor

When running the ceph-conf command, we only check the stderr output. When
the ceph configuration file has duplicate values then the ceph daemon
command will fail because the stderr will contain the warning message but
the ceph-conf return code is 0.

$ ceph-conf --name mon.cephaio-1 --show-config-value admin_socket
warning: line 13: 'osd_memory_target' in section 'osd' redefined
/var/run/ceph/ceph-mon.cephaio-1.asok
$ echo $?
0

Fixes: https://tracker.ceph.com/issues/37664

Signed-off-by: Dimitri Savineau <[email protected]>
(cherry picked from commit e69aea6)
@yuriw

yuriw commented Dec 17, 2019

Copy link
Copy Markdown
Contributor

@yuriw
yuriw merged commit fcf9cdd into ceph:nautilus Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants