Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several issues with quota settings in saltstack #491

Open
subzero79 opened this issue Nov 5, 2019 · 2 comments

Comments

@subzero79
Copy link
Contributor

@subzero79 subzero79 commented Nov 5, 2019

Description of issue/question

Apparently there a lot of wrongly rendered templates commands in salt when setting quotas.

Steps to reproduce issue

Go an pick only one filesystem out of many and set quotas for that one in particular save and apply

image

The full log from cli

root@elqui:~# omv-salt deploy run quota
/usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  *salt.utils.args.get_function_argspec(original_function)
/usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  *salt.utils.args.get_function_argspec(original_function)
/usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  *salt.utils.args.get_function_argspec(original_function)
elqui.lan:
----------
          ID: quota_off_2dead406-cd07-4be2-9db7-2407de0faab6
    Function: cmd.run
        Name: quotaoff --group --user
      Result: False
     Comment: Command "quotaoff --group --user" run
     Started: 11:38:11.596140
    Duration: 5.585 ms
     Changes:   
              ----------
              pid:
                  24728
              retcode:
                  1
              stderr:
                  Bad number of arguments.
                  quotaoff: Usage:
                  	quotaoff [-guPvp] [-F quotaformat] [-x state] -a
                  	quotaoff [-guPvp] [-F quotaformat] [-x state] filesys ...
                  
                  -a, --all                turn quotas off for all filesystems
                  -f, --off                turn quotas off
                  -u, --user               operate on user quotas
                  -g, --group              operate on group quotas
                  -P, --project            operate on project quotas
                  -p, --print-state        print whether quotas are on or off
                  -x, --xfs-command=cmd    perform XFS quota command
                  -F, --format=formatname  operate on specific quota format
                  -v, --verbose            print more messages
                  -h, --help               display this help text and exit
                  -V, --version            display version information and exit
              stdout:
----------
          ID: quota_check_2dead406-cd07-4be2-9db7-2407de0faab6
    Function: cmd.run
        Name: quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose
      Result: False
     Comment: Command "quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose" run
     Started: 11:38:11.601993
    Duration: 5.908 ms
     Changes:   
              ----------
              pid:
                  24729
              retcode:
                  1
              stderr:
                  Bad number of arguments.
              stdout:
                  Utility for checking and repairing quota files.
                  quotacheck [-gucbfinvdmMR] [-F <quota-format>] filesystem|-a
                  
                  -u, --user                check user files
                  -g, --group               check group files
                  -c, --create-files        create new quota files
                  -b, --backup              create backups of old quota files
                  -f, --force               force check even if quotas are enabled
                  -i, --interactive         interactive mode
                  -n, --use-first-dquot     use the first copy of duplicated structure
                  -v, --verbose             print more information
                  -d, --debug               print even more messages
                  -m, --no-remount          do not remount filesystem read-only
                  -M, --try-remount         try remounting filesystem read-only,
                                            continue even if it fails
                  -R, --exclude-root        exclude root when checking all filesystems
                  -F, --format=formatname   check quota files of specific format
                  -a, --all                 check all filesystems
                  -h, --help                display this message and exit
                  -V, --version             display version information and exit
                  
                  Bugs to jack@suse.cz
----------
          ID: quota_on_2dead406-cd07-4be2-9db7-2407de0faab6
    Function: cmd.run
        Name: quotaon --group --user
      Result: False
     Comment: Command "quotaon --group --user" run
     Started: 11:38:11.608158
    Duration: 5.576 ms
     Changes:   
              ----------
              pid:
                  24730
              retcode:
                  1
              stderr:
                  Bad number of arguments.
                  quotaon: Usage:
                  	quotaon [-guPvp] [-F quotaformat] [-x state] -a
                  	quotaon [-guPvp] [-F quotaformat] [-x state] filesys ...
                  
                  -a, --all                turn quotas on for all filesystems
                  -f, --off                turn quotas off
                  -u, --user               operate on user quotas
                  -g, --group              operate on group quotas
                  -P, --project            operate on project quotas
                  -p, --print-state        print whether quotas are on or off
                  -x, --xfs-command=cmd    perform XFS quota command
                  -F, --format=formatname  operate on specific quota format
                  -v, --verbose            print more messages
                  -h, --help               display this help text and exit
                  -V, --version            display version information and exit
              stdout:
