Ganeti Web Manager: ClusterUser.used_resources is reporting total resources used across all clusters
completed by: Piotr Banaszkiewicz
mentors: Peter Krenesky
Please make sure to submit your patch for this task and to take required notes for it in the OSUOSL issue tracker at http://code.osuosl.org/issues/2523. Required notes would include letting the community know you are working on the issue with a note in the tracker, any notes on progress or difficulties implementing, etc.
For help with this task, contact kreneskyp or ramereth in #osuosl on Freenode.
ClusterUser.used_resources is reporting total resources across all clusters. This is incorrect since a quota is per cluster. The following changes should be made:
- if no cluster is given, query all clusters and return used resources for all of these clusters. This bulk operation is needed for status pages
- if a cluster is given return information for only that cluster
- add unittests:
- for correct quota numbers across clusters.
- single cluster (update existing tests for this)
- multiple clusters