Change in vdsm[master]: libvirt_configure: restart libvirt on ovirtnode

dougsland at redhat.com dougsland at redhat.com
Fri Oct 18 12:09:37 UTC 2013


Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: libvirt_configure: restart libvirt on ovirtnode
......................................................................

libvirt_configure: restart libvirt on ovirtnode

In oVirt Node we do not expect users to interact directly on
console to execute admin steps. We should restart libvirt by script
and do not await users to execute such step.

Change-Id: Id13496dba80c6204b8d5e531e71deab7a59e85d3
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M lib/vdsm/tool/libvirt_configure.sh.in
1 file changed, 9 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/91/20291/1

diff --git a/lib/vdsm/tool/libvirt_configure.sh.in b/lib/vdsm/tool/libvirt_configure.sh.in
index f9ac757..e43015f 100755
--- a/lib/vdsm/tool/libvirt_configure.sh.in
+++ b/lib/vdsm/tool/libvirt_configure.sh.in
@@ -311,12 +311,20 @@
 
     echo "Reconfiguration of libvirt is done."
     echo
-    cat << __EOF__
+    
+    if isOvirtNode; then
+        # On ovirt-node we should not expect admin to 
+        # execute any manual step.
+        /usr/bin/vdsm-tool libvirt-configure-services-restart 
+    else
+        cat << __EOF__
 To start working with the new configuration, execute:
 'vdsm-tool libvirt-configure-services-restart'
 This will manage restarting of the following services:
 libvirtd, supervdsmd
 __EOF__
+    fi
+
     echo
 
     #


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id13496dba80c6204b8d5e531e71deab7a59e85d3
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>


More information about the vdsm-patches mailing list