mod_proxy_hcheck does not detect AJP/CPING support
Bug #1998311 reported by
Sistemi CeSIA
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apache2 Web Server |
Confirmed
|
Medium
|
|||
apache2 (Ubuntu) |
Triaged
|
Undecided
|
Michał Małoszewski | ||
Jammy |
Triaged
|
Undecided
|
Michał Małoszewski | ||
Kinetic |
Triaged
|
Undecided
|
Michał Małoszewski |
Bug Description
We were very excited to see mod_proxy_hcheck support for AJP/CPING land in Ubuntu 22.04, however trying to enable it results in the following error:
> BalancerMember Health check method CPING not (yet) implemented
This unfortunately renders AJP-based health checks, which is a new feature introduced in version 2.4.49 (and thus only available in Jammy), impossible to use.
Luckily we were able to find the code responsible for the misbehavior and propose a fix which has now been accepted upstream.
Upstream bug: https:/
Upstream fix: https:/
We would like to see this fix backported in Jammy.
Related branches
~michal-maloszewski99/ubuntu/+source/apache2:apache2-jammy-fix-proxy-hcheck
- git-ubuntu import: Pending requested
-
Diff: 95 lines (+73/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/mod_proxy_hcheck_jammy_fix_to_detect_support.patch (+65/-0)
debian/patches/series (+1/-0)
tags: | added: server-todo |
Changed in apache2: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in apache2 (Ubuntu): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in apache2 (Ubuntu Jammy): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in apache2 (Ubuntu Kinetic): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
tags: | removed: server-todo |
To post a comment you must log in.
We were very excited to see mod_proxy_hcheck support for AJP/CPING (r1887415) land in Ubuntu 22.04; however trying to enable it yields the following error:
BalancerMember Health check method CPING not (yet) implemented
This was surprising for us since from a cursory look at the code this functionality seems implemented.
A couple of hours of debugging later we concluded that the order of execution of the code added in r1887415 seems to be incorrect: the code checking for AJP availability is executed in hc_post_config() which is unfortunately too late since the configuration syntax has already been marked invalid when the "hcmethod=CPING" token was found.
To fix this we simply moved the code checking for AJP availability in hc_pre_config(). We are running a patched version of http-2.4.52 on a couple of hosts running Ubuntu 22.04 and it seems to be working without issues so far.