Merge pull request #14642 from linuxbox2/wip-rgw-poolcreate-erange

rgw: error more verbosely in RGWRados::create_pool
This commit is contained in:
Matt Benjamin 2017-04-19 11:52:52 -04:00 committed by GitHub
commit 1d73a5764b

View File

@ -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;