From: Matt Benjamin Date: Wed, 19 Apr 2017 14:02:58 +0000 (-0400) Subject: rgw: error more verbosely in RGWRados::create_pool X-Git-Tag: v12.0.2~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14642%2Fhead;p=ceph.git rgw: error more verbosely in RGWRados::create_pool Adds detail when pool creation fails with ERANGE, which can be caused by pool settings. Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index caa84d1449de..b2d910e43a75 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5307,6 +5307,13 @@ int RGWRados::create_pool(const rgw_pool& pool) ret = rad->pool_create(pool.name.c_str(), 0); if (ret == -EEXIST) ret = 0; + else if (ret == -ERANGE) { + 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)" + << dendl; + } if (ret < 0) return ret;