You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Rohit Yadav (JIRA)" <ji...@apache.org> on 2018/02/28 12:07:00 UTC
[jira] [Commented] (CLOUDSTACK-10312) keealived.log will end up
filling ramdisk partition on RVR, As timestamp comparison is wrong
[ https://issues.apache.org/jira/browse/CLOUDSTACK-10312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16380185#comment-16380185 ]
Rohit Yadav commented on CLOUDSTACK-10312:
------------------------------------------
Ongoing PR [https://github.com/apache/cloudstack/pull/2458.] This ticket dupes CLOUDSTACK-10296
> 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
> Priority: Major
>
> 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)