Bug #2729
closedFedora 18 hosts do not update Properties: "undefined method `gsub!' for nil:NilClass" related?
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".
Updated by Daniel Piddock over 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)