Bug 813434

Summary: [apache plugin] timeout used for the HTTP "ping" used by server and vhost avail checks is hard-coded
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: PluginsAssignee: Charles Crouch <ccrouch>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.3CC: ccrouch, hbrock, hrupp, loleary
Target Milestone: ---   
Target Release: RHQ 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: 4.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-01 06:17:06 EDT Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Ian Springer 2012-04-17 14:46:09 EDT
From WWWUtils.isAvailable():

     HttpURLConnection connection = (HttpURLConnection) httpURL.openConnection();

The timeouts should be configurable...
Comment 1 Ian Springer 2012-04-18 15:57:57 EDT
We now use the PC avail facet timeout, rather than hard-coded value of 3s, as the timeout for HTTP ping avail checks (for both Apache server Resources and VHost service Resources). I also added lots of DEBUG logging to WWWUtils.isAvailable() to aid in debugging connection failures:

master 8a75f68 (http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=8a75f68)
Comment 2 Ian Springer 2012-04-18 16:05:02 EDT
We now also log a DEBUG message if we fail to set the read timeout on the URLConnection:

master 0565698 (http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=0565698)
Comment 3 Ian Springer 2012-04-20 13:03:25 EDT
Add some further improvements to logging and error handling:

master f01a945 
Comment 6 Heiko W. Rupp 2013-09-01 06:17:06 EDT
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.