Change in vdsm[master]: Reconfigure related services after vdsm rpm upgrade

2013-10-13 Thread ybronhei
Yaniv Bronhaim has uploaded a new change for review.

Change subject: Reconfigure related services after vdsm rpm upgrade
..

Reconfigure related services after vdsm rpm upgrade

When performing an upgrade we might require reconfiguration of related
services. This patch force reconfigure of all related services and
restart them afterwards. After reconfigure is done, we're safe to start
vdsmd as usual.

Change-Id: I4a8c9c548b7a23588107b17351ab7f9ba3ae1d2b
Signed-off-by: Yaniv Bronhaim ybron...@redhat.com
---
M vdsm.spec.in
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/49/20149/1

diff --git a/vdsm.spec.in b/vdsm.spec.in
index cf3dbc7..8384057 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -729,8 +729,10 @@
 %postun
 %if 0%{?rhel}
 if [ $1 -ge 1 ]; then
-/sbin/service vdsmd condrestart  /dev/null 21
-/sbin/service supervdsmd condrestart  /dev/null 21
+if /sbin/service vdsmd condrestart  /dev/null 21; then
+%{_bindir}/vdsm-tool configure-all --force
+/sbin/service vdsmd start  /dev/null 2/dev/null
+fi
 fi
 exit 0
 %else


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4a8c9c548b7a23588107b17351ab7f9ba3ae1d2b
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim ybron...@redhat.com
___
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches


Change in vdsm[master]: Reconfigure related services after vdsm rpm upgrade

2013-10-13 Thread Alon Bar-Lev
Alon Bar-Lev has posted comments on this change.

Change subject: Reconfigure related services after vdsm rpm upgrade
..


Patch Set 2:

(1 comment)


File vdsm.spec.in
Line 731: if [ $1 -ge 1 ]; then
Line 732: if ! /sbin/service vdsmd condrestart  /dev/null 21; then
Line 733: %{_bindir}/vdsm-tool configure-all --force
Line 734: /sbin/service vdsmd start  /dev/null 2/dev/null
Line 735: fi
if that's failing, the rpm install will produce error, but nobody will be able 
to see why

what about systemd configuration?
Line 736: fi
Line 737: exit 0
Line 738: %else
Line 739: %if 0%{?with_systemd_macros}


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I4a8c9c548b7a23588107b17351ab7f9ba3ae1d2b
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim ybron...@redhat.com
Gerrit-Reviewer: Alon Bar-Lev alo...@redhat.com
Gerrit-Reviewer: Barak Azulay bazu...@redhat.com
Gerrit-Reviewer: Dan Kenigsberg dan...@redhat.com
Gerrit-HasComments: Yes
___
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches


Change in vdsm[master]: Reconfigure related services after vdsm rpm upgrade

2013-10-13 Thread oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.

Change subject: Reconfigure related services after vdsm rpm upgrade
..


Patch Set 1: Verified-1

Build Failed 

http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/4964/ : ABORTED

http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit_el/4078/ : SUCCESS

http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/4888/ : SUCCESS

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

Gerrit-MessageType: comment
Gerrit-Change-Id: I4a8c9c548b7a23588107b17351ab7f9ba3ae1d2b
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim ybron...@redhat.com
Gerrit-Reviewer: Alon Bar-Lev alo...@redhat.com
Gerrit-Reviewer: Barak Azulay bazu...@redhat.com
Gerrit-Reviewer: Dan Kenigsberg dan...@redhat.com
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No
___
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches


Change in vdsm[master]: Reconfigure related services after vdsm rpm upgrade

2013-10-13 Thread oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.

Change subject: Reconfigure related services after vdsm rpm upgrade
..


Patch Set 2: Verified-1

Build Failed 

http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/4965/ : ABORTED

http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit_el/4079/ : SUCCESS

http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/4889/ : SUCCESS

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

Gerrit-MessageType: comment
Gerrit-Change-Id: I4a8c9c548b7a23588107b17351ab7f9ba3ae1d2b
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim ybron...@redhat.com
Gerrit-Reviewer: Alon Bar-Lev alo...@redhat.com
Gerrit-Reviewer: Barak Azulay bazu...@redhat.com
Gerrit-Reviewer: Dan Kenigsberg dan...@redhat.com
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No
___
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches