mirror of
https://github.com/ceph/ceph
synced 2025-01-18 09:02:08 +00:00
Merge pull request #14642 from linuxbox2/wip-rgw-poolcreate-erange
rgw: error more verbosely in RGWRados::create_pool
This commit is contained in:
commit
1d73a5764b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user