You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "jay (JIRA)" <ji...@apache.org> on 2018/02/28 06:42:00 UTC
[jira] [Created] (CLOUDSTACK-10312) keealived.log will end up
filling ramdisk partition on RVR, As timestamp comparison is wrong
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)