My Oracle Support Banner

OLVM Oracle RAC Database Template Import Fails With ERROR: duplicate key value violates unique constraint "pk_images" (Doc ID 2829966.1)

Last updated on DECEMBER 22, 2021

Applies to:

Linux OS - Version Oracle Linux 7.9 and later
Information in this document applies to any platform.

Symptoms


Importing the ORACLE database template fails with : }ERROR: duplicate key value violates unique constraint "pk_images"

On the engine system, the file /var/log/ovirt-engine/engine.log shows:


2021-12-01 16:20:42,467+03 ERROR [org.ovirt.engine.core.bll.storage.disk.image.AddImageFromScratchCommand] (EE-ManagedThreadFactory-engine-Thread-477) [XXXXXX-4c1
d-474c-98bc-YYYYYBBBBNN] Command 'org.ovirt.engine.core.bll.storage.disk.image.AddImageFromScratchCommand' failed: CallableStatementCallback; SQL [{call insertimag
e(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)}ERROR: duplicate key value violates unique constraint "pk_images" <======================================================================
Detail: Key (image_guid)=(908ceb7b-933c-48e9-a32b-29e3647f1091) already exists. <======================

Changes

 Importing template

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.