Maor Lipchuk has uploaded a new change for review. Change subject: core: Upgrade will update image statuses to OK. ......................................................................
core: Upgrade will update image statuses to OK. As part of upgrading RHEVM 3.0 to RHEVM 3.1 we cancel the tasks and remove them. As part of this behaviour we also want to change the status of the disk to OK, to avoid cases that the VM can not be reatarted. The proposed solution changes all the LOCKED statuses of images to OK. Change-Id: I2a6bd270ebd2125252a4b155f050db103969cb5e Signed-off-by: Maor Lipchuk <[email protected]> --- M backend/manager/dbscripts/delete_async_tasks_and_compensation_data.sql 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/92/10492/1 diff --git a/backend/manager/dbscripts/delete_async_tasks_and_compensation_data.sql b/backend/manager/dbscripts/delete_async_tasks_and_compensation_data.sql index 8bc10e1..40dbc3d 100644 --- a/backend/manager/dbscripts/delete_async_tasks_and_compensation_data.sql +++ b/backend/manager/dbscripts/delete_async_tasks_and_compensation_data.sql @@ -2,7 +2,10 @@ 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; -- To view, visit http://gerrit.ovirt.org/10492 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2a6bd270ebd2125252a4b155f050db103969cb5e Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Maor Lipchuk <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
