-
Notifications
You must be signed in to change notification settings - Fork 138
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
(t) Rockstor 4.5.7 Cannot create share with quotas disabled on pool #2506
Comments
Thanks @Hooverdan96, nice find!
After a quick look at our |
Thanks @FroggyFlox for confirming. I checked, in the 15.4 flavor I tested this, I have the same version as you listed. In my production instance (version 4.1.0-0) with kernel backport that shows the same behavior it's a slightly new version:
For completeness, on my Tumbleweed-installer based installation of Rockstor, the btrfsprogs are a bit newer (obviously):
There it's the same behavior as well (share creation failure when quotas are turned off on underlying pool) |
if quotas are disabled it seems that the option When subsequently re-enabling quotas in the WebUI and checking at the command line with All for @phillxnet to explain the magic ... |
Agreed. From memory I thought the the -1 values were flag values. I.e. if it's -1 bypass quotas. I'll have to have a look again to be sure. From the report and confirmation it looks like we passed this through to the command and it was then nullified as a quotas request. It's been a while since I last looked at that code!
That is normal, 'our' chosen qgroup of 2015 is what we 'tally' our use under. It's the Rockstor quoata group chosen. Other programs may establish their own qgroup and assign as they see fit. But we account use under the 2015 qgroup. In the early days we basically failed across the board if quotas were disabled. But starting around here: improve quotas not enabled behaviour. Fixes #1869 #1874 and followed-up via: where the above help for context of what we attempt to do to accommodate quotas disabled. From the initial report this does sound just like we requried to not pass -i -1/-1 when quotas are disabled, so yes, hopefully we can test for -1/-1 and drop this part of the command. This report, and it's late-comer status, does rather indicate that many or our users may now no longer disable quotas so that's good to know. I think this should be on our current Milestone however so I'll pop it on now. |
Preparing a simple pr for this issue now:
generated by Not sure when this rejection of -1/-1 came into effect but yes, lets just drop the '-i qgourp' option when encountering this flag value as it's intended use was to indicate a quotas disabled so we seem to have a straight line here:
Likely in the past the -1/-1 qgroup designation was simply silently ignored. |
Previously we passed our -1/-1 'quotas disabled' flag value to btrfs subvol create and it was silently ignored. This no longer works: resulting in an error: 'invalid qgroupid ...'. So drop the use of '-i qgroupid' when our flag value is found. Includes updated docstrings for the altered code. Also includes contextual fix re typo in two log entries that advice on quota indeterminate remedial action: "btrfs qgroup disable" corrected to "btrfs quota disable"
…t_create_share_with_quotas_disabled_on_pool drop qgroupid in share create when quotas are disabled #2506
@Hooverdan96 Thanks for doing the leg work on this one. The referenced pr is basically what you suggested. |
Me too; I've had a quick look at the On a side note, I wonder if this hasn't come to light earlier due to the fact that most users create Pools and shares and then disable quotas? In this case, this should this work post #2511 , correct? |
@FroggyFlox Yes, I had a little look also and thought I saw a changelog entry regarding parsing of qgroups but not certain. Also, as you say, it may just have been a sanity check under some other heading. Or we have just not had it reported for years !!
Yes. I tested enabled and disabled and re-enabled function and all looks to be OK. |
Issue created based on forum post a few days ago:
https://forum.rockstor.com/t/rockstor-4-5-7-cannot-create-share-with-quotas-disabled-on-pool/8706
Not sure, whether this was discussed already in the past (my search didn't yield any relevant results), but on Rockstor 4.5.7 during share creation on a pool for which the quotas are disabled, the UI comes back with an error that prevents it from doing so:
On the flip side, when I have quotas enabled on the pool, the share is created without a problem.
On my current 4.1 "production" instance (with kernel backport installed), the same behavior seems to occur, I just did not notice because I had not created any new shares, since I disabled the quotas on there some time ago.
The text was updated successfully, but these errors were encountered: