Adding hard disks fails with "java.lang.NumberFormatException" during VCDA test failover
search cancel

Adding hard disks fails with "java.lang.NumberFormatException" during VCDA test failover

book

Article ID: 443652

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Adding a hard disk to a virtual machine (VM) within VMware Cloud Director Availability (VCDA) fails. The VM is in "Test Failover" mode.
  • The operation results in a Java input string error. The following stack trace can be observed in the VMware Cloud Director logs:

    [ ERROR    | storage-fabric-activity-pool-2755 | ReconfigureStoredVmActivity    | [Activity Execution] Uncaught Exception during Activity execution. Recent phase: com.vmware.vcloud.fabric.storage.storedVm.impl.ReconfigureStoredVmActivity$PrepareToReconfigurePhase@9c675c8 - Handle: urn:uuid:<UUID>, Current Phase: ReconfigureStoredVmActivity$PrepareToReconfigurePhase | requestId=4fe6484c-0d11-43c6-9b00-29b8bb8a0ab1,request=POST https://<REDACTED_HOSTNAMES>/api/vApp/vm-<UUID>/action/reconfigureVm,requestTime=1779245077711,remoteAddress=<REDACTED_IPS>:5277,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/*+xml;version 40.0.0-alpha vcd=932eeeec-ac78-4d38-88b5-6c1b32acc611,task=7083eba8-d282-46e3-87dd-cf89c428f6a3 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:7083eba8-d282-46e3-87dd-cf89c428f6a3) activity=(com.vmware.vcloud.fabric.storage.storedVm.impl.ReconfigureStoredVmActivity,urn:uuid:<UUID>)
    java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For input string: ""]

Environment

VMware Cloud Director 10.x
VMware Cloud Director Availability 4.7.2

Cause

Adding hard disks to a replication-targeted VM in testFailoverMode or ReplicationMode is intentionally disabled in VMware Cloud Director to mitigate a known VCDA engine defect and prevent state inconsistencies. Cloud Director actively blocks the action to attach new disks while the VM entity is flagged in TEST_FAILOVER_MODE.

Resolution

The hard disk can be attached to the VM following below steps:

  1. Complete the active "Test Failover" exercise in VMware Cloud Director Availability.
  2. Transition the target VM out of testFailoverMode.
  3. Perform the required hardware modifications or add the hard disk to the VM.