I am using ovirt 4.0.3, and have a cluster that no longer has any hosts attached.   On remove, the operation fails.  The engine log shows this error. 

 ERROR: new row for relation "vm_static" violates check constraint "vm_static_cpu_profile_not_null"

I tried to remove the CPU profile from the cluster, but receive this warning:

2016-09-14 12:34:29,540 WARN  [org.ovirt.engine.core.bll.profiles.RemoveCpuProfileCommand] (default task-47) [] Validation of action 'RemoveCpuProfile' failed for user admin@internal. Reasons: VAR__ACTION__REMOVE,VAR__TYPE__CPU_PROFILE,ACTION_TYPE_CANNOT_REMOVE_LAST_CPU_PROFILE_IN_CLUSTER

It seems I have some constraint loop.

Thanks,
Paul






--
Paul Dyer,
Mercury Consulting Group, RHCE
504-302-8750