----------
          ID: quota_ser_user_2dead406-cd07-4be2-9db7-2407de0faab6_sonarr
    Function: cmd.run
        Name: setquota --user sonarr 0 471859200 0 0
      Result: False
     Comment: Command "setquota --user sonarr 0 471859200 0 0" run
     Started: 11:38:11.613998
    Duration: 6.138 ms
     Changes:   
              ----------
              pid:
                  24731
              retcode:
                  1
              stderr:
                  setquota: Mountpoint not specified.
                  setquota: Usage:
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <user|group|project>
                  	<block-softlimit> <block-hardlimit> <inode-softlimit> <inode-hardlimit> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <-p protouser|protogroup|protoproject> <user|group|project> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] -b [-c] -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] -t <blockgrace> <inodegrace> -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] <user|group|project> -T <blockgrace> <inodegrace> -a|<filesystem>...
                  
                  -u, --user                 set limits for user
                  -g, --group                set limits for group
                  -P, --project              set limits for project
                  -a, --all                  set limits for all filesystems
                      --always-resolve       always try to resolve name, even if is
                                             composed only of digits
                  -F, --format=formatname    operate on specific quota format
                  -p, --prototype=protoname  copy limits from user/group/project
                  -b, --batch                read limits from standard input
                  -c, --continue-batch       continue in input processing in case of an error
                  -r, --remote               set remote quota (via RPC)
                  -m, --no-mixed-pathnames      trim leading slashes from NFSv4 mountpoints
                  -t, --edit-period          edit grace period
                  -T, --edit-times           edit grace times for user/group/project
                  -h, --help                 display this help text and exit
                  -V, --version              display version information and exit
                  
                  Bugs to: jack@suse.cz
              stdout:
----------
          ID: quota_ser_user_2dead406-cd07-4be2-9db7-2407de0faab6_radarr
    Function: cmd.run
        Name: setquota --user radarr 0 5242880 0 0
      Result: False
     Comment: Command "setquota --user radarr 0 5242880 0 0" run
     Started: 11:38:11.620398
    Duration: 6.411 ms
     Changes:   
              ----------
              pid:
                  24732
              retcode:
                  1
              stderr:
                  setquota: Mountpoint not specified.
                  setquota: Usage:
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <user|group|project>
                  	<block-softlimit> <block-hardlimit> <inode-softlimit> <inode-hardlimit> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <-p protouser|protogroup|protoproject> <user|group|project> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] -b [-c] -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] -t <blockgrace> <inodegrace> -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] <user|group|project> -T <blockgrace> <inodegrace> -a|<filesystem>...
                  
                  -u, --user                 set limits for user
                  -g, --group                set limits for group
                  -P, --project              set limits for project
                  -a, --all                  set limits for all filesystems
                      --always-resolve       always try to resolve name, even if is
                                             composed only of digits
                  -F, --format=formatname    operate on specific quota format
                  -p, --prototype=protoname  copy limits from user/group/project
                  -b, --batch                read limits from standard input
                  -c, --continue-batch       continue in input processing in case of an error
                  -r, --remote               set remote quota (via RPC)
                  -m, --no-mixed-pathnames      trim leading slashes from NFSv4 mountpoints
                  -t, --edit-period          edit grace period
                  -T, --edit-times           edit grace times for user/group/project
                  -h, --help                 display this help text and exit
                  -V, --version              display version information and exit
                  
                  Bugs to: jack@suse.cz
              stdout:
