tools: add ceph_monstore_tool with getosdmap

Signed-off-by: Samuel Just <sam.just@inktank.com>
PaxosService: use get and put for version_t

Otherwise, we just duplicate the logic for generating the version
key names.

Signed-off-by: Samuel Just <sam.just@inktank.com>
OSDMonitor: when adding bucket, delay response if pending map has name

Fixes: #4836
Signed-off-by: Samuel Just <sam.just@inktank.com>
ceph-filestore-dump: fix warnings on i386 build

tools/ceph-filestore-dump.cc: In member function ‘int header::get_header()’:
warning: tools/ceph-filestore-dump.cc:454:19: comparison between signed and unsigned integer expressions [-Wsign-compare]
tools/ceph-filestore-dump.cc: In member function ‘int footer::get_footer()’:
warning: tools/ceph-filestore-dump.cc:471:19: comparison between signed and unsigned integer expressions [-Wsign-compare]
tools/ceph-filestore-dump.cc: In member function ‘int super_header::read_super()’:
warning: tools/ceph-filestore-dump.cc:697:30: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Sage Weil <sage@inktank.com>
doc: Fix. ceph, not chef.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added ceph-mds to CephFS toc.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Removed text for include directive. Wasn't behaving the way I'd hoped.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Removed installed Chef. This is now in the ceph wiki.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added manpage link and hidden TOC.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added openssh-server mention.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added openssh-server mention, corrections, hyperlink fix.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Removed. Redunant information now.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Added commentary and removed fourth column for now.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added rbd-fuse to TOC.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Removed extra whitespace.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
mon: Fix leak of context

Use Context::complete() to finish context, it frees the context
after executing Context::finish().

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Fix a README typo

Signed-off-by: François Deppierraz <francois@ctrlaltdel.ch>
Merge branch 'wip_4836' into next

Fixes: #4836
Reviewed-by: Sage Weil <sage@inktank.com>
client: fix session open vs mdsmap race with request kicking

A sequence like:

 - ceph-fuse starts, make_request on getattr
 - waits for mds to be active
 - tries to open a session
 - mds restarts, recovers
 - eventually gets session open reply
 - sends first getattr (even tho mds is in reconnect state)
 - gets mdsmap update that mds is now active
 - kicks request, resends getattr
 - get first reply
 - ignore second reply, caps get out of sync

The bug is that we send the first request when the MDS is still in
the reconnect state.  The fix is to loop in make_request so that we
ensure all conditions are satisfied before sending the request.  Any
time we wait, we loop, so that we know all conditions (still) pass if
we make it to the end.

Fixes: #4853
Signed-off-by: Sage Weil <sage@inktank.com>
client: make dup reply a louder error

If we get a dup reply something is probably wrong!  We should make sure
it appears more loudly in the log.  In particular, it can lead to out
of sync cap state; see #4853.

Signed-off-by: Sage Weil <sage@inktank.com>