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

Also available in: Atom PDF