Skip to content

Allow creating and modifying allocations through the API #47

Description

@knikolla

Currently, /api/allocations only supports reading information about allocations. We should be able to create new allocations via it too.

We need to think about whether the current representation in /api/allocations is the correct, or if there are already existing standards that we can implement, similar to how we implemented SCIM for user memberships.

Activity

  1. QuanMPhm commented on Mar 17, 2025

    @QuanMPhm
    Contributor

    @knikolla I thought it would be more appropriate to move my questions here. I wanted some context while deciding if/how to redesign the allocations API:

    • What are the use case for allowing creating/editing allocations through the API? It is only to be used by admins or scripts that we wrote?
    • With the understanding that our Coldfront allocations are essentially the source-of-truth for our users' resource quota info, we want to freely create/edit/delete allocations with arbitrary quota attributes, and have these actions lead to the appropriate changes in Openstack/Openshift?
  2. knikolla commented on Mar 17, 2025

    @knikolla
    CollaboratorAuthor

    @knikolla I thought it would be more appropriate to move my questions here. I wanted some context while deciding if/how to redesign the allocations API:

    • What are the use case for allowing creating/editing allocations through the API? It is only to be used by admins or scripts that we wrote?

    It is both for admins and PIs.

    • Admins would be able to create, edit, approve, etc. allocations through the API.
    • PIs would be able to request allocations and change requests through the API.
      This is extending the current methods of using the browser to do things to also be exposed through an API.
    • With the understanding that our Coldfront allocations are essentially the source-of-truth for our users' resource quota info, we want to freely create/edit/delete allocations with arbitrary quota attributes, and have these actions lead to the appropriate changes in Openstack/Openshift?

    "Freely" is a loaded term. It does not change the current permission scheme and operations initiated by PIs will still need admin approval (or automated approval as described in other issues), same as when using the UI. This is exposing UI functionality through the API.

  3. QuanMPhm commented on Mar 26, 2025

    @QuanMPhm
    Contributor

    @knikolla After doing some looking around, I couldn't find a commonly used API for representing something similar to our resource allocations. The closest open-source API may have been CIMI, but it is old and doesn't seem to have wide use. Other cloud providers like Google has something similar, but I'm not sure if that's what you want.

    Let me know if you have any advice on the search, or whether if it's fine for me to extend the allocation API with the current representation we have now.

  4. morantara commented on Apr 7, 2025

    @morantara

    @QuanMPhm are there any updates here? do you think this will get completed this sprint?

  5. knikolla commented on Apr 8, 2025

    @knikolla
    CollaboratorAuthor

    if it's fine for me to extend the allocation API with the current representation we have now.

    @QuanMPhm Yes, go ahead with this.

  6. QuanMPhm commented on Apr 8, 2025

    @QuanMPhm
    Contributor

    @QuanMPhm are there any updates here? do you think this will get completed this sprint?

    @morantara I will try :)

  7. morantara commented on May 19, 2025

    @morantara

    @QuanMPhm any updates here?

  8. QuanMPhm commented on May 20, 2025

    @QuanMPhm
    Contributor

    @morantara This can be pushed out to next sprint. Thank you for reminding me. I'll need to bug a few people to review it.

  9. morantara commented on Aug 11, 2025

    @morantara

    @QuanMPhm any luck getting this reviewed?

  10. QuanMPhm commented on Aug 12, 2025

    @QuanMPhm
    Contributor

    @morantara Pushed a few sprints

  11. morantara commented on Nov 3, 2025

    @morantara

    @QuanMPhm its that time again :) should this be moved to a future sprint?

  12. QuanMPhm commented on Nov 4, 2025

    @QuanMPhm
    Contributor

    @morantara pushed. @knikolla Since we want time to test out this API along with possibly scripts built on top of it, should this be prioritized next sprint?

  13. joachimweyl commented on Jul 15, 2026

    @joachimweyl

    This issue has been migrated to: CCI-MOC/MOC-issues#271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions