]
Michal Karm Babacek commented on MODCLUSTER-534:
------------------------------------------------
We used to have this problem in the past, see MODCLUSTER-435. I fixed it for {{balancer}}
names loaded from mod_cluster.conf file, but apparently, I forgot about those coming in
worker CONFIG messages. Attached PRs fix the issue.
Httpd Camel case balancer name not found
----------------------------------------
Key: MODCLUSTER-534
URL:
https://issues.jboss.org/browse/MODCLUSTER-534
Project: mod_cluster
Issue Type: Bug
Components: Native (httpd modules)
Affects Versions: 1.3.1.Final
Reporter: Bogdan Sikora
Assignee: Michal Karm Babacek
Apache with balancer named with camel case name, sees workers correctly
{noformat}
<html><head>
<title>Mod_cluster Status</title>
</head><body>
<h1>mod_cluster/1.3.1.Final</h1><a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&refresh=10">Auto
Refresh</a> <a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=DUMP&Range=ALL">show
DUMP output</a> <a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=INFO&Range=ALL">show
INFO output</a>
<h1> Node jboss-eap-7.0 (ajp://10.16.92.87:8009): </h1>
<a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=ENABLE-APP&Range=NODE&JVMRoute=jboss-eap-7.0">Enable
Contexts</a> <a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=DISABLE-APP&Range=NODE&JVMRoute=jboss-eap-7.0">Disable
Contexts</a> <a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=STOP-APP&Range=NODE&JVMRoute=jboss-eap-7.0">Stop
Contexts</a><br/>
Balancer: QA-bAlAnCeR,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax:
2,Ttl: 60000000,Status: OK,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: 44
<h2> Virtual Host
1:</h2><h3>Contexts:</h3><pre>/clusterbench, Status: ENABLED
Request: 0 <a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=DISABLE-APP&Range=CONTEXT&JVMRoute=jboss-eap-7.0&Alias=default-host&Context=/clusterbench">Disable</a>
<a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=STOP-APP&Range=CONTEXT&JVMRoute=jboss-eap-7.0&Alias=default-host&Context=/clusterbench">Stop</a>
</pre><h3>Aliases:</h3><pre>default-host
localhost
</pre><h1> Node jboss-eap-7.0-2 (ajp://10.16.92.87:8110): </h1>
<a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=ENABLE-APP&Range=NODE&JVMRoute=jboss-eap-7.0-2">Enable
Contexts</a> <a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=DISABLE-APP&Range=NODE&JVMRoute=jboss-eap-7.0-2">Disable
Contexts</a> <a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=STOP-APP&Range=NODE&JVMRoute=jboss-eap-7.0-2">Stop
Contexts</a><br/>
Balancer: QA-bAlAnCeR,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax:
2,Ttl: 60000000,Status: OK,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: 36
<h2> Virtual Host
1:</h2><h3>Contexts:</h3><pre>/clusterbench, Status: ENABLED
Request: 0 <a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=DISABLE-APP&Range=CONTEXT&JVMRoute=jboss-eap-7.0-2&Alias=default-host&Context=/clusterbench">Disable</a>
<a
href="/mcm?nonce=dbf6a14d-f4e6-46fc-88a7-a1851d9fd74e&Cmd=STOP-APP&Range=CONTEXT&JVMRoute=jboss-eap-7.0-2&Alias=default-host&Context=/clusterbench">Stop</a>
</pre><h3>Aliases:</h3><pre>default-host
localhost
</pre></body></html>
{noformat}
but request that should be routed to workers ends with 404
{noformat}
07:31:15.536 [INFO] Verifying URL:
http://10.16.92.87:2080/clusterbench/jvmroute for
response code 200 and content to: contain ""
Aug 23, 2016 7:31:15 AM com.gargoylesoftware.htmlunit.WebClient printContentIfNecessary
INFO: statusCode=[404] contentType=[text/html]
Aug 23, 2016 7:31:15 AM com.gargoylesoftware.htmlunit.WebClient printContentIfNecessary
INFO: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /clusterbench/jvmroute was not found on this
server.</p>
<hr>
<address>Apache/2.4.6 (Red Hat) Server at 10.16.92.87 Port 2080</address>
</body></html>
{noformat}
this is part of balancer debug log but from another run
{noformat}
[Tue Aug 23 08:41:47.468099 2016] [authz_core:debug] [pid 17958] mod_authz_core.c(809):
[client 127.0.0.1:54932] AH01626: authorization result of Require all granted: granted
[Tue Aug 23 08:41:47.468117 2016] [authz_core:debug] [pid 17958] mod_authz_core.c(809):
[client 127.0.0.1:54932] AH01626: authorization result of <RequireAny>: granted
[Tue Aug 23 08:41:47.474707 2016] [:debug] [pid 17959] mod_proxy_cluster.c(2105):
get_context_host_balancer: balancer balancer://QA-bAlAnCeR not found
[Tue Aug 23 08:41:47.474727 2016] [:debug] [pid 17959] mod_proxy_cluster.c(2105):
get_context_host_balancer: balancer balancer://QA-bAlAnCeR not found
[Tue Aug 23 08:41:47.474767 2016] [authz_core:debug] [pid 17959] mod_authz_core.c(809):
[client 127.0.0.1:49024] AH01626: authorization result of Require all granted: granted
[Tue Aug 23 08:41:47.474770 2016] [authz_core:debug] [pid 17959] mod_authz_core.c(809):
[client 127.0.0.1:49024] AH01626: authorization result of <RequireAny>: granted
[Tue Aug 23 08:41:47.474809 2016] [core:info] [pid 17959] [client 127.0.0.1:49024]
AH00128: File does not exist: /opt/jbcs-httpd24-2.4/httpd/www/html/clusterbench/jvmroute
[Tue Aug 23 08:41:48.979620 2016] [:debug] [pid 17960] mod_proxy_cluster.c(2105):
get_context_host_balancer: balancer balancer://QA-bAlAnCeR not found
[Tue Aug 23 08:41:48.979638 2016] [:debug] [pid 17960] mod_proxy_cluster.c(2105):
get_context_host_balancer: balancer balancer://QA-bAlAnCeR not found
{noformat}
[Full debug log|https://da.gd/57CQ]
[Test log to debug
log|http://pastebin.test.redhat.com/405176]
(on Redhat pastebin because of fedora paste bit was accusing me of spam )