Project

General

Profile

Actions

Bug #11741

closed

Config group host counter not incremented on host creation with association

Added by Dominic Cleal about 9 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Puppet integration
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When creating a host with a config group associated, the hosts counter on the config groups list is not updated. It does get updated if the config group is associated after the host is created.

It appears that the after_add hook in app/models/concerns/host_common.rb performs a search for hosts with the config group during the host creation, so this won't pick up the host that's in the process of being created.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #12193: Deadlock occuring when creating hostClosedTomer Brisker10/16/2015Actions
Actions #1

Updated by The Foreman Bot about 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2696 added
  • Pull request deleted ()
Actions #2

Updated by Tom Caspy about 9 years ago

  • Assignee set to Tom Caspy
Actions #3

Updated by Tomer Brisker over 8 years ago

  • Status changed from Ready For Testing to New
  • Assignee deleted (Tom Caspy)
  • Pull request deleted (https://github.com/theforeman/foreman/pull/2696)
Actions #4

Updated by Tomer Brisker about 8 years ago

  • Status changed from New to Resolved

cached counters have been removed in #12193 and this should be resolved now as the count is calculated on the fly when needed.

Actions #5

Updated by Tomer Brisker about 8 years ago

  • Related to Bug #12193: Deadlock occuring when creating host added
Actions

Also available in: Atom PDF