Yaniv Bronhaim has uploaded a new change for review.

Change subject: is-configured pre-start task needs to manipulate upgrade of 
ovirt-node
......................................................................

is-configured pre-start task needs to manipulate upgrade of ovirt-node

ovirt-node upgrade requires reconfigure before first start of vdsm. the upgrade
is recognized by a persist file called FORCE_RECONFIGURE which is
located on the FS during ovirt-node upgrade process. the logic allows to
run the configure verb before vdsm starts at first time.

Change-Id: Ica53373478ca2d5fa44e72eaea3555e881b1480f
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1101215
Signed-off-by: Yaniv Bronhaim <[email protected]>
---
M init/vdsmd_init_common.sh.in
1 file changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/92/28892/1

diff --git a/init/vdsmd_init_common.sh.in b/init/vdsmd_init_common.sh.in
index eee180e..d2ecf90 100644
--- a/init/vdsmd_init_common.sh.in
+++ b/init/vdsmd_init_common.sh.in
@@ -63,7 +63,13 @@
 
 
 task_check_is_configured() {
-    "$VDSM_TOOL" is-configured
+    if [ -f "${FORCE_RECONFIGURE}" ]; then
+         "$VDSM_TOOL" configure --force
+        # TODO: unpersist file?
+        "@RM_PATH@" -f "${FORCE_RECONFIGURE}"
+    else
+        "$VDSM_TOOL" is-configured
+    fi
 }
 
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica53373478ca2d5fa44e72eaea3555e881b1480f
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to