Scale-out operation fails with "com.vmware.ssdc.library.exceptions.MediaNotAccessibleException: Cannot insert Media(...)because the VM's host(...)doesn't have access to the Media's datastore."
search cancel

Scale-out operation fails with "com.vmware.ssdc.library.exceptions.MediaNotAccessibleException: Cannot insert Media(...)because the VM's host(...)doesn't have access to the Media's datastore."

book

Article ID: 423076

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

 

  • VNF scale-out fails during the "Insert Media" phase.

  • Error: com.vmware.ssdc.library.exceptions.MediaNotAccessibleException: Cannot insert Media... because the VM's host... doesn't have access to the Media's datastore.

  • Search for the Media/iso file into /opt/vmware/vcloud-director/logs/vcloud-container-debug.log:
    request=POST https://<VCD_FQDN>/api/catalog/<CATALOG_ID>/action/upload

    • While browsing to the Tenant's portal, select 'catalogs' and by looking at the url, confirm that this catalog is different from the one where the vAPP template is
    • Confirm that the storage policy backing up this catalog is using different datastores
    • Confirm that the hosts where VMs are do not have access to this Datastore(s)
  • This behavior is expected

 

Environment

10.x

Cause

The ISO media is stored in a Catalog backed by a storage policy that is not presented/mounted to the ESXi hosts where the Virtual Machines are running. VCD requires the host to have direct access to the datastore containing the ISO to perform a mount operation.

Resolution

 

  • Identify the storage policy used by the Catalog by checking the Catalog settings in the VCD UI.

  • Identify the storage policy used by the failing VM/vApp.

  • Navigate to vSphere Client and verify if the datastores in the Catalog's storage policy are mounted to the ESXi hosts in the compute cluster.

  • Action: If they are not mounted, either:

    • Present the datastores to the compute cluster.

    • Change the Catalog's storage policy to one that is already shared with the compute cluster.

    • Re-upload the Media to a Catalog that resides on shared storage accessible to all Org VDCs.

 

Additional Information

If the aim is to use a Global Catalog to save important media that can be shared across different Organizations, please see how to Share a Catalog in the VMware Cloud Director Tenant Portal