Eli Mesika has uploaded a new change for review.

Change subject: Set default proxy preferences for existing Hosts
......................................................................

Set default proxy preferences for existing Hosts

Currently when upgrading from 3.1 to 3.2 the pm_proxy_preferences value
in vds_static remains empty for installed Hosts.
Only new Hosts will get pm_proxy_preferences = 'cluster,dc' and this
will appear in the Host Edit popup in the Source field when the user can
change the sort of those values.
Actually, installed Hosts will still use the 'cluster,dc' value under
the hoods since this is the default when the Host has no value for
pm_proxy_preferences field.

This patch updates all Hosts that have empty pm_proxy_preferences to set
the pm_proxy_preferences value to 'cluster,dc' such that editing an
installed Host will show those values in the Edit popup Source field.

Change-Id: Ibe41451cf140c17f036e5c1ac95b3402460e7725
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1048356
Signed-off-by: Eli Mesika <emes...@redhat.com>
---
A packaging/dbscripts/upgrade/03_04_0500_set_proxy_preferences_default.sql
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/30/23430/1

diff --git 
a/packaging/dbscripts/upgrade/03_04_0500_set_proxy_preferences_default.sql 
b/packaging/dbscripts/upgrade/03_04_0500_set_proxy_preferences_default.sql
new file mode 100644
index 0000000..3c435c7
--- /dev/null
+++ b/packaging/dbscripts/upgrade/03_04_0500_set_proxy_preferences_default.sql
@@ -0,0 +1 @@
+update vds_static set pm_proxy_preferences = 'cluster,dc' where 
pm_proxy_preferences = '';


-- 
To view, visit http://gerrit.ovirt.org/23430
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe41451cf140c17f036e5c1ac95b3402460e7725
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emes...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to