Allon Mureinik has uploaded a new change for review.

Change subject: core: Disable storage autorecovery (#845294)
......................................................................

core: Disable storage autorecovery (#845294)

https://bugzilla.redhat.com/845294

If a storage domain becomes unreachable, AutoRecoveryManager will
attempt to activate it (and fail!), causing SPM re-selection each time.

This is temporary fix that disables SD atuorecovery until a more
complete mechanism can be designed and implemented.

This patch contains:
1. A new configuration value for enabling/disabling autorecovery per
   entity type. By default, auto recovery is enabled for hosts (as was
   prior to this patch) and is disabled for storage domains.
2. Code that checks, per type, if auto recovery is enabled or disabled,
   and only launches recovery actions if it is.
3. A unit test to check said functionality.

Change-Id: I5b80d51726650c499be9595a639e0103280619f2
Signed-off-by: Allon Mureinik <[email protected]>
---
M backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AutoRecoveryManager.java
M 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/AutoRecoveryManagerTest.java
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
4 files changed, 79 insertions(+), 23 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/65/6865/1
--
To view, visit http://gerrit.ovirt.org/6865
To unsubscribe, visit http://gerrit.ovirt.org/settings

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

Reply via email to