Bug #3491

cyclades-reset-usage omits those who have no active resources

Added by Georgios Tsoukalas over 7 years ago. Updated almost 7 years ago.

Status:Closed Start date:03/22/2013
Priority:Medium Due date:
Assignee:Christos Stavrakakis % Done:

100%

Category:Cyclades API Spent time: -
Target version:-

Description

If a user does not have any non-deleted VMs or Networks,
then cyclades-reset-usage will not list them and will not zero their usage.

Associated revisions

Revision 39d44eba
Added by Christos Stavrakakis over 7 years ago

reconcile-resources: check that user exists in QH

Do not consider 0 usage for users and resources that are not included in
Quotaholder resources list, since Quotaholder returns zero usage for all
users and all resources. If a user/resource does not belong to QH
respond then it can not be an Astakos user.

Refs #3606 #3491 #3661

Revision ccfbf77b
Added by Christos Stavrakakis over 7 years ago

Varous fixes to cyclades-usage-verify command

Extend 'cyclades-usage-verify' management command to cover the usage of
'cyclades-reset-usage' and remove the second one. The new command
reconciles resources(usage) by detecting inconsistencies between the
usage of resources in Astakos and Cyclades DB and fixing them by issuing
a commission with the difference of the usage in DB and Astakos. If
there is a pending commission for a resource, reconciliation for this
resource is skipped. Refs #3627

Also, make this command do not consider only users that exist in
Cyclades DB, but also users that exist in Quotaholder. For such users,
it is assumed that they have zero usage for all Cyclades resources.
Refs #3606 #3491

History

#1 Updated by Christos Stavrakakis over 7 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Christos Stavrakakis almost 7 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF