Script to Determining Subscription Capacity for VMware Cloud Foundation(VCF)and VMware vSphere Foundation(VVF) is failing error - "The vSAN capacity for cluster vSANCluster cannot be determined because of the stale PDL devices in the cluster.
search cancel

Script to Determining Subscription Capacity for VMware Cloud Foundation(VCF)and VMware vSphere Foundation(VVF) is failing error - "The vSAN capacity for cluster vSANCluster cannot be determined because of the stale PDL devices in the cluster.

book

Article ID: 388018

calendar_today

Updated On:

Products

VMware Cloud Foundation Subscription VMware Cloud Foundation VMware vSphere Foundation

Issue/Introduction

Script to Determining the Required Subscription Capacity for VMware Cloud Foundation (VCF) and VMware vSphere Foundation (VVF) is failing.

Script is from the Article ID: 313548 > Counting Cores for VMware Cloud Foundation and vSphere Foundation and TiBs for vSAN

 

Following error reported when the Power shell script is used:

The vSAN capacity for cluster vSANCluster cannot be determined because of the stale PDL devices in this cluster. Contact Global Support team for assistance.

Total Required VCF Compute Licenses:  xxx
Total Required vSAN Add-on Licenses: ERROR


However, there were no PDL devices or disconnected / failed disks in the vSAN cluster.

The power cli script for vSAN health check shows green.

Environment

ESXi 8.0.3.0 EP3

PowerCLI 13.3.0.24

PowerShell 7.4.6

Cause

Script was failing with PowerShell version 7.4.6.

Resolution

Upgrading PowerShell version from 7.4.0 to 7.5.0 makes the Script run successfully.