Bug 1006942

Summary: SOA Installer should terminate eap process if the installation has failed
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Pavol Srna <psrna>
Component: InstallerAssignee: Francisco Canas <fcanas>
Status: CLOSED CURRENTRELEASE QA Contact: Pavol Srna <psrna>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: jsedlace, psrna, soa-p-jira, thauser
Target Milestone: ER3   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screenshot none

Description Pavol Srna 2013-09-11 14:26:16 UTC
Created attachment 796422 [details]
screenshot

Description of problem:

Soa Installer should terminate eap process if installation has failed.



Steps to Reproduce:
1. Choose server startup mode: "Standalone Mode"
2. go through the installation and on the shortcuts page hit on quit.


Actual results:
* some java processes are still running
* server is not reachable on localhost:8080
* cannot repeat the installation, because the process is holding port 9999.

Comment 2 Francisco Canas 2013-09-16 21:13:32 UTC
The Installer is now equipped with a server cleanup job that runs upon install completion, and also when the user quits/aborts the installation. The job checks the AS status and shuts it down if the install was aborted. This will occur before the installer housekeeper removes files, so that it doesn't leave a dangling server process.

The fix includes necessary changes to izpack's Housekeeping class:

Izpack change:
http://git.app.eng.bos.redhat.com/?p=izpack.git;a=commit;h=502b8ece3963b3e2efd7b42dcb7ff5b8566ef3ab

The installer branch with the fix:
http://git.app.eng.bos.redhat.com/?p=jbossas-installer.git;a=shortlog;h=refs/heads/servercleanupfix

Commits from merge with SOA6:
http://git.app.eng.bos.redhat.com/?p=jbossas-installer.git;a=commit;h=e84360b04f401cb688741c5aa551cb6e26de438c
http://git.app.eng.bos.redhat.com/?p=jbossas-installer.git;a=commit;h=5e46bdf164c9adc3308ec6d8c44de546044318ed

Comment 6 Pavol Srna 2013-10-23 09:43:04 UTC
Verified in ER6 build.