----------
          ID: quota_ser_group_2dead406-cd07-4be2-9db7-2407de0faab6_media
    Function: cmd.run
        Name: setquota --group media 0 471859200 0 0
      Result: False
     Comment: Command "setquota --group media 0 471859200 0 0" run
     Started: 11:38:11.627138
    Duration: 6.643 ms
     Changes:   
              ----------
              pid:
                  24733
              retcode:
                  1
              stderr:
                  setquota: Mountpoint not specified.
                  setquota: Usage:
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <user|group|project>
                  	<block-softlimit> <block-hardlimit> <inode-softlimit> <inode-hardlimit> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <-p protouser|protogroup|protoproject> <user|group|project> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] -b [-c] -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] -t <blockgrace> <inodegrace> -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] <user|group|project> -T <blockgrace> <inodegrace> -a|<filesystem>...
                  
                  -u, --user                 set limits for user
                  -g, --group                set limits for group
                  -P, --project              set limits for project
                  -a, --all                  set limits for all filesystems
                      --always-resolve       always try to resolve name, even if is
                                             composed only of digits
                  -F, --format=formatname    operate on specific quota format
                  -p, --prototype=protoname  copy limits from user/group/project
                  -b, --batch                read limits from standard input
                  -c, --continue-batch       continue in input processing in case of an error
                  -r, --remote               set remote quota (via RPC)
                  -m, --no-mixed-pathnames      trim leading slashes from NFSv4 mountpoints
                  -t, --edit-period          edit grace period
                  -T, --edit-times           edit grace times for user/group/project
                  -h, --help                 display this help text and exit
                  -V, --version              display version information and exit
                  
                  Bugs to: jack@suse.cz
              stdout:
----------
          ID: quota_off_d52f5f49-7f08-466d-bb39-4a6553158667
    Function: cmd.run
        Name: quotaoff --group --user
      Result: False
     Comment: Command "quotaoff --group --user" run
     Started: 11:38:11.634048
    Duration: 9.24 ms
     Changes:   
              ----------
              pid:
                  24734
              retcode:
                  1
              stderr:
                  Bad number of arguments.
                  quotaoff: Usage:
                  	quotaoff [-guPvp] [-F quotaformat] [-x state] -a
                  	quotaoff [-guPvp] [-F quotaformat] [-x state] filesys ...
                  
                  -a, --all                turn quotas off for all filesystems
                  -f, --off                turn quotas off
                  -u, --user               operate on user quotas
                  -g, --group              operate on group quotas
                  -P, --project            operate on project quotas
                  -p, --print-state        print whether quotas are on or off
                  -x, --xfs-command=cmd    perform XFS quota command
                  -F, --format=formatname  operate on specific quota format
                  -v, --verbose            print more messages
                  -h, --help               display this help text and exit
                  -V, --version            display version information and exit
              stdout:
----------
          ID: quota_check_d52f5f49-7f08-466d-bb39-4a6553158667
    Function: cmd.run
        Name: quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose
      Result: False
     Comment: Command "quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose" run
     Started: 11:38:11.643655
    Duration: 6.364 ms
     Changes:   
              ----------
              pid:
                  24735
              retcode:
                  1
              stderr:
                  Bad number of arguments.
              stdout:
                  Utility for checking and repairing quota files.
                  quotacheck [-gucbfinvdmMR] [-F <quota-format>] filesystem|-a
                  
                  -u, --user                check user files
                  -g, --group               check group files
                  -c, --create-files        create new quota files
                  -b, --backup              create backups of old quota files
                  -f, --force               force check even if quotas are enabled
                  -i, --interactive         interactive mode
                  -n, --use-first-dquot     use the first copy of duplicated structure
                  -v, --verbose             print more information
                  -d, --debug               print even more messages
                  -m, --no-remount          do not remount filesystem read-only
                  -M, --try-remount         try remounting filesystem read-only,
                                            continue even if it fails
                  -R, --exclude-root        exclude root when checking all filesystems
                  -F, --format=formatname   check quota files of specific format
                  -a, --all                 check all filesystems
                  -h, --help                display this message and exit
                  -V, --version             display version information and exit
                  
                  Bugs to jack@suse.cz
----------
          ID: quota_on_d52f5f49-7f08-466d-bb39-4a6553158667
    Function: cmd.run
        Name: quotaon --group --user
      Result: False
     Comment: Command "quotaon --group --user" run
     Started: 11:38:11.650277
    Duration: 6.362 ms
     Changes:   
              ----------
              pid:
                  24736
              retcode:
                  1
              stderr:
                  Bad number of arguments.
                  quotaon: Usage:
                  	quotaon [-guPvp] [-F quotaformat] [-x state] -a
                  	quotaon [-guPvp] [-F quotaformat] [-x state] filesys ...
                  
                  -a, --all                turn quotas on for all filesystems
                  -f, --off                turn quotas off
                  -u, --user               operate on user quotas
                  -g, --group              operate on group quotas
                  -P, --project            operate on project quotas
                  -p, --print-state        print whether quotas are on or off
                  -x, --xfs-command=cmd    perform XFS quota command
                  -F, --format=formatname  operate on specific quota format
                  -v, --verbose            print more messages
                  -h, --help               display this help text and exit
                  -V, --version            display version information and exit
              stdout:
----------
          ID: quota_ser_user_d52f5f49-7f08-466d-bb39-4a6553158667_ricardo
    Function: cmd.run
        Name: setquota --user ricardo 0 28311552 0 0
      Result: False
     Comment: Command "setquota --user ricardo 0 28311552 0 0" run
     Started: 11:38:11.656897
    Duration: 6.264 ms
     Changes:   
              ----------
              pid:
                  24737
              retcode:
                  1
              stderr:
                  setquota: Mountpoint not specified.
                  setquota: Usage:
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <user|group|project>
                  	<block-softlimit> <block-hardlimit> <inode-softlimit> <inode-hardlimit> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <-p protouser|protogroup|protoproject> <user|group|project> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] -b [-c] -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] -t <blockgrace> <inodegrace> -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] <user|group|project> -T <blockgrace> <inodegrace> -a|<filesystem>...
                  
                  -u, --user                 set limits for user
                  -g, --group                set limits for group
                  -P, --project              set limits for project
                  -a, --all                  set limits for all filesystems
                      --always-resolve       always try to resolve name, even if is
                                             composed only of digits
                  -F, --format=formatname    operate on specific quota format
                  -p, --prototype=protoname  copy limits from user/group/project
                  -b, --batch                read limits from standard input
                  -c, --continue-batch       continue in input processing in case of an error
                  -r, --remote               set remote quota (via RPC)
                  -m, --no-mixed-pathnames      trim leading slashes from NFSv4 mountpoints
                  -t, --edit-period          edit grace period
                  -T, --edit-times           edit grace times for user/group/project
                  -h, --help                 display this help text and exit
                  -V, --version              display version information and exit
                  
                  Bugs to: jack@suse.cz
              stdout:
----------
          ID: quota_off_4d1859b9-6938-4149-a38d-8dfdc6900642
    Function: cmd.run
        Name: quotaoff --group --user
      Result: False
     Comment: Command "quotaoff --group --user" run
     Started: 11:38:11.663442
    Duration: 5.838 ms
     Changes:   
              ----------
              pid:
                  24738
              retcode:
                  1
              stderr:
                  Bad number of arguments.
                  quotaoff: Usage:
                  	quotaoff [-guPvp] [-F quotaformat] [-x state] -a
                  	quotaoff [-guPvp] [-F quotaformat] [-x state] filesys ...
                  
                  -a, --all                turn quotas off for all filesystems
                  -f, --off                turn quotas off
                  -u, --user               operate on user quotas
                  -g, --group              operate on group quotas
                  -P, --project            operate on project quotas
                  -p, --print-state        print whether quotas are on or off
                  -x, --xfs-command=cmd    perform XFS quota command
                  -F, --format=formatname  operate on specific quota format
                  -v, --verbose            print more messages
                  -h, --help               display this help text and exit
                  -V, --version            display version information and exit
              stdout:
----------
          ID: quota_check_4d1859b9-6938-4149-a38d-8dfdc6900642
    Function: cmd.run
        Name: quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose
      Result: False
     Comment: Command "quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose" run
     Started: 11:38:11.669616
    Duration: 5.847 ms
     Changes:   
              ----------
              pid:
                  24739
              retcode:
                  1
              stderr:
                  Bad number of arguments.
              stdout:
                  Utility for checking and repairing quota files.
                  quotacheck [-gucbfinvdmMR] [-F <quota-format>] filesystem|-a
                  
                  -u, --user                check user files
                  -g, --group               check group files
                  -c, --create-files        create new quota files
                  -b, --backup              create backups of old quota files
                  -f, --force               force check even if quotas are enabled
                  -i, --interactive         interactive mode
                  -n, --use-first-dquot     use the first copy of duplicated structure
                  -v, --verbose             print more information
                  -d, --debug               print even more messages
                  -m, --no-remount          do not remount filesystem read-only
                  -M, --try-remount         try remounting filesystem read-only,
                                            continue even if it fails
                  -R, --exclude-root        exclude root when checking all filesystems
                  -F, --format=formatname   check quota files of specific format
                  -a, --all                 check all filesystems
                  -h, --help                display this message and exit
                  -V, --version             display version information and exit
                  
                  Bugs to jack@suse.cz
----------
          ID: quota_on_4d1859b9-6938-4149-a38d-8dfdc6900642
    Function: cmd.run
        Name: quotaon --group --user
      Result: False
     Comment: Command "quotaon --group --user" run
     Started: 11:38:11.675738
    Duration: 5.532 ms
     Changes:   
              ----------
              pid:
                  24740
              retcode:
                  1
              stderr:
                  Bad number of arguments.
                  quotaon: Usage:
                  	quotaon [-guPvp] [-F quotaformat] [-x state] -a
                  	quotaon [-guPvp] [-F quotaformat] [-x state] filesys ...
                  
                  -a, --all                turn quotas on for all filesystems
                  -f, --off                turn quotas off
                  -u, --user               operate on user quotas
                  -g, --group              operate on group quotas
                  -P, --project            operate on project quotas
                  -p, --print-state        print whether quotas are on or off
                  -x, --xfs-command=cmd    perform XFS quota command
                  -F, --format=formatname  operate on specific quota format
                  -v, --verbose            print more messages
                  -h, --help               display this help text and exit
                  -V, --version            display version information and exit
              stdout:
----------
          ID: quota_ser_user_4d1859b9-6938-4149-a38d-8dfdc6900642_ricardo
    Function: cmd.run
        Name: setquota --user ricardo 0 230686720 0 0
      Result: False
     Comment: Command "setquota --user ricardo 0 230686720 0 0" run
     Started: 11:38:11.681533
    Duration: 5.743 ms
     Changes:   
              ----------
              pid:
                  24741
              retcode:
                  1
              stderr:
                  setquota: Mountpoint not specified.
                  setquota: Usage:
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <user|group|project>
                  	<block-softlimit> <block-hardlimit> <inode-softlimit> <inode-hardlimit> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <-p protouser|protogroup|protoproject> <user|group|project> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] -b [-c] -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] -t <blockgrace> <inodegrace> -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] <user|group|project> -T <blockgrace> <inodegrace> -a|<filesystem>...
                  
                  -u, --user                 set limits for user
                  -g, --group                set limits for group
                  -P, --project              set limits for project
                  -a, --all                  set limits for all filesystems
                      --always-resolve       always try to resolve name, even if is
                                             composed only of digits
                  -F, --format=formatname    operate on specific quota format
                  -p, --prototype=protoname  copy limits from user/group/project
                  -b, --batch                read limits from standard input
                  -c, --continue-batch       continue in input processing in case of an error
                  -r, --remote               set remote quota (via RPC)
                  -m, --no-mixed-pathnames      trim leading slashes from NFSv4 mountpoints
                  -t, --edit-period          edit grace period
                  -T, --edit-times           edit grace times for user/group/project
                  -h, --help                 display this help text and exit
                  -V, --version              display version information and exit
                  
                  Bugs to: jack@suse.cz
              stdout:
