Backport #23989
Updated by Nathan Cutler about 5 years ago
https://github.com/ceph/ceph/pull/22782
follow-on fix: https://github.com/ceph/ceph/pull/26048 went into 12.2.11
follow-on fix: https://github.com/ceph/ceph/pull/26048 went into 12.2.11