This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new 99f2919  Improve logs on kvmvmactivity.sh (#4704)
99f2919 is described below

commit 99f2919ef475bf134a8dbb3e325a1bc808df562a
Author: Daniel Augusto Veronezi Salvador 
<38945620+gutoveron...@users.noreply.github.com>
AuthorDate: Mon May 10 11:26:55 2021 -0300

    Improve logs on kvmvmactivity.sh (#4704)
    
    Co-authored-by: Daniel Augusto Veronezi Salvador <dan...@scclouds.com.br>
---
 scripts/vm/hypervisor/kvm/kvmvmactivity.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/vm/hypervisor/kvm/kvmvmactivity.sh 
b/scripts/vm/hypervisor/kvm/kvmvmactivity.sh
index 7e9b9b6..d6ff3e9 100755
--- a/scripts/vm/hypervisor/kvm/kvmvmactivity.sh
+++ b/scripts/vm/hypervisor/kvm/kvmvmactivity.sh
@@ -93,7 +93,7 @@ fi
 
 if [ -z "$UUIDList" ]
 then
-  echo "=====> DEAD <======"
+  echo "=====> Considering host as DEAD due to empty UUIDList <======"
   exit 0
 fi
 
@@ -107,7 +107,7 @@ if [ ! -f $acFile ]; then
     if [[ $latestUpdateTime -gt $SuspectTime ]]; then
         echo "=====> ALIVE <====="
     else
-        echo "=====> DEAD <======"
+        echo "=====> Considering host as DEAD due to file [$acFile] does not 
exists and condition [latestUpdateTime -gt SuspectTime] has not been satisfied. 
<======"
     fi
 else
     acTime=$(cat $acFile)
@@ -121,13 +121,13 @@ else
         if [[ $latestUpdateTime -gt $SuspectTime ]]; then
             echo "=====> ALIVE <====="
         else
-            echo "=====> DEAD <======"
+            echo "=====> Considering host as DEAD due to file [$acFile] exist, 
condition [suspectTimeDiff -lt 0] was satisfied and [latestUpdateTime -gt 
SuspectTime] has not been satisfied. <======"
         fi
     else
         if [[ $latestUpdateTime -gt $lastUpdateTime ]]; then
             echo "=====> ALIVE <====="
         else
-            echo "=====> DEAD <======"
+            echo "=====> Considering host as DEAD due to file [$acFile] exist 
and conditions [suspectTimeDiff -lt 0] and [latestUpdateTime -gt SuspectTime] 
have not been satisfied. <======"
         fi
     fi
 fi

Reply via email to