Actions
Feature #17398
closedFix counts while upgrading Satellite
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1395797
Description of problem:
It seems that in older version of Satellite, a situation could create a negative count , and this negative counts still persist after upgrading. It can be fix manually by running this:
Hosts > Operating Systems
Under "Hosts" column, the negative "-1" should be seen
3. Run this command
Description of problem:
It seems that in older version of Satellite, a situation could create a negative count , and this negative counts still persist after upgrading. It can be fix manually by running this:
- foreman-rake fix_cached_counters
As a RFE, this actions could be done when upgrading, or in a cron managed by Satellite.
Steps to Reproduce:
1.Modify the count from the database via foreman db, example:
update operatingsystems SET hosts_count = hosts_count -1 WHERE id = '2';
Hosts > Operating Systems
Under "Hosts" column, the negative "-1" should be seen
3. Run this command
- foreman-rake fix_cached_counters
4. Count in the database and webui will now display to good number.
Expected results:
Have an automated process that fix the counters via cron or uprade process.
Updated by Stephen Benjamin about 8 years ago
- Subject changed from Fix counts while upgrading Satellite to Fix counts while upgrading Satellite
- Status changed from New to Rejected
Not needed upstream since cache counters are gone.
Updated by Eric Helms about 8 years ago
- Translation missing: en.field_release set to 166
Actions