-
Notifications
You must be signed in to change notification settings - Fork 158
remove queues from auto_queues using {Allow,Deny}Qos #4471
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
base: master
Are you sure you want to change the base?
remove queues from auto_queues using {Allow,Deny}Qos #4471
Conversation
59d4821 to
1608111
Compare
580a13c to
1608111
Compare
| return false if queue.allow_accounts && !queue.allow_accounts.include?(account.to_s) | ||
| return false if queue.deny_accounts.include?(account.to_s) | ||
| return false if queue.allow_qos && !(queue.allow_qos & account.qos).any? | ||
| return false if (queue.deny_qos & account.qos).any? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return false if (queue.deny_qos & account.qos).any? | |
| return false if account.qos.difference(queue.deny_qos).none? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was wrong. If you have 3 QoS and one of those are denied, you still have access via the other 2 QoS. Only if all of your account's QoS denied should the account be considered denied.
|
TODO can we set |
closes #3932
relies on OSC/ood_core#888
Also fixes a little inconsistency where
account_allowedtakes into accountdeny_accountsas well asallow_accounts, whileblocked_queueonly takes into accountallow_accounts.Confirmed working on my home system. Marked as draft until test cases can be written,
and I can explore the possibility of user<->partition associations in slurm.