Bug #11051
closed
OS host counters inaccurate after host deletion
Added by Oleg Obleukhov over 9 years ago.
Updated over 9 years ago.
Description
If you remove hosts from Foreman, you will have resynchronization of data:
- Project changed from Plugins to Foreman
- Category set to Statistics
- Status changed from New to Need more information
Which version of Foreman is this? There are some fixes for counters in 1.8.
- Subject changed from Recalculate data of OS usage to OS host counters inaccurate after host deletion
- Status changed from Need more information to New
- Priority changed from High to Normal
- Related to Bug #5692: Puppet environment counters not updated added
I wonder if the previous fix, #5692, only covers the case when the OS changes on a host and not when the host is deleted. Thanks for the report.
Could you check if running foreman-rake fix_cached_counters
temporarily fixes/resets the counters here?
Dominic Cleal wrote:
I wonder if the previous fix, #5692, only covers the case when the OS changes on a host and not when the host is deleted. Thanks for the report.
Could you check if running foreman-rake fix_cached_counters
temporarily fixes/resets the counters here?
Yes, this command fixed it.
- Status changed from New to Assigned
- Assignee set to Tomer Brisker
- Status changed from Assigned to Need more information
I could not reproduce this, tried adding and removing hosts to no avail.
Is it possible you had a corrupted DB somehow that had leftovers from before the fix?
If you manage to reproduce this, please let us know the steps to reproduce that lead to mistaken counts.
You can close the ticket. I found 1 place where it was modified directly in database. So periodical run of foreman-rake fix_cached_counters fixed the problem.
- Status changed from Need more information to Rejected
Bug was due to direct modification in database. Closing.
Also available in: Atom
PDF