'Disk with external id is attached and cannot be extended' error when resizing First Class Disk from vRealize Automation on vCenter version 7.0.3 or higher
book
Article ID: 312228
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
Symptoms:
The same resize action completes successfully when performed directly on the vCenter using PowerCLI.
The following error is generated when trying to extend a First Class Disk while attached to a machine:
Cause: [: Disk with external id com.vmware.vim25.ID@413557ea is attached and cannot be extended]
The provisioning service logfile /services-logs/prelude/provisioning-service-app/file-logs/provisioning-service-app.log contain messages similar to:
2022-07-06T14:19:13.231Z ERROR provisioning [host='provisioning-service-app-75474996f-9b8nz' thread='vsphere-io-6' user='' org='' trace='' parent='' span=''] c.v.p.c.m.a.v.VSphereDiskResizeService.log:454 - [8282/provisioning/vsphere/disk-resize-adapter] java.lang.IllegalStateException: Disk with external id com.vmware.vim25.ID@413557ea is attached and cannot be extended 2022-07-06T14:19:13.231Z WARN provisioning [host='provisioning-service-app-75474996f-9b8nz' thread='vsphere-io-6' user='' org='' trace='' parent='' span=''] c.v.xenon.common.ServiceErrorResponse.create:85 - message: Resizing the disk failed. Cause: [java.lang.IllegalStateException: Disk with external id com.vmware.vim25.ID@413557ea is attached and cannot be extended], statusCode: 400, serverErrorId: 9465xxxx-xxxx-xxxx-xxxx-xxxxxxxx861c: Caused by java.lang.IllegalStateException: Resizing the disk failed. Cause: [java.lang.IllegalStateException: Disk with external id com.vmware.vim25.ID@413557ea is attached and cannot be extended]
Environment
VMware vRealize Automation 8.x
Cause
The issue is caused by the fail fast mechanism present in vRealize Automation that checks if the disk is attached and immediately fails the request.
Resolution
The issue is resolved in the vRealize Automation 8.10 release
Additional Information
Impact/Risks: Resize of first class disks fails when attached to machines.