Error reconfiguring VM


#1

Capablanca 2 with Vmware Vsphere 6
I am trying to reconfigure memory and cpu of a VM, and with some VMs works but with others don’t work, getting “Unexpected error encountered” and “comparison of NilClass with 16 failed [vm_infra/x_button]”.
I can’t figure the reason, can you help me?

These is the production.log:

[----] F, [2016-06-08T17:48:36.018966 #2664:e3998c] FATAL – : Error caught: [ArgumentError] comparison of NilClass with 16 failed
/var/www/miq/vmdb/app/models/manageiq/providers/vmware/infra_manager/vm.rb:41:in each' /var/www/miq/vmdb/app/models/manageiq/providers/vmware/infra_manager/vm.rb:41:inmin’
/var/www/miq/vmdb/app/models/manageiq/providers/vmware/infra_manager/vm.rb:41:in max_total_vcpus' /var/www/miq/vmdb/app/models/manageiq/providers/vmware/infra_manager/vm.rb:62:inmax_vcpus’
/var/www/miq/vmdb/app/models/vm_reconfigure_request.rb:26:in block in request_limits' /var/www/miq/vmdb/app/models/vm_reconfigure_request.rb:24:ineach’
/var/www/miq/vmdb/app/models/vm_reconfigure_request.rb:24:in request_limits' /var/www/miq/vmdb/app/controllers/application_controller/ci_processing.rb:1091:inreconfigure_build_screen’
/var/www/miq/vmdb/app/controllers/application_controller/ci_processing.rb:350:in reconfigure' /var/www/miq/vmdb/app/controllers/application_controller/ci_processing.rb:1041:inreconfigurevms’
/var/www/miq/vmdb/app/controllers/application_controller/explorer.rb:107:in x_button' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/implicit_render.rb:4:insend_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/abstract_controller/base.rb:198:in process_action' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:10:inprocess_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/abstract_controller/callbacks.rb:20:in block in process_action' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:117:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:117:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:555:inblock (2 levels) in compile’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:505:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:505:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:92:in __run_callbacks__' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:778:in_run_process_action_callbacks’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:81:in run_callbacks' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/abstract_controller/callbacks.rb:19:inprocess_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/rescue.rb:29:in process_action' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:32:inblock in process_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in block in instrument' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications/instrumenter.rb:20:ininstrument’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in instrument' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:30:inprocess_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/params_wrapper.rb:250:in process_action' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activerecord-4.2.5/lib/active_record/railties/controller_runtime.rb:18:inprocess_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/abstract_controller/base.rb:137:in process' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionview-4.2.5/lib/action_view/rendering.rb:30:inprocess’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal.rb:196:in dispatch' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/rack_delegation.rb:13:indispatch’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal.rb:237:in block in action' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:76:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:76:in dispatch' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:45:inserve’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:43:in block in serve' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:30:ineach’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:30:in serve' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:817:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/params_parser.rb:27:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/flash.rb:260:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:incontext’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/cookies.rb:560:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activerecord-4.2.5/lib/active_record/query_cache.rb:36:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/callbacks.rb:29:in block in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/actionpack-4.2.5/lib/action_controller/metal/request_forgery_protection.rb:204:inverify_authenticity_token’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:432:in block in make_lambda' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:145:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:145:in block in halting_and_conditional' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:504:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:504:in block in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:504:ineach’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:504:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:92:inrun_callbacks


#2

My guess is that you have a VM configured with hardware version 11 which was resolved with the following PR.

This fix is available upstream as well as the recent Darga release.