Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2054249

Summary: vrrp_scripts ignored by keepalived
Product: Red Hat Enterprise Linux 8 Reporter: Felix <fshekhter>
Component: keepalivedAssignee: Ryan O'Hara <rohara>
Status: CLOSED ERRATA QA Contact: Brandon Perkins <bperkins>
Severity: high Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bperkins, bstinson, cluster-maint, jwboyer, ksyblast, quentin
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: keepalived-2.1.5-9.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:51:47 UTC 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:
Attachments:
Description Flags
config with changed sensitive data none

Description Felix 2022-02-14 14:12:59 UTC
Created attachment 1860987 [details]
config with changed sensitive data

Created attachment 1860987 [details]
config with changed sensitive data

Description of problem:
vrrp_scripts ignored by keepalived


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


How reproducible:
reproduced on v2.1.5


Steps to Reproduce:
1.defined vrrp_script in keepalived conf
2.defined track_script in vrrp_instance block of keepalived.conf
3.observed keepalived.log which contains "Warning - script <vrrp_script> is not used"

Actual results:
keepalived.log contains "Warning - script <vrrp_script> is not used"
and scripts ignored by keepalived

Expected results:
scripts should be executed and return some value


Additional info:
keepalived v2.0.10 and v2.2.7 works as expected

Comment 1 Ryan O'Hara 2022-02-14 17:32:18 UTC
I just tested this with keepalived-2.0.10-11 and it worked as expected. Can you please post the version and build that you are using? I also looked at the code and the only reason it should ever log the message "Warning - script <vrrp_script> is not used" is if you define the script but never reference it. I also check the latest code in v2.2.x and it is identical. Works for me.

Comment 2 Ryan O'Hara 2022-02-14 17:35:00 UTC
By the way, you're missing a closing bracket in you vrrp_sync_group.

Comment 3 Ryan O'Hara 2022-02-14 17:36:54 UTC
(In reply to Ryan O'Hara from comment #2)
> By the way, you're missing a closing bracket in you vrrp_sync_group.

Disregard. I see now it is just formatted a bit differently.

Comment 4 Ryan O'Hara 2022-02-14 18:02:52 UTC
(In reply to Ryan O'Hara from comment #1)
> I just tested this with keepalived-2.0.10-11 and it worked as expected. Can
> you please post the version and build that you are using? I also looked at
> the code and the only reason it should ever log the message "Warning -
> script <vrrp_script> is not used" is if you define the script but never
> reference it. I also check the latest code in v2.2.x and it is identical.
> Works for me.

Nevermind again. I just realize my RHEL8 repos were set to an older release. When I updated to keepalived-2.1.5-6 (released in RHEL8.5) I began seeing the problem. Still not sure why because the code has not changed. I did find an email from last November on the upstream mailing list that reported the same problem, but they also stated that this only happened on the MASTER node -- all BACKUP nodes were fine. I will ask about this upstream because I did not see a resolution.

Comment 5 Quentin Armitage 2022-02-15 02:29:59 UTC
keepalived commit 459fc2b9 resolved this issue.

Comment 6 Felix 2022-02-16 08:54:35 UTC
As we can see this commit is for v2.2.7 
Should we wait for fix for v2.1.5?

Comment 8 Felix 2022-03-10 15:55:16 UTC
any news?

Comment 19 errata-xmlrpc 2022-11-08 09:51:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (keepalived bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7626