|
Is there a way to check the consistency of the CS database? For some time now, no usage_job process has completed successfully, and I don't know why. |
Replies: 5 comments 3 replies
|
@PPisz , any errors in the usage.log? |
|
@DaanHoogland Error: Found 187 usage records with raw_usage > 24 Is there any way to fix these errors? |
|
@DaanHoogland We can't seem to figure this out. Is it possible to find the query that generates this alert somewhere in the CS source code? This would make it easier for us to find and fix invalid records.
The example query returns nothing, but we're probably doing it wrong. |
|
@DaanHoogland Ok, based on these queries: We managed to track down one VM that was deleted in January and events are logged for it every day at 11:59 PM: select * from usage_event where resource_id = 1790 and type like 'VM.%'; Events: select vm.id, vm.name, vm.removed, cu.* from We've checked several resources and they appear to have valid deletion dates. We're continuing our investigation, but any suggestions on what might be generating these events? |
|
After upgrading CS to 4.22, the problem is practically solved, the usage_job is executed, and sanity check has no errors. |
After upgrading CS to 4.22, the problem is practically solved, the usage_job is executed, and sanity check has no errors.