Nir Soffer has posted comments on this change.
Change subject: core: fixing attribute error on fenceSpmStorage
......................................................................
Patch Set 2:
(1 comment)
http://gerrit.ovirt.org/#/c/26358/2/vdsm/storage/hsm.py
File vdsm/storage/hsm.py:
Line 3528: vars.task.setDefaultException(
Line 3529: se.SpmFenceError("spUUID=%s, lastOwner=%s, lastLver=%s"
%
Line 3530: (spUUID, lastOwner, lastLver)))
Line 3531: pool = self.getPool(spUUID)
Line 3532: if isinstance(pool.getBackend(), StoragePoolDiskBackend):
wouldn't it be much safer to explode if Engine asks for
fenceSpmStorage() w
I think that Liron patch does the right thing.
fenceSpmStorage is an interface - it may be useless now, but may be useful in the future,
so practically it would be a good idea to make it a nop. Failing the request forcing the
engine to check the pool version before sending verbs is the last thing I want to do in
the engine.
Further, this is a critical bug - with the current code, if you reach this point and
fenceSpmStorage fails, whole system goes down and you don't have any way to select a
new spm.
Line 3533: pool.getBackend().invalidateMetadata()
Line 3534: vars.task.getExclusiveLock(STORAGE, spUUID)
Line 3535: pool.getBackend().forceFreeSpm()
Line 3536: return dict(spm_st=self._getSpmStatusInfo(pool))
--
To view, visit
http://gerrit.ovirt.org/26358
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I5ae4c371e2dc97686621ea16b8cef971183a6ab2
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Liron Ar <laravot(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Liron Ar <laravot(a)redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes