| Crates.io | avina-cli |
| lib.rs | avina-cli |
| version | 1.6.0 |
| created_at | 2025-06-05 10:50:04.135442+00 |
| updated_at | 2025-06-05 13:58:28.698317+00 |
| description | Rust CLI client for the LRZ-specific features of the Openstack-based LRZ Compute Cloud. |
| homepage | https://github.com/LRZ-BADW/avina |
| repository | https://github.com/LRZ-BADW/avina |
| max_upload_size | |
| id | 1701354 |
| size | 163,696 |
CLI application written in Rust for LRZ-specific features of the Openstack-based LRZ Compute Cloud, https://cc.lrz.de, first and foremost the budgeting system.
Install the tool via cargo:
cargo install avina-cli
As a general note, use the -h/--help to find out more about the specific
commands of the tool.
As with the normal Openstack CLI client you need to source your Openstack RC file to access the API. You can download it when clicking on you username in the top-right corner in the webui and then "OpenStack RC File v3".
Source it via:
. di12abc-openrc.sh
replacing di12abc with you own username, and then enter your password.
Note: this stores you credentials in environment variables starting with
OS_ for OpenStack.
avina user me
Note: role 1 indicates that you are a normal user, role 2 means you are a master user.
avina -f json usage
Note: the -f json tells the tool to simply output the JSON response from
the API.
avina flavor-price list
avina server-consumption
avina server-cost
avina user-budget list
avina project-budget list
avina user-budget over -dc
This hierarchical view also shows a breakdown of the cost down to the individual servers and is what the webui uses:
avina -f json budget-over-tree
Note: the -f json tells the tool to simply output the JSON response from
the API.
avina project list
avina user list -p <project_id/name>
avina user-budget list -p <project_id/name>
avina user-budget over -p <project_id/name> -dc
This hierarchical view also shows a breakdown of the cost down to the individual users and servers and is what the webui uses:
avina -f json budget-over-tree -p <project_id/name>
Note: the -f json tells the tool to simply output the JSON response from
the API.
avina user-budget modify <user_budget_id> -a <amount>
avina project-budget modify <project_budget_id> -a <amount>
Note: you cannot set a budget below the already acrued costs or modify the budget of a past year.