Skip to content

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

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

nautilus: ceph.in: check ceph-conf returncode#31367
yuriw merged 1 commit intoceph:nautilusfrom
jan--f:wip-42400-nautilus

Conversation

@jan--f
Copy link
Contributor

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

backport tracker: https://tracker.ceph.com/issues/42400


backport of #30695
parent tracker: https://tracker.ceph.com/issues/37664

this backport was staged using ceph-backport.sh version 15.0.0.6612
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh

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 <dsavinea@redhat.com>
(cherry picked from commit e69aea6)
@yuriw
Copy link
Contributor

yuriw commented Dec 17, 2019

@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