Eduardo has uploaded a new change for review.

Change subject: Revert "pool: ignore refreshStoragePool calls on the SPM"
......................................................................

Revert "pool: ignore refreshStoragePool calls on the SPM"

This reverts commit 7d8f85547e5f56d3eefc91f330e29458a7b8ac27.

Change-Id: I660b8d01844520b43998b7081ca02ef06a5acd93
Signed-off-by: Eduardo <[email protected]>
---
M vdsm/storage/hsm.py
1 file changed, 0 insertions(+), 14 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/27/13927/1

diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index f3a702e..b560ea4 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -788,22 +788,8 @@
             se.StoragePoolActionError(
                 "spUUID=%s, msdUUID=%s, masterVersion=%s" %
                 (spUUID, msdUUID, masterVersion)))
-
         vars.task.getSharedLock(STORAGE, spUUID)
-
-        try:
-            # The refreshStoragePool command is an HSM command and
-            # should not be issued (and executed) on the SPM. At the
-            # moment we just ignore it for legacy reasons but in the
-            # future vdsm could raise an exception.
-            self.validateNotSPM(spUUID)
-        except se.IsSpm:
-            self.log.info("Ignoring the refreshStoragePool request "
-                          "(the host is the SPM)")
-            return
-
         pool = self.getPool(spUUID)
-
         try:
             self.validateSdUUID(msdUUID)
             pool.refresh(msdUUID, masterVersion)


--
To view, visit http://gerrit.ovirt.org/13927
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I660b8d01844520b43998b7081ca02ef06a5acd93
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Eduardo <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to