VxRail: NoMethodError: Undefined method `[]' for nil:NilClass when issuing vsan.whatif_host_failures command from RVC

Summary: NoMethodError: Undefined method `[]' for nil:NilClass when issuing vsan.whatif_host_failures command from RVC.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Issuing " vsan.whatif_host_failures" command via RVC.

In some specific environments, you may encounter an error message below when issuing "vsan.whatif_host_failures" command via RVC.
 
> vsan.whatif_host_failures . 
NoMethodError: undefined method `[]' for nil:NilClass 
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:2214:in `block (2 levels) in whatif_host_failures' 
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:2188:in `each' 
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:2188:in `map' 
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:2188:in `block in whatif_host_failures' 
/opt/vmware/rvc/lib/rvc/lib/vsangeneric.rb:803:in `_run_with_rev' 
/opt/vmware/rvc/lib/rvc/modules/vsan.rb:2133:in `whatif_host_failures' 
/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>'





 

Cause

This issue can be caused by an inconsistency between the DB and configuration.

Resolution

A solution exists for this issue, but intervention from Dell EMC technical support personnel is required. Contact the Dell EMC Customer Support Center or your service representative for technical assistance and quote this solution ID.

Affected Products

VxRail 460 and 470 Nodes, VxRail Appliance Series, VxRail D560, VxRail D560F, VxRail E460, VxRail E560, VxRail E560F

Products

VxRail Appliance Family, VxRail E560F, VxRail E560N, VxRail E660F, VxRail E660N, VxRail E665, VxRail E665F, VxRail E665N, VxRail G560, VxRail G560F, VxRail Gen2 Hardware, VxRail P570, VxRail P570F, VxRail P580N, VxRail P670F, VxRail P675F , VxRail P675N, VxRail S570, VxRail Software, VxRail V470, VxRail V570, VxRail V570F, VXRAIL V670F ...
Article Properties
Article Number: 000064493
Article Type: Solution
Last Modified: 30 Jul 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.