Bug #37
closed
Failed to process report due to undefined method
Added by Carl Caum over 15 years ago.
Updated about 3 years ago.
Description
Everytime I get a report using the foreman reports tool on the puppetmaster, it fails to process the report. Specifically, I get this error for every host report recieved:
failed to process report for lvxentest01.lightningsource.com due to:undefined method `[]' for #<Puppet::Util::Metric:0x2aaaabdbea18>
Attached is the report.
Files
Additional Info
Foreman Version: latest stable (0.1-1)
Ruby Version: 1.8.5
OS: CentOS 5.3
I've narrowed down this issue to lines 55 and 56 in the app/models/report.rb file. However I don't see what the problem is. When these lines are removed, Foreman starts to successfully process MOST reports sent to it. However, I get different exceptions thrown when they are removed.
Carl Caum wrote:
I've narrowed down this issue to lines 55 and 56 in the app/models/report.rb file. However I don't see what the problem is. When these lines are removed, Foreman starts to successfully process MOST reports sent to it. However, I get different exceptions thrown when they are removed.
that is strange, I've imported your report and it went just fine.
which version of Puppet are you using?
- Status changed from New to Closed
Ugh, somehow that box was still running puppet version 0.24.5. I updated to 0.24.8 and everything's working fine.
- Pull request https://github.com/theforeman/hammer-cli-foreman-puppet/pull/39 added
Also available in: Atom
PDF