Federico Simoncelli has uploaded a new change for review.
Change subject: sp: prevent master demotion on activation ......................................................................
sp: prevent master demotion on activation
Change-Id: I47a0c3ea16bcdefa99899e04c453eaf995344dfb Signed-off-by: Federico Simoncelli fsimonce@redhat.com --- M vdsm/storage/sp.py 1 file changed, 9 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/32/28332/1
diff --git a/vdsm/storage/sp.py b/vdsm/storage/sp.py index 3f983b6..3762c10 100644 --- a/vdsm/storage/sp.py +++ b/vdsm/storage/sp.py @@ -1041,7 +1041,15 @@
# Domain conversion requires the links to be present self._refreshDomainLinks(dom) - self._backend.setDomainRegularRole(dom) + + # This should never happen because we're not deactivating the + # current master in deactivateStorageDomain if a new master is + # not provided. It is also impossible to connect to a pool + # where the master domain is not active. Anyway to be on the + # safe side we must prevent the current master domain from + # being demoted to regular. + if sdUUID != self.masterDomain.sdUUID: + self._backend.setDomainRegularRole(dom)
if dom.getDomainClass() == sd.DATA_DOMAIN: self._convertDomain(dom)
oVirt Jenkins CI Server has posted comments on this change.
Change subject: sp: prevent master demotion on activation ......................................................................
Patch Set 1:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit/9681/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/8748/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/9534/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_storage_functional_tests_localfs_ge... : FAILURE
Federico Simoncelli has posted comments on this change.
Change subject: sp: prevent master demotion on activation ......................................................................
Patch Set 2: Verified+1
Verified (regular flow only):
* it is possible to activate a storage domain
oVirt Jenkins CI Server has posted comments on this change.
Change subject: sp: prevent master demotion on activation ......................................................................
Patch Set 2:
Build Successful
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit/9698/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/8765/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/9551/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_storage_functional_tests_localfs_ge... : SUCCESS
Dan Kenigsberg has posted comments on this change.
Change subject: sp: prevent master demotion on activation ......................................................................
Patch Set 2:
(1 comment)
http://gerrit.ovirt.org/#/c/28332/2/vdsm/storage/sp.py File vdsm/storage/sp.py:
Line 1041: Line 1042: # Domain conversion requires the links to be present Line 1043: self._refreshDomainLinks(dom) Line 1044: Line 1045: # This should never happen because we're not deactivating the Why should we comply with misguided request of Engine? It's safer to return an error and give Engine the opportunity to correct its ways.
I am guessing that this is what happens currently - the master domain demotior would cause the spm to drop its role, and a new master domain would have to be reconstructed. Line 1046: # current master in deactivateStorageDomain if a new master is Line 1047: # not provided. It is also impossible to connect to a pool Line 1048: # where the master domain is not active. Anyway to be on the Line 1049: # safe side we must prevent the current master domain from
Itamar Heim has posted comments on this change.
Change subject: sp: prevent master demotion on activation ......................................................................
Patch Set 2:
ping
Jenkins CI RO has abandoned this change.
Change subject: sp: prevent master demotion on activation ......................................................................
Abandoned
Abandoned due to no activity - please restore if still relevant
Jenkins CI RO has posted comments on this change.
Change subject: sp: prevent master demotion on activation ......................................................................
Patch Set 2:
Abandoned due to no activity - please restore if still relevant
automation@ovirt.org has posted comments on this change.
Change subject: sp: prevent master demotion on activation ......................................................................
Patch Set 2:
* Update tracker::IGNORE, no Bug-Url found
vdsm-patches@lists.fedorahosted.org