If you messed up the database during the upgrade from Kilo to Liberty following the workaround of bug 1511466 (comments #3 and #9) you can fix with this query:
DELETE from instance_extra where instance_uuid not in (select uuid from instances);
Sorry the python script in comment #4 is way too complex ! you can do the same with a 1 line SQL query
If you messed up the database during the upgrade from Kilo to Liberty following the workaround of bug 1511466 (comments #3 and #9) you can fix with this query:
DELETE from instance_extra where instance_uuid not in (select uuid from instances);
Sorry the python script in comment #4 is way too complex ! you can do the same with a 1 line SQL query