Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-130

Httpd Camel case balancer name not found

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • httpd 2.4.6 GA, httpd 2.4.23 ER1
    • httpd 2.4.23 ER2
    • httpd
    • None

    Description

      Apache with balancer named with camel case name, sees workers correctly

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

      but request that should be routed to workers ends with 404

      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>
      

      this is part of balancer debug log but from another run

      [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
      

      Full debug log
      Test log to debug log
      (on Redhat pastebin because of fedora paste bit was accusing me of spam )

      Attachments

        Issue Links

          Activity

            People

              mbabacek1@redhat.com Michal Karm
              bsikora Bogdan Sikora (Inactive)
              Bogdan Sikora Bogdan Sikora (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: