Fixed #10269 http://tracker.ceph.com/issues/10269

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
Merge pull request #262 from ceph/wip-10233

Fixed #10269 http://tracker.ceph.com/issues/10269

Reviewed-by: Loic Dachary <ldachary@redhat.com>