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.
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.
python trove_quota_sync.py --config my_trove.conf --all
python trove_quota_sync.py --config my_trove.conf
python trove_quota_sync.py --sync
This will write data to DB.
python trove_quota_sync.py --project_id "d945d5ce-cfb8-11e4-b9d6-1681e6b88ec1"
We use it in Ocata, it may work well on higher version.
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.