Error: "duplicate key value violates unique constraint "uq_lnet_scope_name"" when renaming an Org VDC network in VCD
search cancel

Error: "duplicate key value violates unique constraint "uq_lnet_scope_name"" when renaming an Org VDC network in VCD

book

Article ID: 376525

calendar_today

Updated On:

Products

VMware Cloud Director VMware Telco Cloud Platform

Issue/Introduction

  • When attempting to rename an Org VDC network, the operation fails with the following error:

    • ERROR: duplicate key value violates unique constraint "uq_lnet_scope_name"  

Environment

  • VCD 10.x
  • TCP: 3, 4.x, 4.0.1, 5.x, 5.0. 5.0.1, 5.0.2

Cause

  • The VCD UI and API prohibit the creation of multiple direct vApp networks within the same vApp.
  • This error occurs when third-party orchestration tools bypass this constraint via direct API operations, leading to database-level unique constraint violations during network renaming operations.

Resolution

Take a full backup or snapshot of the VCD database before performing any database-level modifications.

Open a support request with Broadcom Support to resolve the database inconsistency, as direct database interaction is required.