Bug 806989 - consumed_gears not being updated when apps/domains deleted
Summary: consumed_gears not being updated when apps/domains deleted
Keywords:
Status: CLOSED DUPLICATE of bug 806817
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 1.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-26 17:24 UTC by Clayton Coleman
Modified: 2012-03-27 20:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-27 20:34:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Clayton Coleman 2012-03-26 17:24:14 UTC
Unit tests for site are reusing the domain and invoking either app deletion or domain deletion at the end of the test.  However, consumed gears is not being updated, so a user in the DB looks like:

{ "_id" : "app_test1", "apps" : [ ], "consumed_gears" : 5, "domains" : [ ], "login" : "app_test1", "max_gears" : 5, "ssh_keys" : { }, "uuid" : "7945a098eecc4fd0a3308e57f8eb33a2", "vip" : false }

Suspect the count isn't being updated.

Comment 1 Rajat Chopra 2012-03-27 20:34:51 UTC
Count was wrongly updated in the beginning, as a result even if the app count was 0, the gear count could be 1.

*** This bug has been marked as a duplicate of bug 806817 ***


Note You need to log in before you can comment on or make changes to this bug.