Tomas Jelinek has uploaded a new change for review. Change subject: core: validation error on edit instance type ......................................................................
core: validation error on edit instance type The default instance types has been created with min_allocated_mem set to 0 which was incorrect making inpossible to edit them (due to validation error). Fixed by setting the same min_allocated_mem as mem_size_mb for all instance types which has the min_allocated_mem set to 0. Change-Id: If3692e187f04c5a8e7f8c812850cc82af7bc43ab Signed-off-by: Tomas Jelinek <[email protected]> --- A packaging/dbscripts/upgrade/03_05_0740_min_allocated_memory_on_instance_type.sql 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/45/29345/1 diff --git a/packaging/dbscripts/upgrade/03_05_0740_min_allocated_memory_on_instance_type.sql b/packaging/dbscripts/upgrade/03_05_0740_min_allocated_memory_on_instance_type.sql new file mode 100644 index 0000000..ddf3a7f --- /dev/null +++ b/packaging/dbscripts/upgrade/03_05_0740_min_allocated_memory_on_instance_type.sql @@ -0,0 +1 @@ +update vm_static s set min_allocated_mem = (select mem_size_mb from vm_static where vm_guid = s.vm_guid) where s.min_allocated_mem = 0 and entity_type = 'INSTANCE_TYPE'; -- To view, visit http://gerrit.ovirt.org/29345 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If3692e187f04c5a8e7f8c812850cc82af7bc43ab Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tomas Jelinek <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