----------
          ID: quota_off_678f9f51-2c27-49fc-8ede-1f30dcd2a2be
    Function: cmd.run
        Name: quotaoff --group --user
      Result: False
     Comment: Command "quotaoff --group --user" run
     Started: 11:38:11.687550
    Duration: 6.027 ms
     Changes:   
              ----------
              pid:
                  24742
              retcode:
                  1
              stderr:
                  Bad number of arguments.
                  quotaoff: Usage:
                  	quotaoff [-guPvp] [-F quotaformat] [-x state] -a
                  	quotaoff [-guPvp] [-F quotaformat] [-x state] filesys ...
                  
                  -a, --all                turn quotas off for all filesystems
                  -f, --off                turn quotas off
                  -u, --user               operate on user quotas
                  -g, --group              operate on group quotas
                  -P, --project            operate on project quotas
                  -p, --print-state        print whether quotas are on or off
                  -x, --xfs-command=cmd    perform XFS quota command
                  -F, --format=formatname  operate on specific quota format
                  -v, --verbose            print more messages
                  -h, --help               display this help text and exit
                  -V, --version            display version information and exit
              stdout:
----------
          ID: quota_check_678f9f51-2c27-49fc-8ede-1f30dcd2a2be
    Function: cmd.run
        Name: quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose
      Result: False
     Comment: Command "quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose" run
     Started: 11:38:11.693867
    Duration: 6.71 ms
     Changes:   
              ----------
              pid:
                  24743
              retcode:
                  1
              stderr:
                  Bad number of arguments.
              stdout:
                  Utility for checking and repairing quota files.
                  quotacheck [-gucbfinvdmMR] [-F <quota-format>] filesystem|-a
                  
                  -u, --user                check user files
                  -g, --group               check group files
                  -c, --create-files        create new quota files
                  -b, --backup              create backups of old quota files
                  -f, --force               force check even if quotas are enabled
                  -i, --interactive         interactive mode
                  -n, --use-first-dquot     use the first copy of duplicated structure
                  -v, --verbose             print more information
                  -d, --debug               print even more messages
                  -m, --no-remount          do not remount filesystem read-only
                  -M, --try-remount         try remounting filesystem read-only,
                                            continue even if it fails
                  -R, --exclude-root        exclude root when checking all filesystems
                  -F, --format=formatname   check quota files of specific format
                  -a, --all                 check all filesystems
                  -h, --help                display this message and exit
                  -V, --version             display version information and exit
                  
                  Bugs to jack@suse.cz
----------
          ID: quota_on_678f9f51-2c27-49fc-8ede-1f30dcd2a2be
    Function: cmd.run
        Name: quotaon --group --user
      Result: False
     Comment: Command "quotaon --group --user" run
     Started: 11:38:11.700881
    Duration: 6.714 ms
     Changes:   
              ----------
              pid:
                  24744
              retcode:
                  1
              stderr:
                  Bad number of arguments.
                  quotaon: Usage:
                  	quotaon [-guPvp] [-F quotaformat] [-x state] -a
                  	quotaon [-guPvp] [-F quotaformat] [-x state] filesys ...
                  
                  -a, --all                turn quotas on for all filesystems
                  -f, --off                turn quotas off
                  -u, --user               operate on user quotas
                  -g, --group              operate on group quotas
                  -P, --project            operate on project quotas
                  -p, --print-state        print whether quotas are on or off
                  -x, --xfs-command=cmd    perform XFS quota command
                  -F, --format=formatname  operate on specific quota format
                  -v, --verbose            print more messages
                  -h, --help               display this help text and exit
                  -V, --version            display version information and exit
              stdout:
----------
          ID: quota_ser_user_678f9f51-2c27-49fc-8ede-1f30dcd2a2be_ricardo
    Function: cmd.run
        Name: setquota --user ricardo 0 89128960 0 0
      Result: False
     Comment: Command "setquota --user ricardo 0 89128960 0 0" run
     Started: 11:38:11.707902
    Duration: 6.827 ms
     Changes:   
              ----------
              pid:
                  24745
              retcode:
                  1
              stderr:
                  setquota: Mountpoint not specified.
                  setquota: Usage:
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <user|group|project>
                  	<block-softlimit> <block-hardlimit> <inode-softlimit> <inode-hardlimit> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] <-p protouser|protogroup|protoproject> <user|group|project> -a|<filesystem>...
                    setquota [-u|-g|-P] [-rm] [-F quotaformat] -b [-c] -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] -t <blockgrace> <inodegrace> -a|<filesystem>...
                    setquota [-u|-g|-P] [-F quotaformat] <user|group|project> -T <blockgrace> <inodegrace> -a|<filesystem>...
                  
                  -u, --user                 set limits for user
                  -g, --group                set limits for group
                  -P, --project              set limits for project
                  -a, --all                  set limits for all filesystems
                      --always-resolve       always try to resolve name, even if is
                                             composed only of digits
                  -F, --format=formatname    operate on specific quota format
                  -p, --prototype=protoname  copy limits from user/group/project
                  -b, --batch                read limits from standard input
                  -c, --continue-batch       continue in input processing in case of an error
                  -r, --remote               set remote quota (via RPC)
                  -m, --no-mixed-pathnames      trim leading slashes from NFSv4 mountpoints
                  -t, --edit-period          edit grace period
                  -T, --edit-times           edit grace times for user/group/project
                  -h, --help                 display this help text and exit
                  -V, --version              display version information and exit
                  
                  Bugs to: jack@suse.cz
              stdout:
----------
          ID: quota_off_f3fc9576-26f2-4aa8-9dd0-61d8b67ab995
    Function: cmd.run
        Name: quotaoff --group --user /dev/mapper/data_storage--vg-videos
      Result: True
     Comment: Command "quotaoff --group --user /dev/mapper/data_storage--vg-videos" run
     Started: 11:38:11.715044
    Duration: 210.426 ms
     Changes:   
              ----------
              pid:
                  24746
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: quota_check_f3fc9576-26f2-4aa8-9dd0-61d8b67ab995
    Function: cmd.run
        Name: quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose /dev/mapper/data_storage--vg-videos
      Result: True
     Comment: Command "quotacheck --user --group --create-files --try-remount --use-first-dquot --verbose /dev/mapper/data_storage--vg-videos" run
     Started: 11:38:11.925868
    Duration: 2384.926 ms
     Changes:   
              ----------
              pid:
                  24747
              retcode:
                  0
              stderr:
                  quotacheck: Scanning /dev/mapper/data_storage--vg-videos [/srv/dev-disk-by-label-videos] quotacheck: Checked 3327 directories and 41638 files
              stdout:
                  done
