Douglas Schilling Landgraf has uploaded a new change for review.
Change subject: vdsmd.init: Add service-is-managed in shutdown_conflicting_srv
......................................................................
vdsmd.init: Add service-is-managed in shutdown_conflicting_srv
We should not throw a stack trace if a service does not exist
Change-Id: I8916a73c446ea2f296b66f5fcf133b07c2d7a66c
Signed-off-by: Douglas Schilling Landgraf <dougsland(a)redhat.com>
---
M vdsm/vdsmd.init.in
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/97/19197/1
diff --git a/vdsm/vdsmd.init.in b/vdsm/vdsmd.init.in
index b38791d..482d2ec 100755
--- a/vdsm/vdsmd.init.in
+++ b/vdsm/vdsmd.init.in
@@ -83,6 +83,7 @@
local srv
for srv in ${CONFLICTING_SERVICES}; do
+ "$VDSM_TOOL" service-is-managed "$srv" >/dev/null 2>&1 || continue
"$VDSM_TOOL" service-disable "$srv"
if "$VDSM_TOOL" service-status "$srv" > /dev/null 2>&1; then
if [ "$srv" = "libvirt-guests" ]; then
--
To view, visit http://gerrit.ovirt.org/19197
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8916a73c446ea2f296b66f5fcf133b07c2d7a66c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.3
Gerrit-Owner: Douglas Schilling Landgraf <dougsland(a)redhat.com>
Hunt Xu has uploaded a new change for review.
Change subject: vdsmd.init: remove legacy judgment code
......................................................................
vdsmd.init: remove legacy judgment code
Judging whether vdsm is registered by checking whether the certificates
exist is legacy. With commit b94937438 there would always be
certificates for vdsm(first in the rpm, generated during startup with
commit 31f4565bd). This patch also merges two if isOvirt judgment
together to tidy the code and the certificates validation would be
performed only when they exist in case configure_libvirt is called
individually(not as a part in vdsm startup).
Change-Id: If51f73576975b13bcdaa110f679c3d5596ae5210
Signed-off-by: huntxu <mhuntxu(a)gmail.com>
---
M vdsm/vdsmd.init.in
1 file changed, 5 insertions(+), 13 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/75/12875/1
diff --git a/vdsm/vdsmd.init.in b/vdsm/vdsmd.init.in
index 1f845c6..36b2f35 100755
--- a/vdsm/vdsmd.init.in
+++ b/vdsm/vdsmd.init.in
@@ -230,13 +230,6 @@
echo "$key=$val" >> "$cfile"
}
- if isOvirt
- then
- . /usr/libexec/ovirt-functions
- else
- ovirt_store_config() { :; }
- fi
-
local lconf qconf ldconf
local ssl=`$GETCONFITEM $CONF_FILE vars ssl true | tr A-Z a-z`
@@ -245,15 +238,14 @@
ldconf="$4"
qlconf="$5"
- # do not configure ovirt nodes before registration
if isOvirt
then
- if [ ! -f /etc/pki/vdsm/certs/vdsmcert.pem ]
- then
- log_failure_msg "$prog: Missing certificates, $prog not registered"
- return 6
+ if [ -f /etc/pki/vdsm/certs/vdsmcert.pem ]
+ /usr/bin/vdsm-tool validate-ovirt-certs
fi
- /usr/bin/vdsm-tool validate-ovirt-certs
+ . /usr/libexec/ovirt-functions
+ else
+ ovirt_store_config() { :; }
fi
#
--
To view, visit http://gerrit.ovirt.org/12875
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If51f73576975b13bcdaa110f679c3d5596ae5210
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Hunt Xu <mhuntxu(a)gmail.com>
Shu Ming has uploaded a new change for review.
Change subject: Nits: clean the magic number for seek()
......................................................................
Nits: clean the magic number for seek()
Change-Id: I65625ae7a41649e290636c95f0e694c065fe42dc
Signed-off-by: Shu Ming <shuming(a)linux.vnet.ibm.com>
---
M vdsm/storage/blockVolume.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/90/11390/1
diff --git a/vdsm/storage/blockVolume.py b/vdsm/storage/blockVolume.py
index 5dec748..ab994a7 100644
--- a/vdsm/storage/blockVolume.py
+++ b/vdsm/storage/blockVolume.py
@@ -66,7 +66,7 @@
def _getDeviceSize(devPath):
with open(devPath, "rb") as f:
- f.seek(0, 2)
+ f.seek(0, os.SEEK_END)
return f.tell()
--
To view, visit http://gerrit.ovirt.org/11390
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I65625ae7a41649e290636c95f0e694c065fe42dc
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Shu Ming <shuming(a)linux.vnet.ibm.com>