Repository navigation
VR: fix haproxy check when ssl offloading is configured - #12596
weizhouapache wants to merge 7 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.22 #12596 +/- ##
============================================
+ Coverage 17.61% 18.33% +0.72%
- Complexity 15664 16664 +1000
============================================
Files 5917 5939 +22
Lines 531402 537819 +6417
Branches 64971 65941 +970
============================================
+ Hits 93596 98613 +5017
- Misses 427252 427987 +735
- Partials 10554 11219 +665
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
1 similar comment
|
@blueorangutan package |
|
@blueorangutan test |
There was a problem hiding this comment.
Pull request overview
This PR addresses issue #12591 by adjusting the SystemVM HAProxy advanced health check to tolerate additional bind options appended when SSL offloading is configured, avoiding false health check failures while keeping HAProxy config validation intact.
Changes:
- Relax
bindline matching inhaproxy_check.pyto acceptbind <ip:port> ...(with trailing options) rather than requiring an exact string match.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@blueorangutan package |
|
@blueorangutan test |
|
@blueorangutan package |
|
@DaanHoogland @sureshanaparti |
|
@blueorangutan package |
|
@weizhouapache I see this error on healthcheck |
|
I tested this PR on KVM and the current head ( Cause
Steps to reproduce (isolated network, VR running)
Result: A Results
I confirmed that the VR runs the script from this PR: its md5 matches the copy in the management server's Direct run on the same VR, same
Suggested fix bind_line = cfgSection["bind"][0]
bind_token = bind_line.split()[0] if bind_line else ""
if bind_token != bindStr:This passes SSL binds and still catches a wrong IP or port. A small unit test in Not a blocker: even with the fix, the check never verifies the SSL options. A bind line without |
This reverts commit 12ff7a3.
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Cover plain bind, SSL bind with options, and wrong port/IP cases for checkLoadBalance in haproxy_check.py, so the SSL-offloading regression reported in apache#12591 is caught by unit tests.
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 20197 |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 20198 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
vladimirpetrov
left a comment
There was a problem hiding this comment.
LGTM, all tests passed with the latest change.

Description
This PR fixes #12591
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?