]>
git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSDMonitor: check mon_max_pool_pg_num when set pool pg_num
Check the mon_max_pool_pg_num when creating pools, but did not
check in the the modification. So we can create a pool and then
modify pg_num exceeds the mon_max_pool_pg_num limit.
By following these steps can verify this problem
step 1: set mon_max_pool_pg_num = 65536
step 2: ceph osd pool create testpool 65536 65536
step 3: ceph osd pool set testpool pg_num 65537
Signed-off-by: chenhg <c744402859@gmail.com>