From: Brad Hubbard Date: Fri, 19 Jan 2018 07:04:57 +0000 (+1000) Subject: rgw: Better ERANGE error message X-Git-Tag: v13.0.2~267^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e35c50c198cc54059d92138bc665ee2f99495e83;p=ceph.git 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 --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 16346d77b39d..3a78941cb1a1 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5749,7 +5749,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)