Bug #5692

Puppet environment counters not updated

Added by michael beemer over 3 years ago. Updated almost 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Tomer Brisker
Category:Web Interface
Target version:Sprint 29
Difficulty: Bugzilla link:1128069
Found in release:1.5.0 Pull request:https://github.com/theforeman/foreman/pull/1690
Story points-
Velocity based estimate-
Release1.6.1Release relationshipAuto

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 (13.8 KB) Preview michael beemer, 05/13/2014 12:54 PM

Environment

Related issues

Related to Foreman - Bug #6210: the config groups page + puppet environments page not dis... Duplicate 06/13/2014
Related to Foreman - Bug #6813: Negative Hosts in Operating Systems view Duplicate 07/29/2014
Related to Foreman - Bug #7246: Remove counter workaround for #5692 on upgrade to rails 4.x Rejected 08/25/2014
Related to Foreman - Bug #7247: Create migration to fix incorrect counts caused by #5692 ... Closed 08/25/2014
Related to Foreman - Bug #10133: Massive db deadlocks in postgres from hosts_counter updat... Closed 04/14/2015
Related to Foreman - Bug #11051: OS host counters inaccurate after host deletion Rejected 07/08/2015
Related to Foreman - Bug #11444: Domains page shows negative number of hosts Closed 08/21/2015
Duplicated by Foreman - Bug #6716: Wrong hosts count on environment page Duplicate 07/22/2014
Duplicated by Foreman - Bug #7769: Negative number of hosts Duplicate 10/01/2014

Associated revisions

Revision ae4998bc
Added by Tomer Brisker about 3 years ago

Fixes #5692 - correct counts in cached_counters

Revision f49cec20
Added by Tomer Brisker about 3 years ago

Fixes #5692 - correct counts in cached_counters

(cherry picked from commit ae4998bc96efd7c494f2d60313aca435cfc76b52)

History

#1 Updated by Dominic Cleal over 3 years ago

  • Subject changed from Foreman 1.5 Puppet Environments to Puppet environment counters not updated
  • Release set to 1.5.1

#2 Updated by Dominic Cleal over 3 years ago

  • Target version set to Sprint 24

#3 Updated by Dominic Cleal over 3 years ago

  • Release deleted (1.5.1)

#4 Updated by Dmitri Dolguikh over 3 years ago

  • Target version changed from Sprint 24 to Sprint 25

#5 Updated by Dominic Cleal over 3 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 over 3 years ago

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

#7 Updated by Stephen Benjamin over 3 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 over 3 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 over 3 years ago

  • Target version deleted (Sprint 25)

#10 Updated by Dominic Cleal over 3 years ago

  • Duplicated by Bug #6716: Wrong hosts count on environment page added

#11 Updated by Dominic Cleal over 3 years ago

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

#12 Updated by Tomer Brisker over 3 years ago

  • Assigned To set to Tomer Brisker
  • Target version set to Sprint 27

#13 Updated by Dominic Cleal over 3 years ago

  • Status changed from New to Assigned

#14 Updated by Tomer Brisker over 3 years ago

  • Status changed from Assigned to Duplicate

#15 Updated by Tomer Brisker over 3 years ago

  • Status changed from Duplicate to Assigned

#16 Updated by The Foreman Bot over 3 years ago

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

#17 Updated by Bryan Kearney over 3 years ago

  • Bugzilla link set to 1128069

#18 Updated by Dmitri Dolguikh over 3 years ago

  • Target version changed from Sprint 27 to Sprint 28

#19 Updated by Tomer Brisker over 3 years ago

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

#20 Updated by Tomer Brisker over 3 years ago

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

#21 Updated by Dmitri Dolguikh about 3 years ago

  • Target version changed from Sprint 28 to Sprint 29

#22 Updated by Anonymous about 3 years ago

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

#23 Updated by Dominic Cleal about 3 years ago

  • Release set to 1.6.1

#24 Updated by Dominic Cleal about 3 years ago

  • Duplicated by Bug #7769: Negative number of hosts added

#25 Updated by Anonymous almost 3 years ago

Spam deleted by administrator.

#26 Updated by Tomer Brisker over 2 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 over 2 years ago

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

#28 Updated by Dominic Cleal over 2 years ago

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

Also available in: Atom PDF