Add Disk day-2 action fails on SDRS clusters with error Cannot invoke "Map.entrySet()" because "unitStatusMap" is null
search cancel

Add Disk day-2 action fails on SDRS clusters with error Cannot invoke "Map.entrySet()" because "unitStatusMap" is null

book

Article ID: 391373

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • Day-2 Action ‘Add Disk’ doesn’t work correctly in vRA 8.18.1 on VM’s in a SDRS Cluster when the added disk on another SCSI Controller.
  • The behaviour is as follows:
    • VM on SDRS with only SCSI-Controller-0  FAILED
      VM on SDRS with SCSI-Controller-0 and SCSI-Controller-1 OK
      VM on VSAN with only SCSI-Controller-0 OK
      VM on VSAN with SCSI-Controller-0 and SCSI-Controller-1  OK
  • On a VM which uses SDRS and only has 1 SCSI controller available the 'Add Disk' action fails with:
    • ####-##-##T##:##:##.###Z WARN provisioning [host='#' thread='#' user='' org='' trace='' parent='' span=''] unknown.jul.logger.logWarning:### - Error while performing disk operation: Cannot invoke "java.util.Map.entrySet()" because "unitStatusMap" is null. for disk "http://#/#/resources/disks/#"
      ####-##-##T##:##:##.###Z WARN provisioning [host='#' thread='#' user='' org='' trace='' parent='' span=''] c.v.xenon.common.ServiceErrorResponse.create:## - message: Cannot invoke "java.util.Map.entrySet()" because "unitStatusMap" is null, statusCode: ###, serverErrorId: #: Caused by java.lang.NullPointerException: Cannot invoke "java.util.Map.entrySet()" because "unitStatusMap" is null
      

Environment

  • Aria Automation 8.18.1 (Unpatched - 24282366 -  and Patch 1 - 24411566)
  • vCenter Server 7.0.3x 

Cause

  • The issue occurs if the:

    •  

      User has a VM provisioned on SDRS enabled storage cluster.

    • User wants to perform AddDisk and provide the SCSI controller explicitly.

    • The provided SCSI controller does not even exist on the VM in vCenter.

Resolution

  • Fixed in upcoming 8.18.1 Patch 2
  • Also fixed for VCF 9.0