Eli Mesika has uploaded a new change for review.

Change subject: core: Change PM delay for Start/Stop operations
......................................................................

core: Change PM delay for Start/Stop operations

currently when a Start/Stop operation is invoked, the default number of
retries is 3 while the delay between retries is 60 sec.
That means that if when we initially check the status after a Start/Stop
operation it does not reach on/off status we will have to wait 60
seconds to sample the status again

A shorter delay of 10 seconds while keeping the total default waiting
time untouched (means modifying default number of retries to 18 will
improve user experience in PM operations

Default config values were changed to:

FenceStartStatusDelayBetweenRetriesInSec=10
FenceStartStatusRetries=18
FenceStopStatusDelayBetweenRetriesInSec=10
FenceStopStatusRetries=18

Since those values are not exposed to engine-config, we can simply
override the installed value.

Change-Id: I876d98013e2c3874680660940f78b8f14778fa92
Signed-off-by: Eli Mesika <[email protected]>
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=908778
Signed-off-by: Eli Mesika <[email protected]>
---
M backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/76/11876/1

diff --git a/backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql 
b/backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
index de4688c..79205d1 100644
--- a/backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
+++ b/backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
@@ -515,6 +515,10 @@
 select fn_db_update_config_value('DefaultTimeZone','(GMT) GMT Standard 
Time','general');
 select 
fn_db_update_config_value('FenceAgentDefaultParams','ilo3:lanplus,power_wait=4;ilo4:lanplus,power_wait=4','general');
 select 
fn_db_update_config_value('FenceAgentMapping','ilo2=ilo,ilo3=ipmilan,ilo4=ipmilan','general');
+select 
fn_db_update_config_value('FenceStartStatusDelayBetweenRetriesInSec','10','general');
+select fn_db_update_config_value('FenceStartStatusRetries','18','general');
+select 
fn_db_update_config_value('FenceStopStatusDelayBetweenRetriesInSec','10','general');
+select fn_db_update_config_value('FenceStopStatusRetries','18','general');
 select fn_db_update_config_value('IPTablesConfig','
 # oVirt default firewall configuration. Automatically generated by vdsm 
bootstrap script.
 *filter


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I876d98013e2c3874680660940f78b8f14778fa92
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to