engine-setup fails with "duplicate key value violates unique constraint "network_attachments_network_id_key""

Solution Verified - Updated -

Issue

  • engine-setup is failing with "Failed to execute stage 'Misc configuration': Command '/usr/share/ovirt-engine/dbscripts/schema.sh' failed to execute" with error message in logs:
ERROR:  duplicate key value violates unique constraint "network_attachments_network_id_key"
FATAL: Cannot execute sql command: --file=/usr/share/ovirt-engine/dbscripts/upgrade/03_06_1460_add_network_attachment.sql

Environment

Red Hat Enterprise Virtualization (RHEV)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content