Bug 2157037 - glusterfs-6.x has empty quota list printout, path quota limit but no terminal display.
Summary: glusterfs-6.x has empty quota list printout, path quota limit but no terminal...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: quota
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-30 06:35 UTC by huping
Modified: 2023-03-15 08:33 UTC (History)
0 users

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description huping 2022-12-30 06:35:11 UTC
Before you record your issue, ensure you are using the latest version of Gluster.
Glusterfs-6.x

Provide version-Release number of selected component (if applicable):

 
Have you searched the Bugzilla archives for same/similar issues reported.

#bz1418227 is optimized in glusterfs-3.x, but his optimized solution does not solve the problem in glusterfs-6.x.


Description of problem:

After creating the volume in glusterfs-6.x and starting it, then create several subdirectories separately and use “for i in {1..4};do gluster volume quota <volume> limit-usage /path-$i 100GB ;done ” to complete the quota limit. Then delete the last path (path-4), followed by “gluster volume quota <volume>list” . The result is a blank output without any print information.

There is a dirty gfid in quota.conf that has been deleted.

quotad.log:
E [quotad-aggregator.c:53:quotad_serialize_reply] (--> /lib64/libglusterfs.so.0(_gf_log_callingfn+0x13b)[0x7fab4aa93a9b] (--> /usr/lib64/glusterfs//xlator/features/quotad.so(+0x2a20)[0x7fab37b1fa20] (--> /usr/lib64/glusterfs//xlator/features/quotad.so(+0x2b60)[0x7fab37b1fb60] (--> /usr/lib64/glusterfs//xlator/features/quotad.so(+0x2f52)[0x7fab37b1ff52] (--> /usr/lib64/glusterfs//xlator/features/quotad.so(+0x1ffe)[0x7fab37b1effe] ))))) 0-: Failed to encode message

cli.log:
2022-12-30 05:15:27.093155] E [cli-cmd-volume.c:1730:cli_cmd_quota_handle_list_all] 0-cli: Failed to get quota limits for 21f4e213-1ad1-4869-a8a5-d4c3ad1f1a1b
[2022-12-30 05:15:27.093249] I [input.c:31:cli_batch] 0-: Exiting with: 0





Is this issue reproducible? If yes, share more details.:


Steps to Reproduce:
1. mkdir path-1 path-2 path-3 path-4
2. for i in {1..4};do gluster volume quota <volume> limit-usage /path-$i 100GB ;done
3. rm -rf path-4
4. gluster volume quota <volname> list

Actual results:

Output Blank!!!!!
 
Expected results:
                  Path                   Hard-limit  Soft-limit      Used  Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/path-1                                  100.0GB     80%(80.0GB)   0Bytes 100.0GB              No                   No
/path-2                                  100.0GB     80%(80.0GB)   0Bytes 100.0GB              No                   No
/path-3                                  100.0GB     80%(80.0GB)   0Bytes 100.0GB              No                   No


Note You need to log in before you can comment on or make changes to this bug.