Re: nopreempt not working - Keepalived 1.2.15

krishnen chedambarum <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <CA+r1PNae1GW=EQBYJcRBHyU-MhHiDD1nbGh0oq5uy89H_WYSrQ@mail.gmail.com>
Hi Alexandre,

Thanks. At first glance do you see any issues with the two config, for
nopreempt to work correctly with latest release 1.2.16


Machine A:

vrrp_instance VI_1 {
        interface eth0
        state BACKUP
        virtual_router_id 200
        nopreempt
        priority 150
        authentication {
            auth_type PASS
            auth_pass bar
        }
        virtual_ipaddress {
              10.21.7.6 dev eth0
        }

         notify_backup "/usr/local/sbin/ota-app-down.sh"
        notify_master "/usr/local/sbin/ota-app-up.sh"

}

Machine B:

vrrp_instance VI_1 {
        interface eth0
        state BACKUP
       virtual_router_id 200
        nopreempt
        priority 100
        authentication {
            auth_type PASS
            auth_pass bar
        }
        virtual_ipaddress {
              10.21.7.6 dev eth0
        }

         notify_backup "/usr/local/sbin/ota-app-down.sh"
        notify_master "/usr/local/sbin/ota-app-up.sh"

}

Thanks
















On Thu, May 7, 2015 at 9:24 PM, Alexandre Cassen <[email protected]> wrote:

> Hi,
>
> This has been reverted in last release.
>
> Regs,
> Alexandre
>
>
> On Thursday, May 7, 2015, krishnen chedambarum <[email protected]>
> wrote:
>
>> Hi All,
>>
>> Am having an issue with keepalived-1.2.15
>>
>> I have installed on two Machines , A and B , both running RedHat 6.5
>>
>> The conf is the same on both machines:
>>
>> vrrp_instance VI_1 {
>>         interface eth0
>>         state BACKUP
>>         virtual_router_id 200
>>         nopreempt
>>         priority 150
>>         authentication {
>>             auth_type PASS
>>             auth_pass bar
>>         }
>>         virtual_ipaddress {
>>               10.21.7.6 dev eth0
>>         }
>>   }
>>
>> Machine A originally has VIP 10.21.7.6. When i reboot A, VIP is switched
>> to machine B.
>> However when machine A comes back up, the VIP is switched back to A from
>> B.
>> Which is unexpected if nopreempt option is enabled as i understand....
>>
>> The message in the log of Machine B when the VIP is lost to A is:
>>
>> Received lower prio advert in nopreempt mode
>>
>> Can anybody please help?
>>
>> Would this be related to this fix?
>>
>>
>> https://github.com/vincentbernat/keepalived/commit/13693a2d1b834c749394ef0bdee6afe9eb1fad2d
>>
>> Thanks,
>> Krishnen
>>
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.