Bug 1113094

Summary: Failed to install reports, js-ant failed to execute
Product: [Retired] oVirt Reporter: Petr Matyáš <pmatyas>
Component: ovirt-engine-reportsAssignee: Yedidyah Bar David <didi>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5CC: acathrow, dfediuck, didi, gklein, iheim, lveyde, movciari, pmatyas, sbonazzo, stirabos, yeylon, ylavi
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 13:07:51 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
Engine setup log none

Description Petr Matyáš 2014-06-25 12:28:29 UTC
Description of problem:
When running engine-setup with reports installation fails to execute stage 'Misc configuration': Command './js-ant' failed to execute

Version-Release number of selected component (if applicable):
3.5

How reproducible:
Always on my setup

Steps to Reproduce:
1. run engine-setup
2. When setup asks if to install Reports and DWH answer yes
3.

Actual results:
Fails to install with error Command './js-ant' failed to execute

Expected results:
Should be installed correctly

Additional info:

Comment 1 Petr Matyáš 2014-06-25 12:30:51 UTC
Created attachment 912081 [details]
Engine setup log

Comment 2 Sandro Bonazzola 2014-06-26 07:14:56 UTC
Looks like a missing dependency in EL6 at spec file level.

Comment 3 Sandro Bonazzola 2014-06-26 07:16:48 UTC
(In reply to Sandro Bonazzola from comment #2)
> Looks like a missing dependency in EL6 at spec file level.

I've to correct myself, js-ant is provided by jasper. Maybe 5.5.0a dropped it?

Comment 4 Sandro Bonazzola 2014-06-26 07:54:15 UTC
 jasperreports-server-5.5.0a-1.el6.noarch : JasperReports Server
 Matched from:
 Filename    : /usr/share/jasperreports-server/buildomatic/js-ant

 jasperreports-server-5.5.0-7.el6.noarch : JasperReports Server
 Matched from:
 Filename    : /usr/share/jasperreports-server/buildomatic/js-ant

Looks like nothing changed about js-ant in jasper.

Petr, which version of jasper are you using?
Can you check rpm -ql jasperreports-server |grep js-ant ?

Comment 5 Petr Matyáš 2014-06-26 08:35:41 UTC
[root@change-fqdn ~]# rpm -qa | grep jasper
jasperreports-server-5.5.0-7.el6.noarch
jasper-libs-1.900.1-15.el6_1.1.x86_64

[root@change-fqdn ~]# rpm -ql jasperreports-server | grep js-ant
/usr/share/jasperreports-server/buildomatic/js-ant
/usr/share/jasperreports-server/buildomatic/js-ant.bat

Comment 6 Yedidyah Bar David 2014-07-02 06:41:27 UTC
Error might have occurred due to unresolvable hostname, and in any case was a failure of jasper (js-ant in particular). Relevant lines from the attached log:


     [java] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'executionOwnerVoter': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityContextProvider': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityContextProviderTarget' defined in file [/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'userAuthorityService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userAuthorityService' defined in file [/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'profileAttributeService' while setting bean property 'profileAttributeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profileAttributeService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profileAttributeServiceTarget' defined in file [/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'unsecureRepositoryService' while setting bean property 'repositoryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateRepositoryService' defined in file [/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'hibernateRepositoryListeners' while setting bean property 'repositoryListeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateRepositoryListeners' defined in file [/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'schedulingReportDeleteListener' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulingReportDeleteListener' defined in file [/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext-report-scheduling.xml]: Cannot resolve reference to bean 'reportSchedulingService' while setting bean property 'schedulingService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reportSchedulingService' defined in file [/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext-report-scheduling.xml]: Cannot resolve reference to bean 'reportScheduler' while setting bean property 'scheduler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reportScheduler' defined in file [/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext-report-scheduling.xml]: Cannot resolve reference to bean 'quartzScheduler' while setting bean property 'scheduler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzScheduler' defined in file [/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext-report-scheduling.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot run without an instance id.


     [java]     at org.quartz.simpl.SimpleInstanceIdGenerator.generateInstanceId(SimpleInstanceIdGenerator.java:34)

     [java] Caused by: java.net.UnknownHostException: change-fqdn.rhev.lab.eng.brq.redhat.com: Name or service not known


Please try to reproduce after we'll fix other problems in setup. Currently setting needinfo on myself until we do that.

Comment 7 Yaniv Lavi 2014-07-02 11:01:49 UTC
Is the hostname resolvable?


Yaniv

Comment 8 Petr Matyáš 2014-07-02 11:10:46 UTC
Yes it is resolvable.

Comment 9 Yaniv Lavi 2014-07-02 11:15:34 UTC
(In reply to Petr Matyáš from comment #8)
> Yes it is resolvable.

This doesn't make sense, the hostname that is pulled from that machine is:
change-fqdn.rhev.lab.eng.brq.redhat.com
which is not resolvable (I can't ping and it is clearly a placeholder name). This is the root cause. Please make sure that your hostname is correct and resolable and try to recreate and close this bug if you can't which is most likely the case.

Comment 10 Petr Matyáš 2014-07-02 11:28:56 UTC
Yes it was back then, but I changed it to pm-rh35.rhev.lab.eng.brq.redhat.com (this one is resolvable) and I can't remember if I tried Alpha2 release afterwards, but Beta doesn't work now, that I tried. I can downgrade to Alpha2 and test it again.

Comment 11 Yaniv Lavi 2014-07-02 11:33:43 UTC
(In reply to Petr Matyáš from comment #10)
> Yes it was back then, but I changed it to
> pm-rh35.rhev.lab.eng.brq.redhat.com (this one is resolvable) and I can't
> remember if I tried Alpha2 release afterwards, but Beta doesn't work now,
> that I tried. I can downgrade to Alpha2 and test it again.

Please provide log for the real failure, since this one does not list the cause as I understand.

Comment 12 Petr Matyáš 2014-07-02 12:54:23 UTC
I just finished downgrading to alpha2 release and it installs correctly, so it must have been because of the hostname I didn't change. The bug might be renamed to "No warning after js-ant fails to install" or something like that.

Comment 13 Yaniv Lavi 2014-07-02 12:59:20 UTC
(In reply to Petr Matyáš from comment #12)
> I just finished downgrading to alpha2 release and it installs correctly, so
> it must have been because of the hostname I didn't change. The bug might be
> renamed to "No warning after js-ant fails to install" or something like that.

warning about?


Yaniv

Comment 14 Petr Matyáš 2014-07-02 13:05:31 UTC
To set the hostname if it isn't set and resolvable, but I guess most of the people have that set correctly, so you can probably close this bug.

Comment 15 Yedidyah Bar David 2016-01-31 10:11:41 UTC

*** This bug has been marked as a duplicate of bug 1226910 ***