Hello Adam Litke,
I'd like you to do a code review. Please visit
http://gerrit.ovirt.org/5860
to review the following change.
Change subject: Add local storage xmlrpc functional test
......................................................................
Add local storage xmlrpc functional test
Add defintion parser for functional test case reusable,
add local storage xmlrpc tests
it can be extend to nfs and iscsi type
Change-Id: I4e2e80fa88d66d9bc1a4ba855e2df51ba8165e0a
Signed-off-by: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
Signed-off-by: Adam Litke <agl(a)us.ibm.com>
---
M configure.ac
M tests/functional/Makefile.am
A tests/functional/xmlrpcTests.py
M vdsm.spec.in
4 files changed, 198 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/60/5860/1
--
To view, visit http://gerrit.ovirt.org/5860
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e2e80fa88d66d9bc1a4ba855e2df51ba8165e0a
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
Gerrit-Reviewer: Adam Litke <agl(a)us.ibm.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Dan Kenigsberg has uploaded a new change for review.
Change subject: confNet: report missing net params as ERR_BAD_PARAMS
......................................................................
confNet: report missing net params as ERR_BAD_PARAMS
Change-Id: I6e6b48332f27d1b976a8cd8069d252133ff32378
Signed-off-by: Dan Kenigsberg <danken(a)redhat.com>
---
M vdsm/configNetwork.py
1 file changed, 12 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/59/6959/1
--
To view, visit http://gerrit.ovirt.org/6959
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6e6b48332f27d1b976a8cd8069d252133ff32378
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <danken(a)redhat.com>
Zhou Zheng Sheng has uploaded a new change for review.
Change subject: avoid creating hangover in storage domain cache after formatting
......................................................................
avoid creating hangover in storage domain cache after formatting
HSM._recycle(self, dom) tries to delete the storage domain from cache by
calling "sdCache.manuallyRemoveDomain(dom.sdUUID)". This is OK, but when
it invokes "dom.format(dom.sdUUID)" to format storage domain, the "dom"
is a proxy object and have to look for the true storage domain object by
calling 'StorageDomainCache._realProduce()', thus cause the storage
domain added to the cache again. This bug will prevent us re-using the
storage domain UUID even though we format it.
This patch invokes the format method of the proxy object first, then
delete the storage domain from cache, and can avoid creating hangovers.
Change-Id: Ie13a97ad6830553cbd099189dfb82d6f02ce82fe
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=806774
Signed-off-by: Zhou Zheng Sheng <zhshzhou(a)linux.vnet.ibm.com>
---
M vdsm/storage/hsm.py
1 file changed, 7 insertions(+), 4 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/44/8144/1
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index a89274a..8512f08 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -2192,11 +2192,14 @@
#TODO: Remove this function when formatStorageDomain() is removed.
def _recycle(self, dom):
try:
- sdCache.manuallyRemoveDomain(dom.sdUUID)
- except KeyError:
- self.log.warn("Storage domain %s doesn't exist in cache. Trying recycle leftovers ...", dom.sdUUID)
+ dom.format(dom.sdUUID)
+ finally:
+ try:
+ sdCache.manuallyRemoveDomain(dom.sdUUID)
+ except KeyError:
+ self.log.warn("Storage domain %s doesn't exist in cache. "
+ "Trying recycle leftovers ...", dom.sdUUID)
- dom.format(dom.sdUUID)
@public
def formatStorageDomain(self, sdUUID, autoDetach = False, options = None):
--
To view, visit http://gerrit.ovirt.org/8144
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie13a97ad6830553cbd099189dfb82d6f02ce82fe
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Zhou Zheng Sheng <zhshzhou(a)linux.vnet.ibm.com>
Dan Kenigsberg has uploaded a new change for review.
Change subject: drop type() call
......................................................................
drop type() call
Python method resolution knows to find class methods as it is.
Change-Id: Ifd37f580c392412159cc7641336074d8894bd501
Signed-off-by: Dan Kenigsberg <danken(a)redhat.com>
---
M vdsm/storage/imageRepository/formatConverter.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/16/8816/1
diff --git a/vdsm/storage/imageRepository/formatConverter.py b/vdsm/storage/imageRepository/formatConverter.py
index d118e87..422cb39 100644
--- a/vdsm/storage/imageRepository/formatConverter.py
+++ b/vdsm/storage/imageRepository/formatConverter.py
@@ -149,7 +149,7 @@
log.debug("Creating the volume lease for %s", volUUID)
metaId = vol.getMetadataId()
- type(vol).newVolumeLease(metaId, domain.sdUUID, volUUID)
+ vol.newVolumeLease(metaId, domain.sdUUID, volUUID)
# If this volume is used as a template let's update the other
# volume's permissions and share the volume lease (at the moment
--
To view, visit http://gerrit.ovirt.org/8816
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd37f580c392412159cc7641336074d8894bd501
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <danken(a)redhat.com>