From ef21a9ac80721298834115e8bdb6de97e2b83a1c Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Fri, 19 Jan 2018 17:04:57 +1000 Subject: [PATCH] rgw: Better ERANGE error message Add mon_max_pg_per_osd exceeded as possible cause for ERANGE error Partially fixes: http://tracker.ceph.com/issues/22351 Signed-off-by: Brad Hubbard (cherry picked from commit e35c50c198cc54059d92138bc665ee2f99495e83) --- src/rgw/rgw_rados.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 78ea99ed7a9b..104751953881 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5777,7 +5777,8 @@ int RGWRados::create_pool(const rgw_pool& pool) ldout(cct, 0) << __func__ << " ERROR: librados::Rados::pool_create returned " << cpp_strerror(-ret) - << " (this can be due to a pool or placement group misconfiguration, e.g., pg_num < pgp_num)" + << " (this can be due to a pool or placement group misconfiguration, e.g." + << " pg_num < pgp_num or mon_max_pg_per_osd exceeded)" << dendl; } if (ret < 0) -- 2.47.3