Instantiation of vAPP fails with "Invalid configuration for device '0'"
search cancel

Instantiation of vAPP fails with "Invalid configuration for device '0'"

book

Article ID: 436113

calendar_today

Updated On:

Products

VMware Cloud Director VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  1. The following error is observed in the task details:



  2. This error happened while attaching a disk to a VM as the datastore where the disk is stored is not available from the host where the VM is registered

    vcloud-container-info.log
    
    ####-##-####:##:##,### | ERROR    | storage-fabric-activity-pool-#### | AttachDiskActivity             | [Activity Execution] Uncaught Exception during Activity execution. Recent phase: com.vmware.vcloud.fabric.storage.disk.impl.AttachDiskActivity$AttachDiskToVmPhase@#########- Handle: urn:uuid:######-####-####-aa6e-#############, Current Phase: AttachDiskActivity$AttachDiskToVmPhase | requestId=#########-####-####-####-#########,request=POST https://#############.####-####.######.#######.###/api/vApp/vm-#########-####-####-####-########/disk/action/attach,requestTime=#########,remoteAddress=##.###.###.###:#####,userAgent=Apache-HttpClient/#.#.## (Java/##.#.#),accept=application/*+xml;version ##.# vcd=#######-####-####-####-#########,task=##########-####-####-####-############## activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:#######-######-#####-####-###########) activity=(com.vmware.vcloud.fabric.storage.disk.impl.AttachDiskActivity,urn:uuid:############-####-####-####-###########)
    java.util.concurrent.ExecutionException: com.vmware.ssdc.library.exceptions.VimInvalidDeviceSpecException: The operation could not be performed because the device spec is invalid. Invalid configuration for device '0'.
    vCenter Server task (moref: task-########) failed in vCenter Server '##############' (##########-####-####-####-###########).
    ==============
    ******
    ******
    ==============
    Caused by: (vim.fault.InvalidDeviceSpec) {
       faultCause = null,
       faultMessage = (vmodl.LocalizableMessage) [
          (vmodl.LocalizableMessage) {
             dynamicType = null,
             dynamicProperty = null,
             key = com.vmware.vim.vpxd.vmprov.inaccessibleUrlPath,
             arg = null,
             message = Provided backing file is not accessible from host.

Environment

10.3.3.22271115

7.0 U3q

7.0 U2w

Cause

The datastore where the virtual machine disk resides is inaccessible or maintains a stale inventory mapping on the specific ESXi host where the virtual machine is registered.

Resolution

To resolve this issue, force an inventory and storage topology resynchronization across the ESXi host, vCenter Server, and VMware Cloud Director:

  1. Log in to the affected ESXi host via SSH and restart the host daemon:

    # /etc/init.d/hostd restart


  2. Log in to the vCenter Server Appliance via SSH and restart the vCenter Server service:

    # service-control --restart vpxd


  3. Log in to the VMware Cloud Director Provider Portal.

  4. Navigate to Infrastructure Resources > vCenter Server Instances.

  5. Select the affected vCenter Server and click Reconnect.

  6. Retry the vApp instantiation workflow.

Additional Information

Instantiation of vAPP fails with "Invalid configuration for device '0'."