Day 2 Remove Disk Action Fails with Disk Status AVAILABLE Error in Aria Automation
search cancel

Day 2 Remove Disk Action Fails with Disk Status AVAILABLE Error in Aria Automation

book

Article ID: 442906

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

Day 2 "Remove Disk" actions fail in Aria Automation. The action is rejected with an error stating the disk must be in an AVAILABLE status to be deleted.

The following error string is observed during the Day 2 operation in /services-logs/prelude/provisioning-service-app/file-logs/provisioning-service-app.log

c.v.xenon.common.ServiceErrorResponse.create:## - message: Only disk with status AVAILABLE can be deleted, as it is not attached to any VM., statusCode: 400, serverErrorId:######## Caused by java.lang.IllegalArgumentException: Only disk with status AVAILABLE can be deleted, as it is not attached to any VM.

Environment

Aria automation 8.18.1

Cause

A race condition occurs within the orchestration engine between the "detach disk" (UPDATE/PATCH) and "delete disk resource" (DELETE) operations. Due to a missing task dependency, these steps execute concurrently rather than sequentially. Concurrent task execution initiates the DELETE adapter call while simultaneously processing the Detach operation. Since the disk remains in an ATTACHED state at the exact moment the DELETE request reaches the vSphere DiskService, the deletion is rejected.

Resolution

Apply VMware Aria Automation 8.18.1 Patch 5. This patch resolves the race condition by establishing the correct task dependency, ensuring the disk detachment process fully completes and the status transitions to AVAILABLE before the deletion request is submitted.