Skip to content

ceph.in: check ceph-conf returncode - #30695

Merged
tchaikov merged 1 commit into
ceph:masterfrom
dsavineau:ceph_cli_cephconf_rc
Oct 20, 2019
Merged

tchaikov merged 1 commit into
ceph:masterfrom
dsavineau:ceph_cli_cephconf_rc

Conversation

@dsavineau

@dsavineau dsavineau commented Oct 2, 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]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs

Comment thread src/ceph.in Resolved
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]>
@dsavineau
dsavineau force-pushed the ceph_cli_cephconf_rc branch from 31d46e4 to e69aea6 Compare October 7, 2019 13:12
@dsavineau
dsavineau requested a review from tchaikov October 17, 2019 20:17
@tchaikov
tchaikov merged commit f8c4766 into ceph:master Oct 20, 2019
@dsavineau
dsavineau deleted the ceph_cli_cephconf_rc branch October 20, 2019 18:17
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.

3 participants