Description of problem: When electing a new master, reconstruction is attempted according to an ascending order of the last time a domain was used as a master (see org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBase#electNewMaster(boolean, boolean, boolean)). In a DC that contains both shared and local domains (see bug 1302185), we should add a secondary criteria to prefer shared domains over local domains for resiliency considerations. Version-Release number of selected component (if applicable): 4.0
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.
-------------------------------------- Tested with the following code: ---------------------------------------- ovirt-engine-4.1.0-0.2.master.20161203231307.gitd7d920b.el7.centos.noarch Tested with the following scenario: Steps to Reproduce: 1. move the master storage domain to maintenance Actual results: shared storage domain becomes master, though there are other local storage domains in the DC (testes few times to make sure the shared is preferred) Expected results: Moving to VERIFIED!