TensorHive icon indicating copy to clipboard operation
TensorHive copied to clipboard

Reservation checks look at system users

Open tboinski opened this issue 3 years ago • 3 comments

The system reports reservation violations for system users like gdm, root or even "None" user. This generates unnecessary spam.

tboinski avatar Jan 14 '22 08:01 tboinski

Thanks for your feedback.

A quick fix could be achieved by editing tensorhive/core/managers/InfrastructureManager.py, in ignored_processes there are hard-coded names of processes that should be ignored. Maybe in your setup the Xorg processes have a different name and you could add them. Please let me know if it helps.

Anyhow, I will leave the issue open with the following comment:

It should be possible to provide a custom whitelist of system users that would be ignored by infrastructure manager... or only by protection service? The list should be configurable via configuration files.

roscisz avatar Jan 14 '22 10:01 roscisz

The question is should this be a process list or a list of usernames, as processes can be system dependent. In m setup the likely culprit was /usr/bin/gnome-shell.

tboinski avatar Jan 17 '22 09:01 tboinski

In current develop branch the system behave differently. Currently the protection service asks the User model for user email. If the violator is the system user (e.g. root or gdm) the User model throws an exception and even admin emails are not sent.

tboinski avatar Feb 17 '22 13:02 tboinski