Bug 1007688

Summary: Installer: installation of natives ends up with post processing error
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: InstallerAssignee: Thomas Hauser <thauser>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: fcanas
Target Milestone: ER2   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:16:31 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:
Attachments:
Description Flags
Post processing error stack trace none

Description Petr Kremensky 2013-09-13 06:56:26 UTC
Created attachment 797156 [details]
Post processing error stack trace

Description of problem:
Installer is looking for natives in wrong folder (jboss-eap-6.1 instead of jboss-eap-6.2). 

After "post processing error" is thrown, "Onfail server shutdown job" is launched which took almost minute, but this is IMO waste of time as I didn't choose to start server during installation (job ends with "failed to connect to management interface").

Version-Release number of selected component (if applicable):
EAP 6.2 ER1

Comment 1 Thomas Hauser 2013-09-13 13:13:41 UTC
Good catch, this will be fixed in the next ER.

The Onfail job will be set only to execute if the some other job which would have launched the server has been launched. This job still shouldn't take one minute to fail, however.

Comment 2 Thomas Hauser 2013-09-13 15:58:38 UTC
Natives SHA256SUM writing fixed for ER2 in:
9528e2b50c5c12184cf8735f6e7cacc2a46d4ada

Comment 3 Francisco Canas 2013-09-16 13:32:17 UTC
I've modified the relevant classes to keep better track of the server's state: 
A) Track whenever the server goes up and then down
B) Track when it is domain vs when it is standalone

The onfail server shutdown job will now check the above information and proceed accordingly. It will not run  if there server is already down,and will only run once in the appropriate mode (standalone or domain) to shut it down if it is up.

See commit (and it's associated commits from trackserverstatus branch):
http://git.app.eng.bos.redhat.com/?p=jbossas-installer.git;a=commit;h=fd67abea977ca0e4d28a7d6a9e889b1173e73561

Comment 4 Petr Kremensky 2013-09-18 06:35:12 UTC
Verified on EAP 6.2.0.ER2