Internal Server Error - could not execute update query - ERROR: duplicate key value violates unique constraint "uq_lnet_scope_name"
Detail: Key (scope_type, scope_id, name)=(3, c441####-####-####-####--########90a2, <Network name>) already exists.
From VMware Cloud Director logs/opt/vmware/vcloud-director/logs/vcloud-container-info
, the following entries are seen:
2024-08-12 10:20:50,341 | INFO | task-service-activity-pool-557 | CalloutManagerImpl | No enabled endpoints for task ORG_VDC_NETWORK_UPDATE(com.vmware.vcloud.entity.task<task_id>). Skip pre-processing. | requestId=<request_id>,request=PUT https://admin01.dc1.private.cloud.it/cloudapi/1.0.0/orgVdcNetworks/urn:vcloud:network:b313####-####-####-####-########b151,requestTime=1723########,remoteAddress=##.##.#.#:##### userAgent=Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/2010...,accept=application/json;version 39.0.0-alpha vcd=a3a2####-####-####-####--########4be0,task=aa2c####-####-####-####--########6981 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:aa2c####-####-####-####--########6981)
Detail: Key (scope_type, scope_id, name)=(3, c441####-####-####-####--########90a2, <network name>) already exists.
VMware Cloud Director 10.x
This issue can occur when there is a old network entry present with the same scope id.
Contact technical support and note this Knowledge Article ID (374444) in the problem description. For more information, see How to Submit a Support Request