]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph: wait for maps before doing 'ceph tell ... help'
authorSage Weil <sage@redhat.com>
Wed, 2 Aug 2017 13:33:55 +0000 (09:33 -0400)
committerSage Weil <sage@redhat.com>
Wed, 2 Aug 2017 13:34:00 +0000 (09:34 -0400)
commit9bd7b70aa369ff0e8f448ee2f1cfee46ae94a1ae
tree19b370c2f355f546af1e0258e9bb3aee29344c7c
parent31cd44fd8c176b92351613363201779515f1e19d
ceph: wait for maps before doing 'ceph tell ... help'

If we don't have a mgrmap yet (usually we do, but it's racy) MgrClient
will assume EACCES if we try to send a command.  This can lead to
EACCES from 'ceph tell mgr help'.

The mon sends maps in alphanumeric order, so waiting for osdmap will
include mgrmap and fsmap.  That's everything (current) except servicemap,
but we can't 'tell' those anyway.

Fixes: http://tracker.ceph.com/issues/20113
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph.in