Federico Simoncelli has uploaded a new change for review. Change subject: hsm: use _hsmSchedule for spmStart ......................................................................
hsm: use _hsmSchedule for spmStart Change-Id: I578f3bc2360e291b05b38e64e8c8bad87e5cd753 Signed-off-by: Federico Simoncelli <fsimo...@redhat.com> --- M vdsm/storage/hsm.py 1 file changed, 2 insertions(+), 7 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/72/26772/1 diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py index 397bbb6..39a6a12 100644 --- a/vdsm/storage/hsm.py +++ b/vdsm/storage/hsm.py @@ -65,7 +65,6 @@ from threadLocal import vars from vdsm import constants from storageConstants import STORAGE -from task import Job from resourceFactories import IMAGE_NAMESPACE import resourceManager as rm import devicemapper @@ -580,12 +579,8 @@ # but seeing as it would break the API with Engine, # it's easiest to fail. self.validateNotSPM(spUUID) - - vars.task.setTag("hsm") - vars.task.setManager(self.taskMng) - vars.task.setRecoveryPolicy("auto") - vars.task.addJob(Job("spmStart", pool.startSpm, prevID, prevLVER, - maxHostID, domVersion)) + self._hsmSchedule("spmStart", pool.startSpm, prevID, prevLVER, + maxHostID, domVersion) @public def spmStop(self, spUUID, options=None): -- To view, visit http://gerrit.ovirt.org/26772 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I578f3bc2360e291b05b38e64e8c8bad87e5cd753 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli <fsimo...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches