Bug #37
closedFailed to process report due to undefined method
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
Updated by Carl Caum over 15 years ago
Additional Info
Foreman Version: latest stable (0.1-1)
Ruby Version: 1.8.5
OS: CentOS 5.3
Updated by Carl Caum over 15 years ago
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.
Updated by Ohad Levy over 15 years ago
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?
Updated by Carl Caum over 15 years ago
- 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.
Updated by The Foreman Bot about 3 years ago
- Pull request https://github.com/theforeman/hammer-cli-foreman-puppet/pull/39 added