Bug 1160851
Summary: | rhqctl times out connection to EAP server if it takes too long to startup and fails the installation | ||
---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | dsteigne |
Component: | Installer | Assignee: | Jay Shaughnessy <jshaughn> |
Status: | CLOSED ERRATA | QA Contact: | Filip Brychta <fbrychta> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | JON 3.2, JON 3.2.1, JON 3.2.2, JON 3.2.3 | CC: | fbrychta, loleary, lzoubek, mazz, mmahoney, myarboro |
Target Milestone: | ER01 | Keywords: | Triaged |
Target Release: | JON 3.3.3 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-07 07:42:42 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
dsteigne
2014-11-05 19:33:38 UTC
Looks like the workflow here in preInstall is to test the controller client connection without any timeout: Inside org.rhq.enterprise.server.installer.InstallerServiceImpl.preInstall(): // make an attempt to connect to the app server - we must make sure its running and we can connect to it final String asVersion = testModelControllerClient(serverProperties); We should change that testModelControllerClient call to use the one that takes a timeout: testModelControllerClient(HashMap<String, String>, int) We can use a backdoor sysproperty (whose default is 60) so we can provide a way to customize the timeout if need be. But honestly, if 60 seconds isn't enough, your machine is getting beat down so you should fix that before installing anything else extra :) There is also a call to this test method elsewhere with a hardcoded 60. If we want to make a backdoor sysprop, we should use it here as well: // we need to wait for the reload to finish - wait until we can connect again testModelControllerClient(60); Anyway, I think this is a lower priority issue. commit 8e91dec6d6056044315368ada6325c1eda1d24e8 Author: John Mazzitelli <mazz> Date: Thu Nov 6 13:03:04 2014 -0500 BZ 1160851 - add the ability to wait for N seconds while testing for the server to come up. Default is 60s I added the ability to wait up to 60s by default. Before, the initial test didn't wait at all. branch: release/jon3.3.x link: https://github.com/rhq-project/rhq/commit/665bccdbb time: 2015-01-12 10:34:26 +0100 commit: 665bccdbb19d1c9326aa598cf715e0013c0ccfd4 author: John Mazzitelli - mazz message: BZ 1160851 - add the ability to wait for N seconds while testing for the server to come up. Default is 60s, but there is now a backdoor sysprop you can set if you want it to be longer or shorter. (cherry picked from commit 8e91dec6d6056044315368ada6325c1eda1d24e8) Signed-off-by: Libor Zoubek <lzoubek> Moving to ON_QA as available for test with the latest 3.3.1.ER01 bits from here: http://download.devel.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/12/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip Verified on Version : 3.3.0.GA Update 03 Build Number : e4b348a:2f80c8c |