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.
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
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.
(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.
(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.
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