Project

General

Profile

Actions

Bug #2729

closed

Fedora 18 hosts do not update Properties: "undefined method `gsub!' for nil:NilClass" related?

Added by Daniel Piddock almost 11 years ago. Updated almost 11 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Facts
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I switched to Foreman 1.2 (currently 1.2.0+debian0.3) after upgrading the Puppet master to Debian Wheezy. This required a new Foreman database due to no longer sharing with Puppet. At some point during the nightlys new Fedora hosts would not get their Properties set. Facts appear to be imported OK looking through the web interface.

We use Fedora 18 (Puppet 2.7.18) on desktops and a mixture of Debian 6 (puppet 2.6.9) and 7 (puppet 2.7.18) on the server side. Debian hosts do not have this problem.

Single Puppet master and Foreman. Facts imported via /etc/puppet/node.rb.

production.log contains:

Started POST "/reports/create?format=yml" for 10.0.0.150 at 2013-07-01 09:46:00 +0100
Processing by ReportsController#create as YML
Parameters: {"report"=>"[FILTERED]"}
processing report for hostname.localnet
Failed to process report for hostname.localnet due to:undefined method `gsub!' for nil:NilClass
Rendered text template (0.0ms)
Completed 500 Internal Server Error in 271ms (Views: 0.5ms | ActiveRecord: 194.0ms)
Started POST "/fact_values/create?format=yml" for 10.0.0.150 at 2013-07-01 09:46:01 +0100
Processing by FactValuesController#create as YML
Parameters: {"facts"=>"[FILTERED]"}
Failed to save hostname.localnet: undefined method `gsub!' for nil:NilClass
Rendered text template (0.0ms)
Completed 200 OK in 185ms (Views: 0.7ms | ActiveRecord: 64.1ms)

All Fedora hosts throw this "undefined method `gsub!' for nil:NilClass".


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #2690: undefined method `gsub!' for nil:NilClass on fact importClosedJoseph Magen06/21/2013Actions
Actions #1

Updated by Daniel Piddock almost 11 years ago

Try that log snippet again:

Started POST "/reports/create?format=yml" for 10.0.0.150 at 2013-07-01 09:46:00 +0100 
Processing by ReportsController#create as YML
  Parameters: {"report"=>"[FILTERED]"}
processing report for hostname.localnet
Failed to process report for hostname.localnet due to:undefined method `gsub!' for nil:NilClass
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 271ms (Views: 0.5ms | ActiveRecord: 194.0ms)
Started POST "/fact_values/create?format=yml" for 10.0.0.150 at 2013-07-01 09:46:01 +0100
Processing by FactValuesController#create as YML
  Parameters: {"facts"=>"[FILTERED]"}
Failed to save hostname.localnet: undefined method `gsub!' for nil:NilClass
  Rendered text template (0.0ms)
Completed 200 OK in 185ms (Views: 0.7ms | ActiveRecord: 64.1ms)

Actions #2

Updated by Ohad Levy almost 11 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF