Why attaching storage domain is failing with "duplicate key" error

Solution In Progress - Updated -

Issue

  • Attaching a storage domain is failing with below error in the engine log.
2017-10-25 06:21:56,624 ERROR [org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] (org.ovirt.thread.pool-6-thread-9) [1598e81f] Command 'org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand' failed: CallableStatementCallback; SQL [{call insertunregistereddiskstovms(?, ?, ?, ?)}]; ERROR: duplicate key value violates unique constraint "idx_unregistered_disks_storage_to_vms_unique"
  • Two VMs OVF configuration in the OVF_STORE was pointing to same disk even though the disks are not shared.

Environment

  • Red Hat Virtualization 4.0

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