Auto Import of VMs is not occurring in vCloud Director
search cancel

Auto Import of VMs is not occurring in vCloud Director

book

Article ID: 320541

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • When running the command:
/opt/vmware/vcloud-director/bin/cell-management-tool debug-auto-import --org  {Org Name}
You get the following response:
The Discovery Job is not running
  • In /opt/vmware/vcloud-director/logs/vcloud-container-debug.log you see the following entries:
vcloud-container-debug.log.6:2018-07-06 18:18:20,867 | DEBUG | Spring Context: com.vmware.vcloud.backend-core | PeriodicServerGroupJobManager | Registering job com.vmware.vcloud.activities.vcresiliency.VmDiscoveryBackgroundJob for startup at later time. |
vcloud-container-debug.log.6:2018-07-06 18:18:51,259 | DEBUG | auto-pool-Periodic Job Manager-4-thread-1 | PeriodicServerGroupJobManager | Submitting job com.vmware.vcloud.activities.vcresiliency.VmDiscoveryBackgroundJob for execution. |
vcloud-container-debug.log.6:2018-07-06 18:18:51,260 | DEBUG | auto-pool-Periodic Job Manager-4-thread-1 | VmDiscoveryBackgroundJob | Scheduling VmDiscoveryBackgroundActivity with delay between submission value of 180 seconds |
vcloud-container-debug.log.6:2018-07-06 18:18:51,320 | DEBUG | auto-pool-Periodic Job Manager-4-thread-1 | VmDiscoveryBackgroundJob | Completed scheduling activity(com.vmware.vcloud.common.activity.scheduled.JobSchedulingActivity,urn:uuid:UUID)
|
 
 


Environment

VMware Cloud Director for Service Provider 9.5.x
VMware Cloud Director for Service Provider 9.7.x

Cause

This issue occurs because the Scheduled Activity responsible for Auto Import is not running on any of the vCloud Director Cells.

Resolution

1. Create backup of database
2. Stop the vCloud Director services on the cell
service vmware-vcd stop;
3. Run the following query in the database:
delete from scheduled_activity_jobs;
4. Start the vCloud Director services on the cell
service vmware-vcd start;