37 Commits

Author SHA1 Message Date
Isham Ibrahim
b7aa9c8980 VIRT-2985: Continuing the loop for a batch update of the exists pingback from yagi in case of django.ObjectNotExist and django.MultipleObjectExist errors. unit tests for batch update containing django errors have also been updated.
SECOND ITERATION - Added another mock patch to fake Django DB transactions.

Change-Id: Ia953d9b5393ee315c6296f0f0e9d98ff4c456e0c
2017-07-12 15:49:15 +05:30
Sandy Walsh
7c591f2b57 Fix ordering problem causing tests to fail randomly
Iterates the dictionary in the same order when building the mox
as the code uses when performing the operations.

Also changed the UUID's to make them a little more
distquishing.

Change-Id: I2c43e7f85e1b2655a46c24dc209386fe7fb48fa4
2014-09-15 20:13:39 +00:00
Monsyne Dragon
38590dd5c1 Fix nondeterministic test ordering bug.
Fix a unit test bug. Fix was in rackerlabs repo, but somehow never
made it to stackforge.

Change-Id: Ie8a056e553f7385b335771ede1de1c2a8c01ae7a
2014-08-26 16:01:14 +00:00
Sandy Walsh
8a0f06ac79 Freshen up with latest from RackerLabs (and include tox.ini)
Added instance hours report

Initial version of report to calculate unit hours used
for nova instances

Breakdown by flavor, flavor class, account/billing types and by tenant.

Moved license so script has shebang as the first line
Add tenant info cache.
Refactor Instance hr report.
Added cache table for basic tenant info for reports.
Refactor instance_hours report to use table.
Improve performance of tenant info update.

use bulk sql operations to speed up the tenant info update,
as it's taking ~40s/1000 tenants to update on a decent machine.

Fix some tests broken by rebase. Fix unittests broken by
rebase. Also, renumber migration due to collision.

Add Apache license header to new files.

Fixed bug with fetching deployment information in
reconciler. Reverted old method for fetching
current usage's deployment and added new method to
fetch latest deployment information for
a request_id.

Made the field mismatch error message more readable
Refactored nova and glance verifier tests

the exists are updated with 201 send_status as part of stacktach down repair mechanism

Revert "Fixed bug with fetching deployment information in"

Revert "Adding host and deployment info to missing exists entries in the nova usage audit"

Revert "Added column headers for host and deployment in json reports"

Only log ERROR on last retry

fixed the wrong status name for sent_failed variable in audit report

fixing documentation for urls that are not available for glance

deprecating stacky urls (usage, deletes, exists) that are not
used anymore

Revert "Revert "Added column headers for host and deployment in json reports""

Revert "Revert "Adding host and deployment info to missing exists entries in the nova usage audit""

Revert "Revert "Fixed bug with fetching deployment information in""

Cell and compute info added for verification failures as well.
If that is not present(request_id is not populated for an
InstanceUsage entry), the cells display '-'

Add tox support for move to stackforge

Add tox support for move to stackforge

Change-Id: Id94c2a7f1f9061e972e90c3f54e39c9dec11943b
2014-05-08 15:58:03 -03:00
Sandy Walsh
eae07eecac Switched to Apache licensing 2014-03-28 11:47:16 -03:00
Manali Latkar
b1db1eb8f3 modified api to store AH event id along with send_status sent by yagi 2014-03-14 16:40:25 +05:30
Thomas Maddox
40e04b4947 Merge pull request #298 from ramielrowe/master
Adding date range limit to event stats
2014-03-03 14:52:37 -06:00
Andrew Melton
93d13262db Increasing event stats max range 2014-03-03 15:37:34 -05:00
Andrew Melton
913310e4f5 Adding date range limit to event stats 2014-03-03 14:51:44 -05:00
Andrew Melton
219ec37eeb Merge pull request #297 from ramielrowe/event_stats_update
More efficient event stats query
2014-03-03 13:16:02 -05:00
Andrew Melton
e21afc84a7 Clearer event stats filtering 2014-03-03 13:06:02 -05:00
Andrew Melton
fef0458472 More efficient event stats query 2014-03-03 12:39:12 -05:00
Andrew Melton
475ef4777d Correcting date format error 2014-02-28 11:15:43 -05:00
Andrew Melton
4f27f3e393 Refactoring event count api 2014-02-27 15:35:31 -05:00
Andrew Melton
5ee5240339 Fixing merge conflicts 2014-02-27 15:08:41 -05:00
Andrew Melton
a45a11e2f7 Refactoring repair api 2014-02-27 14:59:03 -05:00
Andrew Melton
cb29fb7022 Exists stats api 2014-02-27 14:47:23 -05:00
Manali Latkar
97666bcb6c Stacktach down scenario: added an api to repair exists status after a period of verifier inactivity
added documentation
2014-02-27 23:27:17 +05:30
Manali Latkar
06e3e4a8d4 adding an api to get count of .verified in rawdata 2014-02-27 19:12:34 +05:30
Manali Latkar
6bab377a37 changed urls and response format according to the review comments 2013-12-12 13:00:46 +05:30
Manali Latkar
a997a6a102 Added db APIs for Glance 2013-12-12 13:00:46 +05:30
Manali Latkar
e77beaa30a stacktach accepts AH response code as a ping from yagi along with the name of the service and stores it accordingly and is also compatible with the earlier format. 2013-11-12 13:54:41 +05:30
Andrew Melton
6ea311bea1 Fixing tests to work with python 2.6 2013-08-07 12:02:24 -04:00
Andrew Melton
0d3a8be1de Casting dbapi limit query_param to int
Since query params are provided by django as a String, all
limits were failing the comparison against the HARD_LIMIT
and thus a limit of 1 was getting turned into the HARD_LIMIT.
2013-08-01 11:33:51 -04:00
Andrew Melton
5da3a740af Accept POST on usage confirm dbapi call. 2013-06-04 11:52:09 -04:00
Andrew Melton
f200e2b560 Mocking out django transactions in dbapi tests 2013-04-22 16:09:20 -04:00
Andrew Melton
81fe1c3255 Changing default order_by to ascending 2013-04-08 17:44:08 -04:00
Andrew Melton
265512bcd6 Default and Hard Limits on dbapi 2013-04-08 16:54:09 -04:00
Andrew Melton
619ca0ecc7 send_status on exists records 2013-04-01 14:11:49 -04:00
Andrew Melton
4db9e256cf MIT LA to Rackspace Header, Configurable Routing Key for Verified Notifiactions 2013-03-26 13:34:31 -04:00
Andrew Melton
1d8ee6d016 Rackspace Copyright 2013-03-13 14:26:38 -04:00
Andrew Melton
5b1c3b4c60 Adding received filter on exists api call 2013-02-27 14:26:50 -05:00
Andrew Melton
adc7693eeb Validating uuids on api calls 2013-02-26 16:42:32 -05:00
Andrew Melton
924f320128 Merge branch 'master' of git://github.com/rackspace/stacktach into limit_offet_args 2013-02-25 14:33:06 -05:00
Andrew Melton
e426aa5e84 Adding dbapi query limit and offset 2013-02-25 13:56:58 -05:00
Andrew Melton
4931704070 Validating model has range field 2013-02-22 12:30:19 -05:00
Andrew Melton
e125aab2e1 Adding range query args 2013-02-15 16:46:45 -05:00