Issue #3024 has been updated by Rein Henrichs. Status changed from Unreviewed to Investigating
---------------------------------------- Bug #3024: Reports in db marked as NOT successful (i.e success=0 in reports table) results in a TemplateError http://projects.reductivelabs.com/issues/3024 Author: John Axel Eriksson Status: Investigating Priority: Normal Assigned to: Category: Target version: Keywords: TemplateError not successful report Internal Server Error import report Branch: I get this error if there are any not successful runs in reports: ActionView::TemplateError (undefined method `with_indifferent_access' for nil:NilClass) on line #19 of app/views/reports/index.html.haml: 16: - @reports.each do |report| 17: %tr 18: %td 19: %span.status{:class => report.status}= link_to report.time.to_s(:short), report 20: %td= link_to_if report.node, report.host, report.node 21: %td= report.metrics[:resources][:total] 22: %td= report.metrics[:resources][:failed] app/models/report.rb:25:in `metrics' app/models/report.rb:17:in `succeeded?' app/models/report.rb:21:in `status' app/views/reports/index.html.haml:19:in `_run_haml_app47views47reports47index46html46haml' app/views/reports/index.html.haml:16:in `each' app/views/reports/index.html.haml:16:in `_run_haml_app47views47reports47index46html46haml' haml (2.2.2) [v] lib/haml/helpers/action_view_mods.rb:13:in `render' haml (2.2.2) [v] lib/haml/helpers/action_view_mods.rb:13:in `render' haml (2.2.2) [v] rails/./lib/sass/plugin/rails.rb:19:in `process' /usr/lib/ruby/1.8/mongrel.rb:159:in `process_client' /usr/lib/ruby/1.8/mongrel.rb:158:in `each' /usr/lib/ruby/1.8/mongrel.rb:158:in `process_client' /usr/lib/ruby/1.8/mongrel.rb:285:in `run' /usr/lib/ruby/1.8/mongrel.rb:285:in `initialize' /usr/lib/ruby/1.8/mongrel.rb:285:in `new' /usr/lib/ruby/1.8/mongrel.rb:285:in `run' /usr/lib/ruby/1.8/mongrel.rb:268:in `initialize' /usr/lib/ruby/1.8/mongrel.rb:268:in `new' /usr/lib/ruby/1.8/mongrel.rb:268:in `run' Rendering /var/www/rails/puppet.insane.se/current/public/500.html (500 Internal Server Error) This is after importing reports. If I remove the reports with success=0, the problem disappears. I'm assuming this has something to do with what is in the reports.report column. I'm attaching a report which I got out of the report column of a row for a failed report. This would generate a TemplateError so I couldnt access that node at all basically in puppet-dashboard. The node is an internal dev server and the report has been cleaned from identifying information (like domain names etc). I'm not sure, but it sure looks as if it isnt really ONE report but many in that file - dont know if thats as it should be or not, perhaps something is buggy in the importer? -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
