Bug 2177425

Summary: keepalived 2.1.5 in RHEL-8 does not allow to set weight 0 on real-servers
Product: Red Hat Enterprise Linux 8 Reporter: Amol Jawarkar <ajawarka>
Component: keepalivedAssignee: Ryan O'Hara <rohara>
Status: NEW --- QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.7CC: cluster-maint, djaiswar, mmhatre
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amol Jawarkar 2023-03-11 17:04:40 UTC
Description of problem:

keepalived 2.1.5 in RHEL-8 does not allow to set weight 0 on real-servers

Version-Release number of selected component (if applicable):

keepalived-2.1.5-9.el8.x86_64 

How reproducible:


- create /etc/keepalived/keepalived.conf with the following content (note weight is zero):

    virtual_server 127.0.0.1 80 {
      protocol TCP

      real_server 127.0.0.1 81 {
                  weight 0
      }
    }


- start keepalived:

- check IPVS configuration. You should see that real-server weight is 1, instead of 0:

# ipvsadm -Ln



Additional info:

Below GIT URL explains this. 

https://github.com/acassen/keepalived/issues/1757

- Below commit have resolution. 

https://github.com/acassen/keepalived/commit/e2b4d108d68ada3af8ad437e2e291fcac1fd0ff7

Comment 1 Mithil Mhatre 2023-06-28 03:30:21 UTC
Hello Team,

Any update on this.