Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-36462

'undefined method `include?' for nil:NilClass' on listing nvme controllers

    • None
    • None
    • None
    • None
    • Yes

      Description of problem:

      6.16 has introduced the support of nvme controllers for Vmware. It seems to introduce a regression as one of the customers hit below error:

      2025-07-31T18:23:48 [I|app|373623dc] Started POST "/hosts/compute_resource_selected" for 10.XX.XX.202 at 2025-07-31 18:23:48 -0400
      2025-07-31T18:23:48 [I|app|373623dc] Processing by HostsController#compute_resource_selected as */*
      2025-07-31T18:23:48 [I|app|373623dc]   Parameters: {"authenticity_token"=>"vjY4nQtqpAhvZDOgkKDwbu5mzZVLDEwF6ZEZO3hkrWwd0ijabku7SHo7nd0wNc1RD0kt9npuVUrorg3md4yjgg", "host"=>{"name"=>"ttnrh810test", "organization_id"=>"1", "location_id"=>"2", "hostgroup_id"=>"67", "compute_profile_id"=>"1", "content_facet_attributes"=>{"content_source_id"=>"", "lifecycle_environment_id"=>"", "content_view_id"=>""}, "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "identifier"=>"", "name"=>"ttnrh810test", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"dvportgroup-228995"}}}, "architecture_id"=>"", "operatingsystem_id"=>"", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"27-Users", "enabled"=>"1", "model_id"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]"}
      2025-07-31T18:23:48 [W|app|373623dc] Failed to render compute resource template
      2025-07-31T18:23:48 [I|app|373623dc] Backtrace for 'Failed to render compute resource template' error (ActionView::Template::Error): undefined method `include?' for nil:NilClass
       373623dc | /usr/share/gems/gems/fog-vsphere-3.7.0/lib/fog/vsphere/requests/compute/get_virtual_machine.rb:40:in `get_vm_by_name'
       373623dc | /usr/share/gems/gems/fog-vsphere-3.7.0/lib/fog/vsphere/requests/compute/get_virtual_machine.rb:25:in `block in get_vm_ref'
       373623dc | /usr/share/gems/gems/fog-vsphere-3.7.0/lib/fog/vsphere/requests/compute/get_virtual_machine.rb:25:in `map'
       373623dc | /usr/share/gems/gems/fog-vsphere-3.7.0/lib/fog/vsphere/requests/compute/get_virtual_machine.rb:25:in `get_vm_ref'
       373623dc | /usr/share/gems/gems/fog-vsphere-3.7.0/lib/fog/vsphere/requests/compute/list_vm_nvme_controllers.rb:12:in `list_vm_nvme_controllers_raw'
       373623dc | /usr/share/gems/gems/fog-vsphere-3.7.0/lib/fog/vsphere/requests/compute/list_vm_nvme_controllers.rb:6:in `list_vm_nvme_controllers'
       373623dc | /usr/share/gems/gems/fog-vsphere-3.7.0/lib/fog/vsphere/models/compute/server.rb:297:in `nvme_controllers'
       373623dc | /usr/share/foreman/app/views/compute_resources_vms/form/vmware/_base.html.erb:64:in `_app_views_compute_resources_vms_form_vmware__base_html_erb__4072592632394974606_956480'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `public_send'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:247:in `_run'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:154:in `block in render'
       373623dc | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:205:in `instrument'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:345:in `instrument_render_template'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/template.rb:152:in `render'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
       373623dc | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `block in instrument'
       373623dc | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
       373623dc | /usr/share/gems/gems/activesupport-6.1.7.8/lib/active_support/notifications.rb:203:in `instrument'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/partial_renderer.rb:271:in `render'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/renderer/renderer.rb:22:in `render'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:38:in `block in render'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/base.rb:273:in `in_rendering_context'
       373623dc | /usr/share/gems/gems/actionview-6.1.7.8/lib/action_view/helpers/rendering_helper.rb:34:in `render'
       373623dc | /usr/share/foreman/app/views/hosts/_compute_detail.html.erb:1:in `_app_views_hosts__compute_detail_html_erb__691133664008243253_956460' 

      How reproducible:

      On the customer's environment

      Is this issue a regression from an earlier version:

      yes

      Steps to Reproduce:

      1. set up a Vmware compute resource

      2. Click on the "Virtual Machines" tab

      Actual behavior:
      undefined method `include?' for nil:NilClass
      Expected behavior:

      no error

      Business Impact / Additional info:

       

              rhn-engineering-lstejska Leos Stejskal
              rhn-support-mattj Matt JIA
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: