Skip to content
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

Added features #617

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Added features #617

wants to merge 18 commits into from

Conversation

giuliolibrando
Copy link

@giuliolibrando giuliolibrando commented Jul 22, 2024

  • I've added the functionality requested in issue #615 and issue #616

615:

  • If a project has consumable attributes and the allocations inside the project have the same consumable attribute and type, the project attribute is automatically updated
    image

616:

  • Added the capability to autoupdate an Allocation Attribute Usage (if it's consumable) by adding automatic checks provided by admin. The function converts %SLURM_ACCOUNT_NAME% with slurm_account_name inside the allocation attribute if present.
    image
    The command is executed each hour on the host system for each allocation that has a consumable attribute and a usage command not null.
    It requires redis-server and django-q worker.
    commands to start it:
    redis-server
    python manage.py qcluster
    DEBUG=True coldfront runserver

  • I've added a docker-compose stack (nginx, coldfront-web, coldfront-worker, redis, mariadb)
    chmod +x entrypoint.sh
    docker-compose up --build

  • I've configured the app to be exposed correctly via gunicorn

  • I've implemented the is_changeable Project Attribute type functions. It was present but not used in the software logic.

  • I've created and added it to Coldfront plugins folder a generic storage plugin to dump the storage allocations, storage_group_name and status
    https://github.com/giuliolibrando/coldfront-plugin-storage

  • I've added is_default attribute for project attribute type. If true, the attribute is added to all new projects. it also asks for a default value
    image

@giuliolibrando giuliolibrando changed the title added function to autoupdate project attributes consumption via allocations usages added #615 and #616 Jul 23, 2024
@giuliolibrando giuliolibrando changed the title added #615 and #616 Added features Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant