]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Better ERANGE error message 20023/head
authorBrad Hubbard <bhubbard@redhat.com>
Fri, 19 Jan 2018 07:04:57 +0000 (17:04 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Sat, 20 Jan 2018 23:27:02 +0000 (09:27 +1000)
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>
src/rgw/rgw_rados.cc

index 16346d77b39dc9ca0fe1dd7445327dea92a169e2..3a78941cb1a1ead7458fe3ac62e07b7e9c46632e 100644 (file)
@@ -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)