Bug 1770766 - track_process checks broken.
Summary: track_process checks broken.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: keepalived
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ryan O'Hara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-11 10:15 UTC by Jóhann B. Guðmundsson
Modified: 2019-11-29 00:53 UTC (History)
3 users (show)

Fixed In Version: keepalived-2.0.19-4.fc31
Clone Of:
Environment:
Last Closed: 2019-11-29 00:53:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jóhann B. Guðmundsson 2019-11-11 10:15:36 UTC
Description of problem:

When systemd got upgrade version 243 it increased the pid_max value from 32768 to 4194304 which resulted in track_process checks in keepalived not recovering if the process checks were higher than 32768 ( which for example happens with haproxy ).


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

2.0.18+

How reproducible:

Always

Steps to Reproduce:

vrrp_track_process sleep {
   process "sleep"
   quorum 1
   delay 2
}
vrrp_instance TST {
    state BACKUP
    interface ens18
    virtual_router_id 162
    priority 100
    advert_int 1
    virtual_ipaddress {
        ip.ip.ip.ip dev <interface )
    }
    track_process {
       sleep
    }
}



Actual results:

Keepalive does not recover from entering fault state once the sleep command is (re )-run ( systemctl start keepalived && sleep 20 && sleep 20 if you want to trigger this ) 

Expected results:

Keepalived to recover from fault state.

Additional info:

Upstream has already fixed the issue here [1] which needs to be backported in the distribution to ensure keepalived FAULT state recovers when using track_process checks in keepalived,

1. https://github.com/acassen/keepalived/commit/23a5b8113bf0b8ec4718443df0406882e8e4d831

Comment 1 Fedora Update System 2019-11-20 17:15:32 UTC
FEDORA-2019-613678f17d has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-613678f17d

Comment 2 Fedora Update System 2019-11-21 02:27:28 UTC
keepalived-2.0.19-4.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-613678f17d

Comment 3 Fedora Update System 2019-11-29 00:53:53 UTC
keepalived-2.0.19-4.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.