770 Commits

Author SHA1 Message Date
Anuj Mathur
6cc503bc44 Nova usage report fix
Gracefully handled case where rawdata entry does
not exist for request_id while generating nova usage
audit report.

Change-Id: I675b2b5e9c4be70d45fc2385f1b448c159610f56
2014.08.21.a
2014-07-03 20:37:14 +05:30
Priyanka Agrawal
999012f5cb Added try catch for request_id null
When the request_id is null, there was an exception generated.
Currently setting the deployment to None for the reports
in case the request_id is null

Change-Id: Idde2178d217ac16f1b3e275c730e3fce68ba9f1b
2014-07-03 20:27:46 +05:30
Manali Latkar
cfab4cc6cc api to store AH event id along with send_status by yagi
Change-Id: Ied32cb88e5fbcb000c5b32f4d1190da6da3dc8ec

basic debianization

Change-Id: I1fdcb4c7040f350e034e2cfd44272a7b35178221

basic debianization

Change-Id: I8ba97fc088426b07f583c4335a695ec7a7af49b4

Making the type and null check for os_version optional according to import image_type

Change-Id: Ide512b4462d5c2d21ec1538325e5c2971b6b2934

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

Change-Id: Icc1d093ab42e8164dfe98133458ede056becfaa0

Added column headers for host and deployment in json reports

Change-Id: Ic8a7b171b4f717e1a2da2e626eb5bcf1863037e1

Switched to Apache licensing

Change-Id: Ifdbc6c46d51913dacb8fca4a8f770f3f6f57f8f8

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-07-03 20:07:24 +05:30
anujm
212c233aef Merge pull request #311 from anujm/stable
Promoted master to stable
2014-03-19 21:07:32 +05:30
Anuj Mathur
56b3680d65 Promote master to stable 2014-03-19 19:17:54 +05:30
anujm
9d1a93a49e Merge pull request #281 from TelekomLabs/log_decode_errors
log decode errors, do not ack.
2014-03-14 15:56:43 +05:30
Bernhard K. Weisshuhn
4f60f245cf log decode errors, do not ack. 2014-03-14 10:34:56 +01:00
anujm
1c7cbab784 Merge pull request #305 from anujm/add_logging_for_rabbitmq
Added logging on RabbitMQ connection error and revival
2014-03-13 20:26:17 +05:30
Anuj Mathur
c2aa435869 Added logging on RabbitMQ connection error and revival 2014-03-13 15:26:25 +05:30
Andrew Melton
29d878d706 Merge pull request #304 from manalilatkar/os_distro_optional
Making the type and null check for os_distro optional according to import image_type
2014-03-10 13:47:25 -04:00
Manali Latkar
4144d39976 Making the type and null check for os_distro optional according to import image_type 2014-03-10 20:55:18 +05:30
Andrew Melton
27230e829d Merge pull request #303 from rackerlabs/master
Promote Master to Stable
2014-03-07 13:49:24 -05:00
Andrew Melton
390d2e4ead Merge pull request #302 from ramielrowe/ums_nova_usage_report
Remove custom name for ums query based report
2014-03-06 12:06:43 -05:00
Andrew Melton
670396fce0 Remove custom name for ums query based report 2014-03-06 11:48:12 -05:00
Thomas Maddox
b0395d6711 Merge pull request #301 from ramielrowe/ums_nova_usage_report
Adding ums query option to nova usage report
2014-03-05 13:37:17 -06:00
Andrew Melton
f0e5b243c6 Using partial instead of defining a new func 2014-03-05 14:34:34 -05:00
Andrew Melton
8bae0d4cfc Refactor verifier audit functions 2014-03-05 14:25:04 -05:00
Andrew Melton
a5d4836e12 Pulling UMS fencepost offset into script argument 2014-03-05 14:04:42 -05:00
Andrew Melton
d8c382744d Adding ums query option to nova usage report 2014-03-05 13:44:46 -05:00
Andrew Melton
9468220493 Merge pull request #300 from rackerlabs/master
Promote Master to Stable
2014-03-04 13:38:20 -05:00
Andrew Melton
e0fe5d48a7 Merge pull request #299 from ramielrowe/master
Fixing comment
2014-03-03 15:54:06 -05:00
Andrew Melton
d3867ccdb5 Fixing comment 2014-03-03 15:53:29 -05:00
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
18c3309d7b Short circuit event stats filter when event found 2014-03-03 12:52:46 -05:00
Andrew Melton
fef0458472 More efficient event stats query 2014-03-03 12:39:12 -05:00
Thomas Maddox
7f3f2530f7 Merge pull request #296 from ramielrowe/master
Correcting date format error
2014-02-28 10:19:48 -06:00
Andrew Melton
475ef4777d Correcting date format error 2014-02-28 11:15:43 -05:00
Thomas Maddox
26a1be9ee9 Merge pull request #295 from ramielrowe/master
Properly anchor API urls
2014-02-28 09:32:35 -06:00
Andrew Melton
f57bc6a95f Properly anchor API urls 2014-02-28 10:27:07 -05:00
Andrew Melton
94feb0a1c2 Merge pull request #294 from ramielrowe/usage_exists_stats
Convert annotations to list
2014-02-27 16:10:38 -05:00
Andrew Melton
15666258d5 Convert annotations to list 2014-02-27 16:04:36 -05:00
Andrew Melton
98e30312ec Merge pull request #293 from ramielrowe/usage_exists_stats
Usage exists stats
2014-02-27 15:45:05 -05:00
Andrew Melton
3da44120e5 Merge pull request #292 from ramielrowe/master
Refactoring repair api
2014-02-27 15:36:34 -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
143500dbc7 Merge pull request #288 from manalilatkar/stacktach_down_scenario
Stacktach down scenario: added an api to repair exists status after a period of verifier inactivity
2014-02-27 14:53:12 -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
61e269ea03 Merge pull request #291 from manalilatkar/api_for_verified_count
adding an api to get count of .verified in rawdata
2014-02-27 22:07:22 +05:30
Manali Latkar
06e3e4a8d4 adding an api to get count of .verified in rawdata 2014-02-27 19:12:34 +05:30
Andrew Melton
e90fd6dcbf Merge pull request #267 from priy1237/NOTIFICATION_DEFAULT_VALUE_FIX
Fixed default value of notification in the verifier config file
2014-02-24 11:36:08 -05:00
Manali Latkar
8c82d57f20 Merge pull request #290 from anujm/add_info_to_verification_error_messages
Added instance/image id and verified_at to error messages
2014-02-24 15:37:48 +05:30
Anuj Mathur
3c7dd7bff5 Added tests for verification exceptions 2014-02-24 15:15:52 +05:30
Anuj Mathur
259fe6edd0 Added instance/image id and verified_at to error messages 2014-02-24 15:13:52 +05:30
Andrew Melton
1c2042c8bf Merge pull request #265 from ramielrowe/notif_scrubber
Adding notification scrubber script
2014-02-20 14:39:31 -05:00