[Engine-devel] attempting to deploy ovirt-engine built from source

Ryan Harper ryanh at us.ibm.com
Fri Feb 17 19:17:23 UTC 2012


* Ryan Harper <ryanh at us.ibm.com> [2012-02-17 13:15]:
> * Douglas Landgraf <dougsland at redhat.com> [2012-02-17 12:15]:
> > Hi Ryan,
> 
> Hey Douglas, thanks for the reply,
> 
> > 
> > On 02/17/2012 12:36 PM, Ryan Harper wrote:
> > >Hi,
> > >
> > >I've been attempting to build and deploy ovirt-engine from source; i've
> > >been following the guide[1] and I'm still having a bit of trouble;
> > >hoping for some help here.
> > >
> > >I've got a F16 64-bit server.  I'm using the jboss that's available via
> > >the f16 repos:
> > >
> > >ovirt-engine-jbossas-1.2-2.fc16.x86_64
> > >
> > >which is jboss 7.1 based.  I've updated my .m2/settings.xml to match the
> > >install path of the above RPM:
> > >
> > >
> > >[build at f16-node ear]$ cat ~/.m2/settings.xml
> > ><settings xmlns="http://maven.apache.org/POM/4.0.0"
> > >           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > >           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > >           http://maven.apache.org/xsd/settings-1.0.0.xsd">
> > >
> > ><!--**************************** PROFILES ****************************-->
> > >
> > >         <activeProfiles>
> > >                 <activeProfile>oVirtEnvSettings</activeProfile>
> > >         </activeProfiles>
> > >
> > >         <profiles>
> > >                 <profile>
> > >                         <id>oVirtEnvSettings</id>
> > >                         <properties>
> > >                                 <jbossHome>/usr/share/jboss-as-7.1.0.Beta1b</jbossHome>
> > >                                 <JAVA_1_6_HOME>/usr/lib/jvm/java-1.6.0-openjdk.x86_64</JAVA_1_6_HOME>
> > >                                 <forkTests>always</forkTests>
> > >                         </properties>
> > >                 </profile>
> > >         </profiles>
> > ></settings>
> > >
> > >engine and the gui build fine with the commands from the wiki.  When I 
> > >attempt
> > >to test the connection and webgui they fail.  so I looked out in the
> > >deployment directory and I see the following:
> > >
> > >[root at f16-node deployments]# pwd
> > >/usr/share/jboss-as-7.1.0.Beta1b/standalone/deployments
> > >[root at f16-node deployments]# ls -al
> > >total 28
> > >drwxrwxr-x.  3 jboss-as jboss-as 4096 Feb 17 12:28 .
> > >drwxrwxr-x.  8 jboss-as jboss-as 4096 Feb  3 11:19 ..
> > >-rw-rw-r--.  1 jboss-as jboss-as 8868 Dec  1 16:10 README.txt
> > >drwxrwxr-x  15 build    build    4096 Feb 17 12:21 engine.ear
> > >-rw-rw-r--   1 jboss-as jboss-as 2353 Feb 17 12:21 engine.ear.failed
> > >
> > >I'm attaching the engine.ear.failed.
> > >
> > >
> > >
> > >1. http://ovirt.org/wiki/Building_oVirt_engine
> > I have made a few changes into this url yesterday, have you tried today?
> 
> I looked at the wiki and  didn't see anything significantly different.
> I've pulled the latest engine code and re-ran the build and deploy with
> the same results.
> 
> I did see the "I've made a change how do I test" and the only comment
> there is that the script calls 'mvn' and the rest of the wiki page uses
> 'mvn2' to ensure folks are using the right maven.
> 
> > Have you noticed any error during the maven work? Any error during the 
> > jboss start?
> 
> Not that I can tell.  The build log shows what looks to be errors, but
> it never fails out, and the report lines always show 0 Errors.  Nothing
> from the service restart jboss-as, nothing in /var/log/messages nor
> /var/log/jboss-as/console.log
> 
> > 
> > Can you please try to execute chmod 777 /usr/share/jboss-as and the run 
> > again the deploy commands?
> > http://ovirt.org/wiki/Building_oVirt_engine#Deploy
> 
> [root at f16-node share]# ls -al | grep jboss
> lrwxrwxrwx.    1 jboss-as jboss-as    32 Feb  3 11:13 jboss-as -> /usr/share/jboss-as-7.1.0.Beta1b
> drwxrwxr-x.   10 jboss-as jboss-as  4096 Feb 15 11:09 jboss-as-7.1.0.Beta1b
> 
> They're already 777.
> 
> 
> Again, thanks for the help debugging this.

actually, after the git update, build and restarting jboss, it looks
like everything is running!  Might have been an issue with the current
git checkout that I had.

Again, thanks for taking the time to take a look!

[root at f16-node deployments]# ls -al
total 28
drwxrwxr-x.  3 jboss-as jboss-as 4096 Feb 17 14:15 .
drwxrwxr-x.  8 jboss-as jboss-as 4096 Feb  3 11:19 ..
-rw-rw-r--.  1 jboss-as jboss-as 8868 Dec  1 16:10 README.txt
drwxrwxr-x  15 build    build    4096 Feb 17 14:04 engine.ear
-rw-rw-r--   1 jboss-as jboss-as   10 Feb 17 14:04 engine.ear.deployed


Ryan


-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh at us.ibm.com




More information about the Engine-devel mailing list