[LU-13808] sanity-sec test_18: return 1 with syntax error in do_fops_quota_test() Created: 20/Jul/20  Updated: 14/Apr/21

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Maloo Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This issue was created by maloo for Olaf Faaland <faaland1@llnl.gov>

This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/0de88af7-b75e-4da0-9398-56fbba5abd95

test_18 failed with the following error:

test_18 returned 1

A syntax error occurs in do_fops_quota_test(), resulting in the quota not being checked.

CMD: trevis-17vm4 /usr/sbin/lctl set_param -n os[cd]*.*MD*.force_sync 1
CMD: trevis-17vm4 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-17vm4 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-17vm4 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-17vm4 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-17vm4 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-17vm4 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-17vm4 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
sleep 5 for ZFS zfs
sleep 5 for ZFS zfs
CMD: trevis-17vm1.trevis.whamcloud.com runas -u0 -g0 -G0 lfs quota -q /mnt/lustre
running as uid/gid/euid/egid 0/0/0/0, groups: 0
 [lfs] [quota] [-q] [/mnt/lustre]
/usr/lib64/lustre/tests/sanity-sec.sh: line 1283: [0]: syntax error: operand expected (error token is "[0]")
CMD: trevis-17vm4 /usr/sbin/lctl nodemap_del c0
CMD: trevis-17vm4 /usr/sbin/lctl nodemap_del c1
CMD: trevis-17vm4 /usr/sbin/lctl nodemap_modify --name default --property admin --value 0
CMD: trevis-17vm4 /usr/sbin/lctl get_param -n nodemap.active
CMD: trevis-17vm4 /usr/sbin/lctl list_nids | grep tcp | cut -f 1 -d @
CMD: trevis-17vm4 /usr/sbin/lctl get_param nodemap.default.admin_nodemap
On MGS 10.9.4.201, default.admin_nodemap = nodemap.default.admin_nodemap=0

The error appears to be caused by improperly parsed output from lfs quota.

The code leading up to the syntax error is:

1279         $run_u rm $testfile || error "unable to remove quota test file"
1280         wait_delete_completed_mds
1281 
1282         qused_new=$(nodemap_check_quota "$run_u")
1283         [ $((qused_new)) -lt $((qused_low)) \
1284                 -o $((qused_new)) -gt $((qused_high)) ] &&
1285                 error "quota not reclaimed, expect $qused_orig, " \
1286                       "got $qused_new, fuzz $quota_fuzz"
1287 }

VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
sanity-sec test_18 - test_18 returned 1


Generated at Sat Feb 10 03:04:23 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.