Darshan N has uploaded a new change for review. Change subject: packaging: setup:correct parameter for method inst_update_service_type ......................................................................
packaging: setup:correct parameter for method inst_update_service_type This patch sends correct cluster_id as a parameter for method inst_update_service_type instead of null. Because of this the service type for default cluster is properly updated during setup. Change-Id: I34bebf502b94f69701ec5b68bd5497ff68a4a143 Signed-off-by: ndarshan <dnara...@redhat.com> --- M packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/config/appmode.py 1 file changed, 12 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/50/22650/1 diff --git a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/config/appmode.py b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/config/appmode.py index c5fe0fe..489d6ab 100644 --- a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/config/appmode.py +++ b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/config/appmode.py @@ -96,15 +96,26 @@ v = self.environment[osetupcons.ConfigEnv.APPLICATION_MODE] + cluster_ID = self.environment[osetupcons.DBEnv.STATEMENT].execute( + statement=""" + select option_value + from vdc_options + where option_name = 'AutoRegistrationDefaultVdsGroupID' and + version = 'general'; + ) + """, + ) + self.environment[osetupcons.DBEnv.STATEMENT].execute( statement=""" select inst_update_service_type( - null, + %(cluster_ID)s, %(virt)s, %(gluster)s ) """, args=dict( + cluster_ID, virt=(v in ('both', 'virt')), gluster=(v == 'gluster'), ), -- To view, visit http://gerrit.ovirt.org/22650 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I34bebf502b94f69701ec5b68bd5497ff68a4a143 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Darshan N <dnara...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches