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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.