VCD tenant portal hangs during vApp creation
search cancel

VCD tenant portal hangs during vApp creation

book

Article ID: 433630

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • VMware Cloud Director (VCD). The tenant portal wizard hangs on the second stage (VM selection) when attempting to create a new vApp from a catalog template.
  • Developer Tools reveal no API failures during the wizard execution.
  • The Provider portal displays a failed vCenter synchronization task with a future timestamp, incorrectly citing an expired vCenter Server certificate.
  • Attempting to generate a dummy task from the Provider portal yields no new entries in the Recent Tasks pane.
  • A manual resynchronization of the vCenter Server shows a status of "Connected" but fails to generate a corresponding synchronization job.

Environment

10.x

Cause

Corrupted or stuck job records in the VCD database blocked the task scheduler, preventing accurate vCenter Server inventory synchronization.

This resulted in an orphaned vApp template record within VCD that no longer possessed a valid backing virtual machine object in the vCenter Server inventory (missing "name in vSphere" value).

Resolution

 

  1. SSH into the primary VMware Cloud Director cell as the root user.
  2. Switch to the postgres user and access the embedded vcloud database by executing the following command: 
    sudo -i -u postgres /opt/vmware/vpostgres/current/bin/psql -d vcloud
  3. Clear the stale entries from the task and jobs tables by executing the following queries inside the database: 

    delete from task; 
    delete from jobs;
  4. Log in to the VCD Provider portal.

  5. Execute a manual reconnect and resynchronization of the attached vCenter Server.

  6. Reimport the required vApp template into the VCD catalog to generate a valid vSphere object link and OVF descriptor.