Symptoms:
1. Inventory sync keeps failing and VC disconnection keeps happening with inventory thread. As a result, inventory stops getting updated
2. vsm logs on NSX manager have the following error:
WARN ViInventoryThread SqlExceptionHelper:129 - SQL Error: 0, SQLState: 23505
ERROR ViInventoryThread SqlExceptionHelper:131 - ERROR: duplicate key value violates unique constraint "domain_object_relationships_pkey"
Detail: Key (source_id, target_id, relationship)=(dvportgroup-xxxxxx, <vnic id>, dependent_dependency) already exists.