]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-create-keys: gracefully handle no data from admin socket
authorSage Weil <sage@inktank.com>
Wed, 8 May 2013 21:54:33 +0000 (14:54 -0700)
committerSage Weil <sage@inktank.com>
Wed, 8 May 2013 21:54:33 +0000 (14:54 -0700)
commite2528ae42c455c522154c9f68b5032a3362fca8e
treea05b1f46a0a3408c09451f5c3ecf3cd4b190658e
parentf2a54cc9c98a9f31aef049c74ea932b2d9000d3c
ceph-create-keys: gracefully handle no data from admin socket

Old ceph-mon (prior to 393c9372f82ef37fc6497dd46fc453507a463d42) would
return an empty string and success if the command was not registered yet.
Gracefully handle that case by retrying.

If we still fail to parse, exit entirely with EINVAL.

Fixes: #4952
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@intank.com>
src/ceph-create-keys