Change in vdsm[ovirt-3.4]: hsm: Fix missing MAX_DOMAINS constant
nsoffer at redhat.com
nsoffer at redhat.com
Mon Feb 10 12:01:05 UTC 2014
Hello Yaniv Bronhaim, Dan Kenigsberg,
I'd like you to do a code review. Please visit
http://gerrit.ovirt.org/24264
to review the following change.
Change subject: hsm: Fix missing MAX_DOMAINS constant
......................................................................
hsm: Fix missing MAX_DOMAINS constant
Commit ab6014b394 moved MAX_DOMAINS from sp to spbackends without
updating all users, breaking creation of a pool on block storage using
old storage domain format. This patch fix the error by importing the
name from its new module.
Change-Id: I772b01be4de309aa4b15bf2c89e69b64787e1a11
Bug-Url: https://bugzilla.redhat.com/1059108
Signed-off-by: Nir Soffer <nsoffer at redhat.com>
Reviewed-on: http://gerrit.ovirt.org/24242
Reviewed-by: Yaniv Bronhaim <ybronhei at redhat.com>
Reviewed-by: Dan Kenigsberg <danken at redhat.com>
---
M vdsm/storage/hsm.py
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/64/24264/1
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index 53c9dd0..5efa4ec 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -40,7 +40,7 @@
from vdsm.config import config
import sp
-from spbackends import MAX_POOL_DESCRIPTION_SIZE
+from spbackends import MAX_POOL_DESCRIPTION_SIZE, MAX_DOMAINS
from spbackends import StoragePoolDiskBackend
from spbackends import StoragePoolMemoryBackend
import domainMonitor
@@ -948,7 +948,7 @@
msdVersion = msd.getVersion()
if (msdType in sd.BLOCK_DOMAIN_TYPES and
msdVersion in blockSD.VERS_METADATA_LV and
- len(domList) > sp.MAX_DOMAINS):
+ len(domList) > MAX_DOMAINS):
raise se.TooManyDomainsInStoragePoolError()
for sdUUID in domList:
--
To view, visit http://gerrit.ovirt.org/24264
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I772b01be4de309aa4b15bf2c89e69b64787e1a11
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.4
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
More information about the vdsm-patches
mailing list