Whamcloud - gitweb
LU-15055 lod: run qmt_pool_* only from the MDT0000 config 39/56939/2
authorEtienne AUJAMES <eaujames@ddn.com>
Fri, 8 Nov 2024 18:51:38 +0000 (10:51 -0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 18 Nov 2024 17:41:02 +0000 (17:41 +0000)
commit842a02df7a6b26ab096824d8ecea95474d649240
tree66e8f02c28c0334b05cf666bf3f629f8008e2d0b
parentf1cc568c78a5c7bc52709467d7e0ae7a222eb9b3
LU-15055 lod: run qmt_pool_* only from the MDT0000 config

On the first mds (with MDT0000/QMT0000), if there is more than one MDT
target, qmt_pool_{new/del/rem/add} functions will be call several
times on QMT0000 for the same pool.

This resulting to the following error in dmseg:
LustreError: 5659:0:(qmt_pool.c:1390:qmt_pool_add_rem()) add to: can't
scratch-QMT0000 scratch-OST0000_UUID pool pool1: rc = -17

This patch run qmt_pool_* only from a record config from the MDT0000.
The qmt_pool_add_rem() dmesg error is checked on sanity-quota test_1b.

Lustre-change: https://review.whamcloud.com/47059
Lustre-commit: 0f158c6a093e059d89f637f31d34742078c38209

Test-Parameters: mdtcount=2 mdscount=1 testlist=sanity-quota
Fixes: 09f9fb32 ("LU-11023 quota: quota pools for OSTs")
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: Ia6b712abe25a4d68770753e3408c3321181db1aa
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56939
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_dev.c
lustre/quota/qmt_pool.c
lustre/tests/sanity-quota.sh