Backport #18466
Updated by Nathan Cutler about 7 years ago
https://github.com/ceph/ceph/pull/12405
Please backport https://github.com/ceph/ceph/commit/266f4d4f to jewel.
Please backport https://github.com/ceph/ceph/commit/266f4d4f to jewel.