truncate table  async_tasks;

truncate table business_entity_snapshot;






truncate table  async_tasks;

truncate table business_entity_snapshot;

-- Change status from LOCKED to OK after upgrade since the tasks will be cacelled.
UPDATE images
SET imagestatus = 1
WHERE imagestatus = 2;




Upgrade will update image statuses to OK.
core: Upgrade will update image statuses to OK.

As part of the upgrade process, engine cancel the tasks and
removes them.
part of this behaviour we also want to change the status of the disk
to OK, to avoid cases that the VM cannot be restarted.

The proposed solution changes all the LOCKED statuses of images to OK.

Change-Id: I2a6bd270ebd2125252a4b155f050db103969cb5e
Signed-off-by: Maor Lipchuk <37a323a8cadba73c2b6c8d3f850c79092d0199e6@redhat.com>
