ubccr / coldfront

HPC Resource Allocation System
https://coldfront.readthedocs.io
GNU General Public License v3.0
104 stars 86 forks source link

Feature: Auto Update of an allocation attribute usage (if has usage) with custom code provided by admin #616

Open giuliolibrando opened 4 months ago

giuliolibrando commented 4 months ago

Description

Add the capability to autoupdate an Allocation Attribute Usage (if it's consumable) by adding automatic checks provided by admin.

Imagine having those allocations inside a project image It could be really useful if the admin can provide on the admin dashboard a way fro coldfront to check what the real time consumpion of those resources is regularly.

Something like: i want to check what is the storage quota usage on an allocation. So i add a check on beegfs storage passing the name of the slurm_account from coldfront (that is the same for the linux group %GID% on beegfs) and the value that's returned from the function became the new allocation attribute usage. image

The same for credits/service unit inside slurm. The command returns only an int value (the SU consumed by the slurm_account) image

Component

No response

Additional information

No response

giuliolibrando commented 4 months ago

I've added a pull request #617 for this issue