oVirt / ovirt-engine

The oVirt Engine virtualization manager
Other
519 stars 271 forks source link

Index "pk_vm_icon_defaults" is not a btree #839

Open jeffcpullen opened 1 year ago

jeffcpullen commented 1 year ago

Affected version 4.5.4-1

Describe the bug

Unable to run the engine-setup command with the error: index "pk_vm_icon_defaults" is not a btree

Failed to execute stage 'Setup validation': Failed checking Engine database: an exception occurred while validating the Engine database, index "pk_vm_icon_defaults" is not a btree

To reproduce

Not sure, may have been related to the bad postresql-jdbc package #322 that was installed to this system and then downgraded previously.

Expected behavior

Engine-setup completes as expected

Additional context

I'm not sure if this is a bug, or just a random data corruption issue. Putting this here for the next person because Google turned up nothing. Probably a one-off issue.

Running the following command fixed the issue and allowed engine-setup to complete.

/usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "reindex table vm_icon_defaults"