cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jay (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-10312) keealived.log will end up filling ramdisk partition on RVR, As timestamp comparison is wrong
Date Wed, 28 Feb 2018 06:42:00 GMT
jay created CLOUDSTACK-10312:
--------------------------------

             Summary: keealived.log will end up filling ramdisk partition on RVR, As timestamp
comparison is wrong 
                 Key: CLOUDSTACK-10312
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10312
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Virtual Router
    Affects Versions: 4.6.0, 4.11.0.0
            Reporter: jay


coding error in how the time stamp is compared in check_heartbeat.sh file .

thistime=$(cat $ROUTER_BIN_PATH/keepalived.ts)
 lasttime=$(cat $ROUTER_BIN_PATH/keepalived.ts2)
 diff=$(($lasttime - $thistime))

s=0
 if  [ $diff -ge 10 ]

lasttime will never be greater then current time and IF condition will always fail

related commit ID :

https://github.com/apache/cloudstack/pull/587/files#diff-002a85328505a

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message