VCF Inventory Sync fails with 'Failed to find default gateway for device vmk#'
search cancel

VCF Inventory Sync fails with 'Failed to find default gateway for device vmk#'

book

Article ID: 440211

calendar_today

Updated On:

Products

VMware Cloud Foundation VMware SDDC Manager / VCF Installer

Issue/Introduction

  • VMware Cloud Foundation (VCF) Inventory Sync fails.
  • The following error is observed in the /var/log/vmware/vcf/domainmanager/domainmanager.log on the SDDC Manager: 
    [vcf_dm,########-####-####-####-###########,####] [c.v.v.v.s.b.u.BrownfieldImportProgressReportService,dm-exec-#]  Deserialized progress report of the task with id ########-####-####-####-###########: {"process_id":"########-####-####-####-###########","status":"completed with error","progress":{},"total_steps":4,"errors":[{"error_code":"OPERATION_ISSUE","message":"Result status code from set datasource: 400","severity":"ERROR"},{"error_code":"OPERATION_ISSUE","message":"Failed to find default gateway for device vmk1 in host ESX.EXAMPLE.COM","severity":"WARNING"}

Environment

VMware Cloud Foundation 9.x

Cause

  • The VMkernel adapter vmk# on the specified ESXi host does not have a default gateway configured.

Resolution

  • To resolve this issue, manually configure the default gateway for the vmk1 adapter on the affected host:
    1. Log in to the vCenter Server and select the ESXi host identified in the error message from the inventory.
    2. Click the Configure tab. Under the Networking section, select VMkernel adapters.
    3. Select the vmk# adapter and click the Edit button.
    4. In the Properties window, select IPv4 settings.
    5. Select the checkbox Override default gateway for this adapter and enter the correct IP address for the gateway.
    6. Click OK to apply the changes.
    7. Restart the VCF Inventory Sync process from the SDDC Manager UI.