Dan Kenigsberg has submitted this change and it was merged.
Change subject: Don't try to schedule SPM tasks on HSM
......................................................................
Don't try to schedule SPM tasks on HSM
When the manager tries to run an SPM task on an HSM host the returned
(and logged) error is not clear:
Traceback (most recent call last):
[...]
File "/usr/share/vdsm/storage/hsm.py", line 571, in _spmSchedule
self.taskMng.scheduleJob("spm", pool.tasksDir, vars.task, name,
func, *args)
AttributeError: 'StoragePool' object has no attribute 'tasksDir'
VDSM should verify to be an SPM before trying to schedule any spm
job.
Change-Id: I7183fb2a7ef391a73cbb1a6dff9bf46238275100
---
M vdsm/storage/hsm.py
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Federico Simoncelli: Verified
Dan Kenigsberg: Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/695
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7183fb2a7ef391a73cbb1a6dff9bf46238275100
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Ayal Baron <abaron(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Eduardo <ewarszaw(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>