Licensing script in KB 313548 fails, Error: "The vSAN capacity for cluster cannot be determined because of the stale PDL devices in this cluster" or "InvalidOperation: Method invocation failed"
search cancel

Licensing script in KB 313548 fails, Error: "The vSAN capacity for cluster cannot be determined because of the stale PDL devices in this cluster" or "InvalidOperation: Method invocation failed"

book

Article ID: 400416

calendar_today

Updated On:

Products

VMware vSAN VMware vSAN 8.x VMware vCenter Server 8.0

Issue/Introduction

Getting the following errors when running the script attached to KB Counting Cores for VMware Cloud Foundation and vSphere Foundation and TiBs for vSAN

"The vSAN capacity cannot be determined because of possible stale PDL devices in this cluster"

or

InvalidOperation: Method invocation failed because [VMware.Vsan.Views.VsanVcClusterConfigSystem] does not contain a method named 'VsanClusterGetClaimedCapacity'.


Validated the vSAN health is green and all disks are present.

Environment

VMware vSAN 8.0 U3
VMware vCenter 8.0 U3

Cause

The script attached to KB Counting Cores for VMware Cloud Foundation and vSphere Foundation and TiBs for vSAN calls an API (VsanClusterGetClaimedCapacity) directly which does not exist in vSAN 8.0 U3.

Resolution

Use the updated script attached to this KB which was modified to remove the special handling for vCenter 8.0.3.

Attachments

FoundationCoreAndTiBUsage-modified36380101.psm1 get_app