[node-patches] Change in ovirt-node[ovirt-3.5]: init: Move the on-boot hook to the end of post
fabiand at redhat.com
fabiand at redhat.com
Fri Mar 27 11:14:56 UTC 2015
Fabian Deutsch has uploaded a new change for review.
Change subject: init: Move the on-boot hook to the end of post
......................................................................
init: Move the on-boot hook to the end of post
This shall ensure that all node specific stuff is done, and any async
hook does not interfer with any following ovirt-post-logic.
The specific case is that vdsm get#s started async in the 90-start-vdsm
handler, this could interfer with the (necessary) service network
restart call, because the networking will change while vdsm comes up.
Change-Id: I2b3937fb248bf0487cc0db7702d5423f1eca9d79
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1194068
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 9 insertions(+), 9 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/63/39263/1
diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 5e0d0ce..fbab8de 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -1354,15 +1354,6 @@
# ovirt-post
#
start_ovirt_post() {
- if [[ -d "$HOOK_ON_BOOT_DIR" ]] && [[ "$(ls -A $HOOK_ON_BOOT_DIR)" ]];
- then
- for handler in "$HOOK_ON_BOOT_DIR"/*;
- do
- log "Running handler: $handler"
- "$handler" >> $OVIRT_LOGFILE 2>&1
- done
- fi
-
[ -f "$VAR_SUBSYS_OVIRT_POST" ] && exit 0
{
log "Starting ovirt-post"
@@ -1518,6 +1509,15 @@
case $OVIRT_RUNTIME_MODE in
esac
+ if [[ -d "$HOOK_ON_BOOT_DIR" ]] && [[ "$(ls -A $HOOK_ON_BOOT_DIR)" ]];
+ then
+ for handler in "$HOOK_ON_BOOT_DIR"/*;
+ do
+ log "Running handler: $handler"
+ "$handler" >> $OVIRT_LOGFILE 2>&1
+ done
+ fi
+
rm -f $VAR_SUBSYS_OVIRT_POST
log "Completed ovirt-post"
--
To view, visit https://gerrit.ovirt.org/39263
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2b3937fb248bf0487cc0db7702d5423f1eca9d79
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>
More information about the node-patches
mailing list