[LU-4530] Mainline kernel client (3.12-3.14): lfs quota -u ... -> Permission denied Created: 23/Jan/14 Updated: 01/Jul/15 Resolved: 01/Jul/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Cédric Dufour | Assignee: | Oleg Drokin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Severity: | 3 | ||||||||||||||||
| Rank (Obsolete): | 12388 | ||||||||||||||||
| Description |
|
Hello, 'lfs quota -u $(whoami)...' reports "Permission denied' for regular users. It works if the same user queries the quota for another user: $ whoami $ lfs quota -u $(whoami) /idiap/temp/$(whoami) $ lfs quota -u formaz /idiap/temp/formaz (patch follows as soon as I have the LU-<ID> for this bug) Best, Cédric |
| Comments |
| Comment by Cédric Dufour [ 23/Jan/14 ] |
|
Hello again, Problem was introduced by changes made in https://lkml.org/lkml/2013/7/15/218, which got the "uid_eq" check the wrong way around. Attached patch solves the issue: $ whoami $ lfs quota -u $(whoami) /idiap/temp/$(whoami) $ lfs quota -u formaz /idiap/temp/formaz Best, Cédric PS: what is the recommended GIT source to work on the mainline kernel client of Lustre ? |
| Comment by Oleg Drokin [ 23/Jan/14 ] |
|
Yes, the upstream kernel patches you just send to Greg & general Linux mailing lists (and CC us too, of course), as we have no commit right to staging tree ourselves. Thanks! |
| Comment by Roland Fehrenbacher [ 24/Jan/14 ] |
|
Couple of additional questions/comments concerning this:
|
| Comment by Oleg Drokin [ 25/Jan/14 ] |
I agree currently in-kernel stuff is in a somewhat strange state now (for a variety of reasons, not all of which are actually under our control), we are thinking on how to better turn it around. |
| Comment by Cédric Dufour [ 25/Jan/14 ] |
|
Hello Oleg, Thank you for those precisions. Thanks to Roland - who originally set up our Lustre cluster server-wise - we have been using Lustre for 5 years now, as a general purpose temp space for our users and our computation grid. We're quite happy with it, especially after evaluating several commercial solutions and finding none up to Lustre so far. Lately, we grew plagued by the requirement to stick with the 2.6.32 kernel (supporting new hardware and new distributions was becoming a nightmare). As we migrated from Lustre 1.8 to 2.4 - thanks to Roland again - we decided to use the in-kernel client (actually, using the in-kernel client was the pre-requisite for this migration). We're happy to see that it works. There are few bugs of course, but fortunately none blocking. Thanks to a very few patches added to 3.13/14 kernel - namely those addressing We believe that proper in-kernel support can bring a lot of momentum to Lustre. We hope that Lustre in-kernel client may one day be as notorious as other Intel's contributions to the kernel. Let us know if we can help in some ways. Best, Cédric |
| Comment by Oleg Drokin [ 26/Jan/14 ] |
|
Thanks for this info. I am glad to hear you find lustre useful and that even vanilla kernel client works for you. I uploaded a stream of patches I plan to push upstream to https://github.com/verygreen/linux/tree/lustre-next I know Peng Tao has his tree at https://github.com/bergwolf/linux/compare/master-sync-round-5 that has some more patches, though not as critical for normal operations. BTW, do you happen to use jobstats feature? |
| Comment by Cédric Dufour [ 26/Jan/14 ] |
|
Thanks for the GIT pointers. Having some "insider's" insights on which patch to "backport" in priority (before they make it to the kernel) will definitely help (and provide opportunities for feedback from us users before it does). Will/should patches always be linked to Jira IDs and should Jira be the place to provide feedback (in case issues remain) ? Also, are you the one to link new mainline kernel issues with As for jobstats: I hadn't heard of them until your mention but I will look into it; it seems it would allow us to address some questions we have with some load patterns we experience with our (SGE) grid. Best, Cédric |
| Comment by Roland Fehrenbacher [ 27/Jan/14 ] |
|
Thanks for your detailed answer to my questions. I am glad to see you are putting further |
| Comment by Oleg Drokin [ 29/Jan/14 ] |
|
|
| Comment by James A Simmons [ 01/May/14 ] |
|
This patch landed upstream. We can now close this ticket. |
| Comment by James A Simmons [ 10/Jun/14 ] |
|
Peter you can close this ticket as well since the patch has landed upstream. |
| Comment by James A Simmons [ 14/Sep/14 ] |
|
The fix commit 8b9e418c013e8b671fc10108ab14243f0657bffd staging: lustre: fix quotactl permission denied ( The changes introduced in commit 4b1a25f06b30b203 ("fix build when Full details at: https://jira.hpdd.intel.com/browse/LU-4530 Cc: Peng Tao <tao.peng@emc.com> was landed upstream. This ticket can be closed. |
| Comment by Yang Sheng [ 01/Jul/15 ] |
|
Close as James's comment. |