Skip to content

Commit

Permalink
rgw: Better ERANGE error message
Browse files Browse the repository at this point in the history
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 <bhubbard@redhat.com>
(cherry picked from commit e35c50c)
  • Loading branch information
badone authored and smithfarm committed Mar 14, 2018
1 parent da97be9 commit ef21a9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rgw/rgw_rados.cc
Expand Up @@ -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)
Expand Down

0 comments on commit ef21a9a

Please sign in to comment.