]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Better ERANGE error message 20896/head
authorBrad Hubbard <bhubbard@redhat.com>
Fri, 19 Jan 2018 07:04:57 +0000 (17:04 +1000)
committerNathan Cutler <ncutler@suse.com>
Wed, 14 Mar 2018 10:57:14 +0000 (11:57 +0100)
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 e35c50c198cc54059d92138bc665ee2f99495e83)

src/rgw/rgw_rados.cc

index 78ea99ed7a9b556f2c56c1381dbf69a117b41928..104751953881a00643c037d01f8fb94c3092fa23 100644 (file)
@@ -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)