Project

General

Profile

Bug #14096

Statistics page reports: Unknown string: "994.52 MiB"

Added by Rob Sanders almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Statistics
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

 | RuntimeError: Unknown string: "994.52 MiB"!
 | /usr/share/foreman/lib/core_extensions.rb:148:in `rescue in to_gb'
 | /usr/share/foreman/lib/core_extensions.rb:137:in `to_gb'
 | /usr/share/foreman/app/models/fact_value.rb:100:in `block in to_gb'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `map'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `map'
 | /usr/share/foreman/app/models/fact_value.rb:99:in `to_gb'
 | /usr/share/foreman/app/models/fact_value.rb:57:in `mem_average'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:94:in `public_send'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:94:in `block in method_missing'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation.rb:285:in `scoping'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:94:in `method_missing'
 | /usr/share/foreman/app/controllers/statistics_controller.rb:9:in `index'

Associated revisions

Revision b24feca2 (diff)
Added by Rob Sanders almost 4 years ago

fixes #14096 - handle MiB style memory units on statistics page

Revision 6d97be8e (diff)
Added by Rob Sanders almost 4 years ago

fixes #14096 - handle MiB style memory units on statistics page

(cherry picked from commit b24feca26d2f7b3f9bfb6a40680446ccebb3d44b)

History

#1 Updated by Dominic Cleal almost 4 years ago

  • Description updated (diff)
  • Category set to Statistics
  • Status changed from New to Ready For Testing
  • Assignee set to Rob Sanders
  • Pull request https://github.com/theforeman/foreman/pull/3292 added

#2 Updated by Rob Sanders almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 141

Also available in: Atom PDF