Bug 1040814

Summary: Installer cannot use generated install script if MySQL is configured
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Sedlacek <jsedlace>
Component: InstallerAssignee: Francisco Canas <fcanas>
Status: CLOSED CURRENTRELEASE QA Contact: Len DiMaggio <ldimaggi>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, fcanas, oskutka, soa-p-jira, thauser
Target Milestone: ER8Keywords: TestBlocker
Target Release: 6.0.0   
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
install script none

Description Jiri Sedlacek 2013-12-12 07:29:11 UTC
Created attachment 835645 [details]
install script

I've configured installer to use MySQL, generated install script with it and then tried to run installation with this script, it failed with exception:

Connected to Management Interface.
[ ERROR: Invocation Problem calling : com.redhat.installer.postinstall.DatasourceScriptHelper, java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.izforge.izpack.installer.ProcessPanelWorker$ExecutableClass.run(ProcessPanelWorker.java:760)
	at com.izforge.izpack.installer.ProcessPanelWorker$ProcessingJob.run(ProcessPanelWorker.java:516)
	at com.izforge.izpack.installer.ProcessPanelWorker.runJob(ProcessPanelWorker.java:462)
	at com.izforge.izpack.installer.ProcessPanelWorker.run(ProcessPanelWorker.java:388)
	at com.izforge.izpack.panels.ProcessPanelAutomationHelper.runAutomated(ProcessPanelAutomationHelper.java:67)
	at com.izforge.izpack.installer.AutomatedInstaller.installPanel(AutomatedInstaller.java:500)
	at com.izforge.izpack.installer.AutomatedInstaller.doInstall(AutomatedInstaller.java:443)
	at com.izforge.izpack.installer.Installer.main(Installer.java:141)
Caused by: com.redhat.installer.postinstall.ServerCommands$BatchIsEmptyException: ServerCommands: The batch is empty.
	at com.redhat.installer.postinstall.ServerCommands.runBatch(ServerCommands.java:1414)
	at com.redhat.installer.postinstall.DatasourceScriptHelper.run(DatasourceScriptHelper.java:69)
	... 12 more
 ]

Install script is attached.

Comment 1 Francisco Canas 2013-12-12 15:54:09 UTC
The issue has been fixed, and db installation works with auto install scripts again. Note you'll have to run the installer manually and create a new install xml script for it to work, because the problem was that some of the DB properties weren't being saved to the script for later use.

See commit:
http://git.app.eng.bos.redhat.com/installer-commons.git/commit/?h=6.1.1.ip&id=2e88b73a446602bbefb5d29a0ba5d6f855a7be23

Comment 2 Jiri Sedlacek 2013-12-18 15:41:01 UTC
It blocks our automated testing with other DBs, waiting for new build.

Comment 3 Len DiMaggio 2014-01-06 20:21:45 UTC
Verified in ER8