Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 1.78 KB

README.md

File metadata and controls

73 lines (47 loc) · 1.78 KB

Trove Quota Sync

What is it?

This project is inspired by project nova-quota-sync.

It's a small script that compares trove quota usage information with the actual usage per resource (tenant).

It also provides an easy way to synchronize quotas in case of mismatch.

How to use it?

To see the available options run:

python trove_quota_sync.py -h
usage: trove_quota_sync.py [-h] [--all] [--sync] [--tenant_id TENANT_ID]
                           [--config CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  --all                 show the state of all quota resources
  --sync                automatically sync all resources, PLEASE USE IT WITH
                        EXTREME CAUTION.
  --tenant_id TENANT_ID
                        searches only project ID
  --config CONFIG       configuration file

Since it updates trove DB, use it with extreme caution.

Examples

python trove_quota_sync.py --config my_trove.conf --all

show all quota usage

python trove_quota_sync.py --config my_trove.conf

show all quota usage

python trove_quota_sync.py --sync

This will write data to DB.

python trove_quota_sync.py --project_id "d945d5ce-cfb8-11e4-b9d6-1681e6b88ec1"

show project quota usage

Trove versions supported

We use it in Ocata, it may work well on higher version.

Bugs and Disclaimer

Bugs? Oh, almost certainly.

This tool was inspired by project nova-quota-sync and written to be used in our private cloud and it has been tested only in our environment.

Since it updates trove DB use it with extreme caution.