CCI-MOC / openstack-billing-from-db

Simple billing from the database
Apache License 2.0
1 stars 3 forks source link

File based flavor cache and support for invoicing for V100 #6

Closed knikolla closed 1 year ago

knikolla commented 1 year ago

When a flavor is deleted, it is also deleted from the database. This leads to instances with no flavor information associated to them. Some flavor information can be extracted from the instance information in the database, but not the name.

This change implements a file based flavor cache that saves the flavors previously encountered into a JSON file that is then loaded to provide this information unavailable from the database.

Additionally, this change also adds support for GPU V100, and reworks the code to distinguish which GPU flavor is being used and how many SUs.