Error: "nil:NilClass" while running RVC command "vsan.obj_status_report -t ."
search cancel

Error: "nil:NilClass" while running RVC command "vsan.obj_status_report -t ."

book

Article ID: 394553

calendar_today

Updated On: 06-09-2025

Products

VMware vSAN VMware vCenter Server

Issue/Introduction

  • This article serves to provide guidance for "nil:NilClass" errors thrown from certain RVC commands in a vCenter/vSAN and VxRail environment.
  • This issue can be replicated by performing the following steps:
    1.    Run rvc localhost when SSH'd into the vCenter Server as root.
    2.    Run cd /localhost .
    3.    Type "cd " then hit the tab key to autocomplete the vCenter Server's datacenter name
    4.    Type "computers" then hit the tab key again to autocomplete the primary vsan cluster, then hit the enter key
    5.    There should now be a visible rvc prompt within the vSAN cluster's directory.
    6.    Run the object health report by running vsan.obj_status_report -t .   .

 

Example run:

/localhost/<vCenterDatacenterNameDirectory>/computers/<clusterName>> vsan.obj_status_report -t .
2025-03-28 11:51:21 -0500: Querying all VMs on vSAN ...
2025-03-28 11:51:23 -0500: Querying DOM_OBJECT in the system from host 1 ...
2025-03-28 11:51:23 -0500: Querying DOM_OBJECT in the system from host 2 ...
2025-03-28 11:51:23 -0500: Querying DOM_OBJECT in the system from host 3 ...

2025-03-28 11:51:27 -0500: Querying all disks in the system from host 1 ...
2025-03-28 11:51:27 -0500: Querying LSOM_OBJECT in the system from host 1 ...
2025-03-28 11:51:27 -0500: Querying LSOM_OBJECT in the system from host 2 ...
2025-03-28 11:51:28 -0500: Querying LSOM_OBJECT in the system from host 3 ...
2025-03-28 11:51:31 -0500: Querying all object versions in the system ...


/opt/vmware/rvc/lib/rvc/lib/vsanupgrade.rb:1052: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
2025-03-28 11:51:34 -0500: Got all the info, computing table ...
NoMethodError: undefined method `vmPathName' for nil:NilClass                       


/opt/vmware/rvc/lib/rvc/modules/vsan.rb:1143:in `_get_vm_obj_uuids'
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:1128:in `block in _compute_vm_to_obj_map'
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:1127:in `each'
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:1127:in `_compute_vm_to_obj_map'
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:1033:in `_compute_vm_to_obj_map'
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:4270:in `block in obj_status_report'
/opt/vmware/rvc/lib/rvc/lib/vsangeneric.rb:947:in `_run_with_rev'
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:4192:in `obj_status_report'
/opt/vmware/rvc/lib/rvc/command.rb:42:in `invoke'
/opt/vmware/rvc/lib/rvc/shell.rb:127:in `eval_command'
/opt/vmware/rvc/lib/rvc/shell.rb:73:in `eval_input'
/opt/vmware/rvc/bin/rvc:178:in `<main>'

Environment

  • VMware vSAN
  • VMware vCenter Server
  • Dell VxRail

Cause

  • This error occurs because there is some invalid vSAN object data that can't be read properly by the vsan.obj_status_report call.
  • This can happen when there are inconsistencies between the databases and the configuration.

Resolution

Contact Dell VxRail support for technical assistance in resolving these potential inconsistencies.

Additional Information