----------
          ID: quota_on_f3fc9576-26f2-4aa8-9dd0-61d8b67ab995
    Function: cmd.run
        Name: quotaon --group --user /dev/mapper/data_storage--vg-videos
      Result: True
     Comment: Command "quotaon --group --user /dev/mapper/data_storage--vg-videos" run
     Started: 11:38:14.311066
    Duration: 100.039 ms
     Changes:   
              ----------
              pid:
                  24751
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: quota_ser_user_f3fc9576-26f2-4aa8-9dd0-61d8b67ab995_sonarr
    Function: cmd.run
        Name: setquota --user sonarr 0 629145600 0 0 /dev/mapper/data_storage--vg-videos
      Result: True
     Comment: Command "setquota --user sonarr 0 629145600 0 0 /dev/mapper/data_storage--vg-videos" run
     Started: 11:38:14.411384
    Duration: 6.728 ms
     Changes:   
              ----------
              pid:
                  24752
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: quota_ser_user_f3fc9576-26f2-4aa8-9dd0-61d8b67ab995_radarr
    Function: cmd.run
        Name: setquota --user radarr 0 629145600 0 0 /dev/mapper/data_storage--vg-videos
      Result: True
     Comment: Command "setquota --user radarr 0 629145600 0 0 /dev/mapper/data_storage--vg-videos" run
     Started: 11:38:14.418387
    Duration: 6.89 ms
     Changes:   
              ----------
              pid:
                  24753
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: quota_ser_user_f3fc9576-26f2-4aa8-9dd0-61d8b67ab995_ricardo
    Function: cmd.run
        Name: setquota --user ricardo 0 629145600 0 0 /dev/mapper/data_storage--vg-videos
      Result: True
     Comment: Command "setquota --user ricardo 0 629145600 0 0 /dev/mapper/data_storage--vg-videos" run
     Started: 11:38:14.425611
    Duration: 6.464 ms
     Changes:   
              ----------
              pid:
                  24754
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: quota_ser_user_f3fc9576-26f2-4aa8-9dd0-61d8b67ab995_kodipvr
    Function: cmd.run
        Name: setquota --user kodipvr 0 419430400 0 0 /dev/mapper/data_storage--vg-videos
      Result: True
     Comment: Command "setquota --user kodipvr 0 419430400 0 0 /dev/mapper/data_storage--vg-videos" run
     Started: 11:38:14.432344
    Duration: 6.456 ms
     Changes:   
              ----------
              pid:
                  24755
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: quota_off_ed4e1388-e3dd-42b9-8bf6-37826b14c850
    Function: cmd.run
        Name: quotaoff --group --user /dev/mapper/data_storage--vg-music
      Result: True
     Comment: Command "quotaoff --group --user /dev/mapper/data_storage--vg-music" run
     Started: 11:38:14.439073
    Duration: 82.703 ms
     Changes:   
              ----------
              pid:
                  24756
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: quota_off_f609aeda-2e89-43bd-b648-f7e36d3c2e2a
    Function: cmd.run
        Name: quotaoff --group --user /dev/mapper/data_storage--vg-other
      Result: True
     Comment: Command "quotaoff --group --user /dev/mapper/data_storage--vg-other" run
     Started: 11:38:14.522100
    Duration: 68.265 ms
     Changes:   
              ----------
              pid:
                  24757
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: quota_off_198a34a8-5992-4ffa-8f6d-416665d5f7b4
    Function: cmd.run
        Name: quotaoff --group --user /dev/mapper/data_storage--vg-pictures
      Result: True
     Comment: Command "quotaoff --group --user /dev/mapper/data_storage--vg-pictures" run
     Started: 11:38:14.590713
    Duration: 104.764 ms
     Changes:   
              ----------
              pid:
                  24758
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: enable_quota_service
    Function: service.enabled
        Name: quota
      Result: True
     Comment: Service quota is already enabled, and is in the desired state
     Started: 11:38:15.165026
    Duration: 20.068 ms
     Changes:   

Summary for elqui.lan
-------------
Succeeded: 11 (changed=28)
Failed:    18
-------------
Total states run:     29
Total run time:    3.111 s

Can see several errors from quota commands with wrong arguments

There is also another issue that i haven't been able to fetch the log but if you set up quota for all registered filesystems(4-5 in my case) the whole webUI hangs with chrome suggesting to kill the tab, the progress bar hangs, you have to close to reload the webui and then you are presented again with yellow button to apply

Versions report

5.0.11

@votdev votdev added the 5.x label Nov 5, 2019
@votdev

This comment has been minimized.

Copy link
Collaborator

@votdev votdev commented Nov 5, 2019

I think you are using the wrong quota package. It's currently 4.04 in Buster.

@subzero79

This comment has been minimized.

Copy link
Contributor Author

@subzero79 subzero79 commented Nov 5, 2019

This is the package version the install is from a buster netiso

apt-cache policy quotatool quota
quotatool:
  Installed: 1:1.6.2-5
  Candidate: 1:1.6.2-5
  Version table:
 *** 1:1.6.2-5 500
        500 http://debian.mirror.serversaustralia.com.au/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
quota:
  Installed: 4.04-2+b1
  Candidate: 4.04-2+b1
  Version table:
 *** 4.04-2+b1 500
        500 http://debian.mirror.serversaustralia.com.au/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status

i HAven't been able to reproduce the issue again, i had to revert an then set the quotas one by one, per user and fs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.