-
Notifications
You must be signed in to change notification settings - Fork 10
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
the flux user cannot run jobs when flux-accounting is installed and flux is not in the database #476
Comments
I can't think of a way this could be done in flux-core alone, either, since the job-manager can't know why the job was rejected by a plugin , and we don't want to accidentally allow jobs rejected for other reasons. I'm going to move this issue to flux-accounting. The mf_priority plugin can add a check to allow the current uid even if it doesn't have a current entry in the association. Or, perhaps a default bank can always be added for the instance owner. I'll allow @cmoussa1 to decide on the correct approach here. |
Sounds good, I'm happy to take a look at this. To keep the logic the same in regards to other associations in the flux-accounting DB, perhaps we can just automatically add a default |
Sounds like a good idea to me! You should be able to check the |
Cool, thanks! I think I'm able to get the userid no problem by just checking the |
Oh, duh. I just realized if I have the UID I can just look up the corresponding username:
|
Hm, you may have to use |
Problem: It seems like the
flux
(instance owner) user should always be allowed to run, to support "system jobs". (@jameshcorbett has a use case for this now). But flux-accounting prevents this unless the flux user is in the database.I was thinking maybe flux-core could do something to ensure this always works but I'm not sure how we would do that generally - it might need to go in flux-accounting. But anyway, maybe others have some ideas.
The text was updated successfully, but these errors were encountered: