Martin Peřina has posted comments on this change.
Change subject: core: Adds config of command to restart VDSM by SSH
......................................................................
Patch Set 3: (3 inline comments)
....................................................
File backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
Line 556: select fn_db_add_config_value('CustomDeviceProperties', '', '3.1');
Line 557: select fn_db_add_config_value('CustomDeviceProperties', '', '3.2');
Line 558: select fn_db_add_config_value('CustomDeviceProperties', '', '3.3');
Line 559:
Line 560: select fn_db_add_config_value('RestartVdsmBySshCommand', 'service
vdsmd restart', '3.0');
I would rather not use any specific path because of various distribution
differencies. For example in Fedora 18 there's service command in /sbin and
/usr/sbin directories, in RHEL only in /sbin and in Ubuntu 12.04 only in
/usr/sbin.
Line 561: select fn_db_add_config_value('RestartVdsmBySshCommand', 'service
vdsmd restart', '3.1');
Line 562: select fn_db_add_config_value('RestartVdsmBySshCommand', 'service
vdsmd restart', '3.2');
Line 563: select fn_db_add_config_value('RestartVdsmBySshCommand',
'/usr/bin/vdsm-tool service-restart vdsmd', '3.3');
Line 564:
....................................................
File packaging/etc/engine-config/engine-config.properties
Line 272: GlusterRefreshRateHooks.description="Refresh rate (in seconds) of
gluster hooks from gluster servers"
Line 273: GlusterRefreshRateHooks.type=Integer
Line 274: GlusterRefreshRateHooks.validValues=30..3600
Line 275: RestartVdsmBySshCommand.description="Command that restarts VDSM on
host using SSH connection"
Line 276: RestartVdsmBySshCommand.type=String
I prefer this setting to be configurable, every direct db editing is much more
prone to errors.
Line 272: GlusterRefreshRateHooks.description="Refresh rate (in seconds) of
gluster hooks from gluster servers"
Line 273: GlusterRefreshRateHooks.type=Integer
Line 274: GlusterRefreshRateHooks.validValues=30..3600
Line 275: RestartVdsmBySshCommand.description="Command that restarts VDSM on
host using SSH connection"
Line 276: RestartVdsmBySshCommand.type=String
So maybe a "SshSoftFencingCommand" would be a better name?
--
To view, visit http://gerrit.ovirt.org/15797
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f96cbe0c5fdc33f8f512c36d1cd85349852f2da
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Martin Peřina <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches