[node-devel] [PATCH node] make ovirt-post loop more robust

Mike Burns mburns at redhat.com
Wed Sep 21 19:12:31 UTC 2011


rhbz#739491

Signed-off-by: Mike Burns <mburns at redhat.com>
---
 scripts/ovirt-post |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/ovirt-post b/scripts/ovirt-post
index ede4240..fa40cfb 100755
--- a/scripts/ovirt-post
+++ b/scripts/ovirt-post
@@ -20,7 +20,7 @@ start_ovirt_post() {
     # wait for libvirt to finish initializing
     local count=0
     while true; do
-        if [ -r /var/run/libvirt/libvirt-sock-ro ]; then
+        if virsh connect qemu:///system --readonly >/dev/null 2>&1; then
             break
         elif [ "$count" == "100" ]; then
             log "Libvirt did not initialize in time..."
-- 
1.7.6.2




More information about the node-devel mailing list