Description of problem: [----] I, [2017-04-10T11:10:52.339494 #7658:e5513c] INFO -- : MIQ(ChargebackContainerImage.build_results_for_report_chargeback) Calculating chargeback costs... [----] I, [2017-04-10T11:10:57.361027 #7658:e5513c] INFO -- : MIQ(Chargeback::ConsumptionHistory.for_report) Found 2513 records for time range [2017-04-09 00:00:00 UTC, 2017-04-09 23:59:59 UTC] [----] E, [2017-04-10T11:10:59.549572 #7658:e5513c] ERROR -- : [NoMethodError]: undefined method `base_model' for NilClass:Class Method:[rescue in _async_generate_table] [----] E, [2017-04-10T11:10:59.549872 #7658:e5513c] ERROR -- : /var/www/miq/vmdb/app/models/mixins/assignment_mixin.rb:146:in `block in get_assigned_for_target' /var/www/miq/vmdb/app/models/mixins/assignment_mixin.rb:146:in `collect' /var/www/miq/vmdb/app/models/mixins/assignment_mixin.rb:146:in `get_assigned_for_target' /var/www/miq/vmdb/app/models/chargeback/rates_cache.rb:13:in `rates' /var/www/miq/vmdb/app/models/chargeback/rates_cache.rb:7:in `get' /var/www/miq/vmdb/app/models/chargeback.rb:9:in `block in build_results_for_report_chargeback' /var/www/miq/vmdb/app/models/chargeback/consumption_history.rb:31:in `block (2 levels) in for_report' /var/www/miq/vmdb/app/models/chargeback/consumption_history.rb:27:in `each' /var/www/miq/vmdb/app/models/chargeback/consumption_history.rb:27:in `block in for_report' /var/www/miq/vmdb/app/models/chargeback/consumption_history.rb:13:in `each' /var/www/miq/vmdb/app/models/chargeback/consumption_history.rb:13:in `each_cons' /var/www/miq/vmdb/app/models/chargeback/consumption_history.rb:13:in `for_report' /var/www/miq/vmdb/app/models/chargeback.rb:8:in `build_results_for_report_chargeback' /var/www/miq/vmdb/app/models/chargeback_container_image.rb:55:in `build_results_for_report_ChargebackContainerImage' /var/www/miq/vmdb/app/models/miq_report/generator.rb:198:in `_generate_table' /var/www/miq/vmdb/app/models/miq_report/generator.rb:172:in `block in generate_table' /var/www/miq/vmdb/app/models/user.rb:243:in `with_user' /var/www/miq/vmdb/app/models/miq_report/generator.rb:172:in `generate_table' /var/www/miq/vmdb/app/models/miq_report/generator/async.rb:96:in `_a Version-Release number of selected component (if applicable): 5.7.1.3 How reproducible: Encountered by customer.
PR https://github.com/ManageIQ/manageiq/pull/14713
Please describe steps to reproduce.
Just queuing a chargeback for images report?
Yes, it should be enough to generate a chargeback report for container images.
I tested this under 5.9.0.19, the problem is not solved, see exactly the same error.
Gilad, Can you provide access to the environment where you are still seeing this bug? Also, let me know which report to run. I created a chargeback report on a 5.9.0.19 appliance and it successfully generated. I'll need to access your env to see what's different. an export of your DB would also work.
Yuri, We do not have a 5.9.3. environment. However, I checked with 5.9.2.4 and I was able to generate the report successfully. No error was seen in the evm.log