Yeela Kaplan has uploaded a new change for review.
Change subject: Removing validate sd from spm verbs which calls ckvg and refreshes the domain metadata on the spm even though the spm already controls the changes (i.e. a lot of redundant time is wasted)
......................................................................
Removing validate sd from spm verbs which calls ckvg and refreshes
the domain metadata on the spm even though the spm already controls
the changes (i.e. a lot of redundant time is wasted)
Change-Id: Ibf597a9e53dad04ad7a01fc1d5ceb8a180a542f2
Signed-off-by: Yeela Kaplan <ykaplan(a)redhat.com>
---
M vdsm/storage/hsm.py
1 file changed, 16 insertions(+), 19 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/75/18275/1
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index c754ee8..2c639ca 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -1315,7 +1315,6 @@
pool = self.getPool(spUUID)
if sdUUID and sdUUID != sd.BLANK_UUID:
pool.validatePoolSD(sdUUID)
- self.validateSdUUID(sdUUID)
else:
sdUUID = pool.masterDomain.sdUUID
@@ -1344,7 +1343,6 @@
pool = self.getPool(spUUID)
if sdUUID and sdUUID != sd.BLANK_UUID:
pool.validatePoolSD(sdUUID)
- self.validateSdUUID(sdUUID)
else:
sdUUID = pool.masterDomain.sdUUID
vars.task.getExclusiveLock(STORAGE, "%s_%s" % (vmUUID, sdUUID))
@@ -1367,7 +1365,6 @@
pool = self.getPool(spUUID)
if sdUUID and sdUUID != sd.BLANK_UUID:
pool.validatePoolSD(sdUUID)
- self.validateSdUUID(sdUUID)
else:
sdUUID = pool.masterDomain.sdUUID
vars.task.getSharedLock(STORAGE, sdUUID)
@@ -1451,7 +1448,7 @@
vars.task.setDefaultException(se.VolumeCreationError(argsStr))
# Validates that the pool is connected. WHY?
pool = self.getPool(spUUID)
- sdDom = self.validateSdUUID(sdUUID)
+ dom = sdCache.produce(sdUUID=sdUUID)
misc.validateUUID(imgUUID, 'imgUUID')
misc.validateUUID(volUUID, 'volUUID')
# TODO: For backwards compatibility, we need to support accepting
@@ -1466,7 +1463,7 @@
if srcVolUUID:
misc.validateUUID(srcVolUUID, 'srcVolUUID')
# Validate volume type and format
- sdDom.validateCreateVolumeParams(volFormat, preallocate, srcVolUUID)
+ dom.validateCreateVolumeParams(volFormat, preallocate, srcVolUUID)
vars.task.getSharedLock(STORAGE, sdUUID)
self._spmSchedule(spUUID, "createVolume", pool.createVolume, sdUUID,
@@ -1485,14 +1482,14 @@
vars.task.setDefaultException(se.CannotDeleteVolume(argsStr))
# Validates that the pool is connected. WHY?
pool = self.getPool(spUUID)
- sdDom = self.validateSdUUID(sdUUID)
+ dom = sdCache.produce(sdUUID=sdUUID)
misc.validateUUID(imgUUID, 'imgUUID')
vars.task.getSharedLock(STORAGE, sdUUID)
# Do not validate if forced.
if not misc.parseBool(force):
for volUUID in volumes:
- sdDom.produceVolume(imgUUID, volUUID).validateDelete()
+ dom.produceVolume(imgUUID, volUUID).validateDelete()
self._spmSchedule(spUUID, "deleteVolume", pool.deleteVolume, sdUUID,
imgUUID, volumes, misc.parseBool(postZero),
@@ -1508,7 +1505,7 @@
"""
# vars.task.setDefaultException(se.ChangeMeError("%s" % args))
self.getPool(spUUID) # Validates that the pool is connected. WHY?
- dom = self.validateSdUUID(sdUUID)
+ dom = sdCache.produce(sdUUID=sdUUID)
vars.task.getExclusiveLock(STORAGE, imgUUID)
vars.task.getSharedLock(STORAGE, sdUUID)
@@ -1608,8 +1605,8 @@
raise se.InvalidParameterException(
"srcDom", "must be different from dstDom: %s" % argsStr)
- srcDom = self.validateSdUUID(srcDomUUID)
- dstDom = self.validateSdUUID(dstDomUUID)
+ srcDom = sdCache.produce(sdUUID=srcDomUUID)
+ dstDom = sdCache.produce(sdUUID=dstDomUUID)
# Validates that the pool is connected. WHY?
pool = self.getPool(spUUID)
try:
@@ -1643,8 +1640,8 @@
Clone an image structure (volume chain) to a destination domain within
the same pool.
"""
- self.validateSdUUID(sdUUID)
- self.validateSdUUID(dstSdUUID)
+ sdCache.produce(sdUUID=sdUUID)
+ sdCache.produce(sdUUID=dstSdUUID)
for dom in sorted((sdUUID, dstSdUUID)):
vars.task.getSharedLock(STORAGE, dom)
@@ -1659,8 +1656,8 @@
Copy the internal data between image structures (volume chain) within
the same pool.
"""
- self.validateSdUUID(sdUUID)
- self.validateSdUUID(dstSdUUID)
+ sdCache.produce(sdUUID=sdUUID)
+ sdCache.produce(sdUUID=dstSdUUID)
for dom in sorted((sdUUID, dstSdUUID)):
vars.task.getSharedLock(STORAGE, dom)
@@ -1712,8 +1709,8 @@
# Validates that the pool is connected. WHY?
pool = self.getPool(spUUID)
- srcDom = self.validateSdUUID(srcDomUUID)
- dstDom = self.validateSdUUID(dstDomUUID)
+ srcDom = sdCache.produce(sdUUID=srcDomUUID)
+ dstDom = sdCache.produce(sdUUID=dstDomUUID)
images = {}
for (imgUUID, pZero) in imgDict.iteritems():
images[imgUUID.strip()] = misc.parseBool(pZero)
@@ -1762,7 +1759,7 @@
if srcImgUUID == dstImgUUID:
raise se.InvalidParameterException("dstImgUUID", dstImgUUID)
pool = self.getPool(spUUID)
- self.validateSdUUID(sdUUID)
+ sdCache.produce(sdUUID=sdUUID)
# Avoid VM copy if one of its volume (including template if exists)
# ILLEGAL/FAKE
@@ -1778,7 +1775,7 @@
# If dstSdUUID defined, means we copy image to it
domains = [sdUUID]
if dstSdUUID not in [sdUUID, sd.BLANK_UUID]:
- self.validateSdUUID(dstSdUUID)
+ sdCache.produce(sdUUID=dstSdUUID)
domains.append(dstSdUUID)
domains.sort()
@@ -1803,7 +1800,7 @@
postZero))
vars.task.setDefaultException(se.MergeSnapshotsError("%s" % argsStr))
pool = self.getPool(spUUID)
- self.validateSdUUID(sdUUID)
+ sdCache.produce(sdUUID=sdUUID)
vars.task.getSharedLock(STORAGE, sdUUID)
self._spmSchedule(
spUUID, "mergeSnapshots", pool.mergeSnapshots, sdUUID, vmUUID,
--
To view, visit http://gerrit.ovirt.org/18275
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf597a9e53dad04ad7a01fc1d5ceb8a180a542f2
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <ykaplan(a)redhat.com>
Gerrit-Reviewer: Ayal Baron <abaron(a)redhat.com>
Zhou Zheng Sheng has uploaded a new change for review.
Change subject: Packaging: Remove hard coded 12- prefix of vdsm-lvm.rules from upstream
......................................................................
Packaging: Remove hard coded 12- prefix of vdsm-lvm.rules from upstream
vdsm-lvm.rules.in is to fix lvm block device permissions, it should be
applied after the system default lvm rules. On RH family distributions,
12 is correct because system default is 11-dm-lvm.rules. On Ubuntu, 12 is
incorrect and we use 61-vdsm.lvm.rules. This patch removes the 12-prefix
from the upstream file name, and leaves the downstream packaging script
to decide the correct installed name.
Change-Id: I65ae0fa4d83bba0e1622f70d5c8bee0e2d8742dd
Signed-off-by: Zhou Zheng Sheng <zhshzhou(a)linux.vnet.ibm.com>
---
M .gitignore
M configure.ac
M vdsm.spec.in
R vdsm/storage/vdsm-lvm.rules.in
4 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/06/19006/1
diff --git a/.gitignore b/.gitignore
index c6a8584..295e1fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -54,8 +54,8 @@
vdsm/mk_sysprep_floppy
vdsm/mom.conf
vdsm/sos/vdsm.py
-vdsm/storage/12-vdsm-lvm.rules
vdsm/storage/protect/safelease
+vdsm/storage/vdsm-lvm.rules
vdsm/sudoers.vdsm
vdsm/svdsm.logger.conf
vdsm/vdscli.py
diff --git a/configure.ac b/configure.ac
index 884cd07..fc3c8cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -233,10 +233,10 @@
vdsm/gluster/Makefile
vdsm/netconf/Makefile
vdsm/sos/Makefile
- vdsm/storage/12-vdsm-lvm.rules
vdsm/storage/Makefile
vdsm/storage/imageRepository/Makefile
vdsm/storage/protect/Makefile
+ vdsm/storage/vdsm-lvm.rules
vdsm_api/Makefile
vdsm_hooks/Makefile
vdsm_hooks/checkimages/Makefile
diff --git a/vdsm.spec.in b/vdsm.spec.in
index 4613b13..a84748a 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -565,7 +565,7 @@
%{buildroot}%{_datadir}/%{vdsm_name}/respawn
# Install the lvm rules
-install -Dm 0644 vdsm/storage/12-vdsm-lvm.rules \
+install -Dm 0644 vdsm/storage/vdsm-lvm.rules \
%{buildroot}/lib/udev/rules.d/12-vdsm-lvm.rules
install -Dm 0644 vdsm/limits.conf \
diff --git a/vdsm/storage/12-vdsm-lvm.rules.in b/vdsm/storage/vdsm-lvm.rules.in
similarity index 100%
rename from vdsm/storage/12-vdsm-lvm.rules.in
rename to vdsm/storage/vdsm-lvm.rules.in
--
To view, visit http://gerrit.ovirt.org/19006
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I65ae0fa4d83bba0e1622f70d5c8bee0e2d8742dd
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: systemd init: no need to stop conflicting services
......................................................................
systemd init: no need to stop conflicting services
We use the explict systemd Conflicts= statement for that.
This patch is sent only to the ovirt-3.3 branch, as in master branch we
already have an independent systemd service management.
Bug-Url: https://bugzilla.redhat.com/999664
Change-Id: I7b5469ce61ae8aca353c2c7345a8a719ab0e898f
Signed-off-by: Dan Kenigsberg <danken(a)redhat.com>
---
M vdsm/vdsmd.init.in
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/46/19046/1
diff --git a/vdsm/vdsmd.init.in b/vdsm/vdsmd.init.in
index 56f07bd..b38791d 100755
--- a/vdsm/vdsmd.init.in
+++ b/vdsm/vdsmd.init.in
@@ -186,7 +186,9 @@
local ret_val
"@PYTHON@" "@VDSMDIR@/hooks.pyc" before_vdsm_start
- shutdown_conflicting_srv
+ if ! has_systemd; then
+ shutdown_conflicting_srv
+ fi
if ! "@LIBEXECDIR@/vdsm-gencerts.sh" --check; then
printf $"Configuring a self-signed VDSM host certificate: "
--
To view, visit http://gerrit.ovirt.org/19046
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7b5469ce61ae8aca353c2c7345a8a719ab0e898f
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.3
Gerrit-Owner: Dan Kenigsberg <danken(a)redhat.com>