Project

General

Profile

Bug #5692

Puppet environment counters not updated

Added by michael beemer over 4 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

The environment dashboard server count doesn't update. Please see the screenshot for an example.

[[https://groups.google.com/forum/?fromgroups#!topic/foreman-users/knnR2G8OZYw]]

environment.PNG View environment.PNG 13.8 KB michael beemer, 05/13/2014 12:54 PM
Environment

Related issues

Related to Foreman - Bug #6210: the config groups page + puppet environments page not displaying correct numbers of hosts and host groupsDuplicate2014-06-13
Related to Foreman - Bug #6813: Negative Hosts in Operating Systems viewDuplicate2014-07-29
Related to Foreman - Bug #7246: Remove counter workaround for #5692 on upgrade to rails 4.xRejected2014-08-25
Related to Foreman - Bug #7247: Create migration to fix incorrect counts caused by #5692 and related bugsClosed2014-08-25
Related to Foreman - Bug #10133: Massive db deadlocks in postgres from hosts_counter updates with counter_cache_fix.rbClosed2015-04-14
Related to Foreman - Bug #11051: OS host counters inaccurate after host deletionRejected2015-07-08
Related to Foreman - Bug #11444: Domains page shows negative number of hostsClosed2015-08-21
Has duplicate Foreman - Bug #6716: Wrong hosts count on environment pageDuplicate2014-07-22
Has duplicate Foreman - Bug #7769: Negative number of hostsDuplicate2014-10-01

Associated revisions

Revision ae4998bc (diff)
Added by Tomer Brisker almost 4 years ago

Fixes #5692 - correct counts in cached_counters

Revision f49cec20 (diff)
Added by Tomer Brisker almost 4 years ago

Fixes #5692 - correct counts in cached_counters

(cherry picked from commit ae4998bc96efd7c494f2d60313aca435cfc76b52)

History

#1 Updated by Dominic Cleal over 4 years ago

  • Subject changed from Foreman 1.5 Puppet Environments to Puppet environment counters not updated
  • Legacy Backlogs Release (now unused) set to 16

#2 Updated by Dominic Cleal about 4 years ago

  • Target version set to 1.8.2

#3 Updated by Dominic Cleal about 4 years ago

  • Legacy Backlogs Release (now unused) deleted (16)

#4 Updated by Dmitri Dolguikh about 4 years ago

  • Target version changed from 1.8.2 to 1.8.1

#5 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #6210: the config groups page + puppet environments page not displaying correct numbers of hosts and host groups added

#6 Updated by Dominic Cleal about 4 years ago

Linked #6210 which is likely a duplicate, or a very similar issue.

#7 Updated by Stephen Benjamin about 4 years ago

I'm almost certain it's a duplicate, because I've noticed myself now in a few places that the counter caches are fragile. When writing directly to the DB, they don't get updated, and I have a feeling there's something else fishy going on. I doubt it's simple.

What do you think about a rake task that will at least correct the wrong counts until we figure it out?

#8 Updated by Dominic Cleal about 4 years ago

Stephen Benjamin wrote:

I'm almost certain it's a duplicate, because I've noticed myself now in a few places that the counter caches are fragile. When writing directly to the DB, they don't get updated, and I have a feeling there's something else fishy going on. I doubt it's simple.

What do you think about a rake task that will at least correct the wrong counts until we figure it out?

Can do, if it can be done simply. I think having this will be useful anyway.

#9 Updated by Dominic Cleal about 4 years ago

  • Target version deleted (1.8.1)

#10 Updated by Dominic Cleal about 4 years ago

  • Has duplicate Bug #6716: Wrong hosts count on environment page added

#11 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #6813: Negative Hosts in Operating Systems view added

#12 Updated by Tomer Brisker about 4 years ago

  • Assignee set to Tomer Brisker
  • Target version set to 1.7.5

#13 Updated by Dominic Cleal about 4 years ago

  • Status changed from New to Assigned

#14 Updated by Tomer Brisker almost 4 years ago

  • Status changed from Assigned to Duplicate

#15 Updated by Tomer Brisker almost 4 years ago

  • Status changed from Duplicate to Assigned

#16 Updated by The Foreman Bot almost 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/1690 added
  • Pull request deleted ()

#17 Updated by Bryan Kearney almost 4 years ago

  • Bugzilla link set to 1128069

#18 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from 1.7.5 to 1.7.4

#19 Updated by Tomer Brisker almost 4 years ago

  • Related to Bug #7246: Remove counter workaround for #5692 on upgrade to rails 4.x added

#20 Updated by Tomer Brisker almost 4 years ago

  • Related to Bug #7247: Create migration to fix incorrect counts caused by #5692 and related bugs added

#21 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from 1.7.4 to 1.7.3

#22 Updated by Anonymous almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#23 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 22

#24 Updated by Dominic Cleal almost 4 years ago

  • Has duplicate Bug #7769: Negative number of hosts added

#25 Updated by Anonymous over 3 years ago

Spam deleted by administrator.

#26 Updated by Tomer Brisker over 3 years ago

  • Related to Bug #10133: Massive db deadlocks in postgres from hosts_counter updates with counter_cache_fix.rb added

#27 Updated by Dominic Cleal about 3 years ago

  • Related to Bug #11051: OS host counters inaccurate after host deletion added

#28 Updated by Dominic Cleal almost 3 years ago

  • Related to Bug #11444: Domains page shows negative number of hosts added

Also available in: Atom PDF