Description of problem: When the appliance runs low on memory, the worker killer is invoked. The following error is raised: [NoMethodError]: undefined method `sort!' for #<MiqAutomateWorker::ActiveRecord_Relation:0x0000000ca46ff8> Method:[rescue in monitor] /gems/ruby-2.0.0-p598/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:136:in `method_missing' /gems/ruby-2.0.0-p598/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:99:in `method_missing' /app/models/miq_server/worker_management/monitor.rb:110:in `block in do_system_limit_exceeded' /app/models/miq_server/worker_management/monitor.rb:101:in `each' /app/models/miq_server/worker_management/monitor.rb:101:in `do_system_limit_exceeded' Version-Release number of selected component (if applicable): 5.5.1 How reproducible: Always Steps to Reproduce: 1. Fill up the system with worker 2. Wait for memory to run out 3. See error in log Actual results: Boom Expected results: The worker killer should kill some workers to reclaim memory, and log an appropriate error message when it does so. Additional info: Fixed in upstream PR https://github.com/ManageIQ/manageiq/pull/5916
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1348