-
Notifications
You must be signed in to change notification settings - Fork 100
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
Error when filtering by Users. "AttributeError: 'NoneType' object has no attribute 'users'" #330
Comments
Oh this is an interesting bug indeed 🙂 Thanks for reporting! Is authentication enabled in your gateway configuration? If not, that could explain, I may have missed this case in my tests. |
Thanks for the quick response, @rezib . In
We don't have any authentication enabled that I can see (Sorry, I didn't set up the test instance) There is an apache reverse proxy that does the certs and maps these back to the socks, like so;
|
Yes, it is in this file.
Slurm-web extracts users from LDAP (or AD) so you have to configure authentication and Slurm-web should not fail as reported in this case though, something has to be fixed in some way. |
Thanks for your help - we weren't aware that users were gathered that way, and had assumed LDAP was used purely for authentication. It's helped us understand. We tried enabling LDAP but weren't able to get it working against AD. But we didn't really want to enable authentication anyway, so didn't spend much time resolving that. (The machine is only reachable internally) So we'll continue, but warn our users about that alert on the Users filter. Suggestion: If [ldap] isn't configured, then Users filter could either A) Show a more descriptive error, perhaps worded so it doesn't startle the users and make them raise tickets. Thank you for your help, and your work on this project. (Fine to close this as resolved, or leave open as a suggestion - your call) |
Yes, I prefer this issue to stay open until I implement either A/ or B/. I chose to use LDAP as the source of users because it contains users fullname in addition to their logins, which is convenient when you want to find one user's job and you know its firstname/lastname but not its login. Another option is to use SlurmDBD as a fallback for users source but fullname are missing there. I still have to think more about it. |
Hide users disclosure from jobs filters panel when authentication is disabled because gateway is unable to retrieve the list of users in this case. fix #330
Hide users disclosure from jobs filters panel when authentication is disabled because gateway is unable to retrieve the list of users in this case. fix #330
Description of problem
Under the menu item: "Jobs" if we select Filters and then "Users" we get the following and no data is shown;
/var/log/messages
reports thisOther Filters work as expected, it's just Users that shows an error.
We thought it might be because we didn't have any users in Slurm's Db (we use AD for users to authenticate with), so we tried adding a normal user into slurmdbd on our TEST cluster, and that didn't help any.
We're using htttpd (apache2) as a reverse proxy for slurm-web with https passing to the local socks, and this seems to be working fine.
Using our TEST cluster to diagnose this. One headnode, 4 fairly beefy (40 cores, 384Gb each) work nodes with 13 partitions.
These are new installs, we have not previously looks at Slurm-Web and have not had this Filter working before.
Versions
Running on Rocky Linux 9.3, software versions:
Thank you for any thoughts.
The text was updated successfully, but these errors were encountered: