Project

General

Profile

Actions

Bug #336

closed

Facts not imported when running the task puppet:import:hosts_and_facts

Added by Gustavo Soares almost 14 years ago. Updated about 9 years ago.

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

Description

When running the task puppet:import:hosts_and_facts the facts related to each host found are not imported into the system and therefore no information is avaiable in the statistics page. Other problem related to this, is that the inventory functionality becomes unavaiable.

The following messages appears in the log

Processing StatisticsController#index (for x.x.x.x at 2010-06-16 16:10:10) [GET]
Parameters: {"action"=>"index", "controller"=>"statistics"}
Couldn't find Operatingsystem without an ID
Rendering template within layouts/standard
Completed in 17ms (View: 13, DB: 5) | 200 OK [http://abc.def.com/statistics]

Commenting the line self.respond_to?("merge_facts") ? merge_facts(facts.values) : self.setfacts(facts.values) inside the src/app/models/host.rb file, seems to solve the problem. However, I have not done any futher investigation of the collateral effects of this.


Files

sample.yaml sample.yaml 1.56 KB Mohit Chawla, 07/15/2010 12:54 PM
sample_yaml.yaml sample_yaml.yaml 2.9 KB Gustavo Soares, 07/15/2010 06:10 PM
tvvvgslerp100.some-company.ads.yaml tvvvgslerp100.some-company.ads.yaml 2.92 KB YAML File Henning Henkel, 08/12/2010 11:55 AM

Related issues 1 (0 open1 closed)

Has duplicate Foreman - Bug #391: No Inventory data within UIDuplicate09/30/2010Actions
Actions

Also available in: Atom PDF