Error "Invalid Configuration for Device 0" on NSX-ALB (Avi)
search cancel

Error "Invalid Configuration for Device 0" on NSX-ALB (Avi)

book

Article ID: 319949

calendar_today

Updated On: 07-16-2025

Products

VMware Avi Load Balancer

Issue/Introduction

  • Service Engine deployment fails in a vCenter write access cloud.
  • VS placement fails on an existing Service Engine.
  • When you try to do the above tasks, there is the error "Invalid Configuration for Device 0" in the UI.

Cause

  • When deploying SEs on vSphere distributed port-groups or adding a new nic for VS placement, an API call is made from NSX-ALB (Avi) to vCenter to map the desired distributed port-group for the SEs using the MOID (Managed Object ID or moref) of the chosen network.
  • If the MOID value of that distributed pg differs from the key string value within the vCenter database, then an error occurs mapping that network presented as: "vNIC addition failure – invalid configuration for device ‘0’.
  • To verify if there is a mismatch in the vcdb, follow the steps below:
    1. SSH to vCenter
    2. /opt/vmware/vpostgres/current/bin/psql -d VCDB
    3. select id, dvportgroup_name, dvportgroup_key, dvportgroup_type from vpx_dvportgroup;
    4. Confirm id & dvportgroup_key match up for the number.
  id | dvportgroup_name | dvportgroup_key | dvportgroup_type
 ----+-------------------------+-----------------+------------------
  29 | Guest-Infra-Edge-A | dvportgroup-29 | earlyBinding
  30 | Overlay-Edge-A | dvportgroup-25 | earlyBinding <--------- mismatch
  28 | vDS-Edge-A-DVUplinks-23 | dvportgroup-28 | earlyBinding

Resolution

  • From the NSX-ALB side, there is a Feature Request filed to enhance the product to communicate with vCenter with the key string rather than the id, as it currently does.
  • Refer to RFE-3658 with your account team for questions on the roadmap and ETA.

Workaround:

  1. To fix this from the NSX-ALB side, create a new distributed pg which will create an entry in the vcdb with the same MOID and dvportgroup_key.
  2. In the SE or VS creation, refer to this newly created port-group.