Hi All,
I've created a short wiki page with example python code-snippets for
basic environment creation using python's ovirt-engine-sdk, HTH.
http://www.ovirt.org/wiki/Testing/PythonApi
--
Thanks,
Rami Vaknin, QE @ Red Hat, TLV, IL.
On Mon, Jan 23, 2012 at 12:02:05PM +0100, Christian Parpart wrote:
> Hi all,
>
> as suggested in a prior mail, I was now trying out oVirt - however, on
> a non-Redhat/Debian system -
> and ran into huge issues primary due to the lag of information / documenation.
>
> So here my assumptions:
> * oVirt is a web application based on JBoss application server.
> * VDSM is an agent to run on every hypervisor (or also VM?)
> * nothing else needed? (despite jboss, java-jdk-1.6, python-2.7, maven-2.2)
>
> I tried following the install-from-source guides for oVirt and failed at
> a compilation error.
>
> # cd $OVIRT_ENGINE_SRCDIR
> # make
> [.....]
> [INFO] Compiling 186 source files to
> /opt/ovirt/src/ovirt-engine/backend/manager/modules/dal/target/classes
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
> /opt/ovirt/src/ovirt-engine/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/PGHack.java:[9,7]
> error: PGHack is not abstract and does not override abstract method
> getParentLogger() in CommonDataSource
> [...]
>
> There are no remote branches nor tags that looked like "stable" that I
> could test on, too.
>
> So finally (the not favoured version), I tried putting a Fedora 16
> netinstall into a KVM on my hypervisor-test-node
> and installed everything in there, again, following some guide from
> the upstream site.
>
> Since it did not compile anything, the install worked well, but I
> could not add my hypervisor node
> as a host, in fact, it complained about some tools not being able to
> be installed.
>
> What tools? VDSM? how am I supposed to "cleanly" install it if not as
> promoted on the install guide? :(
>
> In the end, I am having nothing working, feeling a little bit sad
> about the possibly wasted time, so I hope you guys can give me a
> hint on how to deal with VDSM (if that's what I am missing here) and
> how to deal with the compile error when installing from source.
Hi Christian,
I am not primarily an ovirt guy, so I hope I am not steering you wrong
here, but since I was the one who made the suggestion that you try
ovirt, I'll take a swag at it. oVirt requires that KVM be operational
on the node, so you may be running up against that requirement if you
aren't running nested virt. I have gotten a VM to work as a node, but
I did have to make it nested, and my experience with nested KVM is
that it still has some rough edges.
I have cc'd the ovirt users list as I do not have the experience to
help you debug the build failure.
Dave
> Best regards,
> Christian Parpart.
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users(a)redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
After further digging I came to conclusion that old 2.0.x version of Maven in the Jpackage free/devel repos for EL had to be the source of what was causing the build failure (must be some incompatibility there). I bootstrapped a clean EL6 build env and installed Maven 3.0.3 by hand. This seems to have done the trick and now I get a successful build. I would suggest an update of the wiki pages for building the ovirt-engine that state Maven 3.x does not work and to use Maven 2.x. I volunteer as well to contribute to the wiki the information on what I did to get the engine to build on EL6. What I did on scientific linux should also work on CentOS and other derivitives.
regards,
Chris Brown
________________________________
From: Brown, Chris (GE Healthcare)
Sent: Fri 1/20/2012 2:24 PM
To: 'Haim Ateya'
Subject: RE: [Users] ovirt-engine build failing on EL6
Ran into that issue yesterday with maven while trying to build under FC16, adjusting the VM memory to 6GB solved the issue.
From: Haim Ateya [mailto:hateya@redhat.com]
Sent: Friday, January 20, 2012 2:10 PM
To: Brown, Chris (GE Healthcare)
Subject: Re: [Users] ovirt-engine build failing on EL6
I have experience with build failures where maven fails with out of memory on machines with less then 8g and 2 cores.
Haim
On Jan 20, 2012, at 22:06, "Brown, Chris (GE Healthcare)" <Christopher.Brown(a)med.ge.com> wrote:
6GB
From: Haim Ateya [mailto:hateya@redhat.com]
Sent: Friday, January 20, 2012 2:06 PM
To: Brown, Chris (GE Healthcare)
Subject: Re: [Users] ovirt-engine build failing on EL6
Hi,
How many Gig of of ram do you have on the build machine?
Haim
On Jan 20, 2012, at 21:22, "Brown, Chris (GE Healthcare)" <Christopher.Brown(a)med.ge.com> wrote:
[DEBUG] (f) runOnlyAtExecutionRoot = false
[DEBUG] (s) siteDirectory = /temp/ovirt-engine/backend/manager/tools/engine-notifier/engine-notifier-resources/target/site
[DEBUG] (f) skipAssembly = false
[DEBUG] (s) tarLongFileMode = warn
[DEBUG] (s) tempRoot = /temp/ovirt-engine/backend/manager/tools/engine-notifier/engine-notifier-resources/target/archive-tmp
[DEBUG] (s) workDirectory = /temp/ovirt-engine/backend/manager/tools/engine-notifier/engine-notifier-resources/target/assembly/work
[DEBUG] -- end configuration --
[INFO] [assembly:single {execution: make-assembly}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org.apache.maven.shared.io.location.ArtifactLocatorStrategy.<init>(Lorg/apache/maven/artifact/factory/ArtifactFactory;Lorg/apache/maven/artifact/resolver/ArtifactResolver;Lorg/apache/maven/artifact/repository/ArtifactRepository;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NoSuchMethodError: org.apache.maven.shared.io.location.ArtifactLocatorStrategy.<init>(Lorg/apache/maven/artifact/factory/ArtifactFactory;Lorg/apache/maven/artifact/resolver/ArtifactResolver;Lorg/apache/maven/artifact/repository/ArtifactRepository;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V
at org.apache.maven.plugin.assembly.io.DefaultAssemblyReader.readAssemblies(DefaultAssemblyReader.java:102)
at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:352)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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:616)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 minutes 10 seconds
[INFO] Finished at: Fri Jan 20 12:01:45 CST 2012
[INFO] Final Memory: 54M/127M
[INFO] ------------------------------------------------------------------------
Any thoughts or ideas what may be going wrong here?
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
Here is the engine-setup log: http://fpaste.org/J70b/
2012-01-20 19:33:43::DEBUG::common_utils::219::root:: Executing
command --> '/etc/pki/ovirt-engine/installCA.sh ovirt.grims.com US
gimrsovirt engine ******** 120119193343+0500 /etc/pki/ovirt-engine
ovirt.grims.com.83876'
2012-01-20 19:33:45::DEBUG::common_utils::226::root:: output =
} Creating CA...
} Creating KeyStore...
}} Converting formats...
> Importing CA certificate...
} Creating client certificate for oVirt...
}} Creating certificate request...
}} Signing certificate request...
2012-01-20 19:33:45::DEBUG::common_utils::227::root:: stderr =
Generating RSA private key, 1024 bit long modulus
....................++++++
......................................++++++
e is 65537 (0x10001)
Using configuration from openssl.conf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'US'
organizationName :PRINTABLE:'gimrsovirt'
commonName :PRINTABLE:'CA-ovirt.grims.com.83876'
Certificate is to be certified until Jan 18 00:33:43 2022 GMT (3650 days)
Write out database with 1 new entries
Data Base Updated
Certificate was added to keystore
Certificate was added to keystore
./SignReq.sh: line 79: /var/lock/ovirt-engine/.openssl.exclusivelock:
No such file or directory
file certs/engine.cer does not exist!
2012-01-20 19:33:45::DEBUG::common_utils::228::root:: retcode = 1
2012-01-20 19:33:45::ERROR::engine-setup::825::root:: Traceback (most
recent call last):
File "/usr/bin/engine-setup", line 789, in _createCA
out, rc = utils.execCmd(cmd, None, True,
output_messages.ERR_RC_CODE, [basedefs.CONST_CA_PASS])
File "/usr/share/ovirt-engine/scripts/common_utils.py", line 231, in execCmd
raise Exception(msg)
Exception: Return Code is not zero
2012-01-20 19:33:45::DEBUG::engine-setup::1759::root:: *** The
following params were used as user input:
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: override-iptables: no
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: http-port: 8080
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: https-port: 8443
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: mac-range:
00:1A:4A:A8:7B:00-00:1A:4A:A8:7B:FF
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: host-fqdn:
ovirt.grims.com
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: auth-pass: ********
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: db-pass: ********
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: org-name: gimrsovirt
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: default-dc-type: NFS
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: config-nfs: yes
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: nfs-mp: /exported
2012-01-20 19:33:45::DEBUG::engine-setup::1763::root:: iso-domain-name: grims
2012-01-20 19:33:45::ERROR::engine-setup::2453::root:: Traceback (most
recent call last):
File "/usr/bin/engine-setup", line 2447, in <module>
main(confFile)
File "/usr/bin/engine-setup", line 2269, in main
runMainFunctions(conf)
File "/usr/bin/engine-setup", line 2176, in runMainFunctions
runFunction(_createCA, output_messages.INFO_CREATE_CA)
File "/usr/bin/engine-setup", line 1170, in runFunction
raise Exception(instance)
Exception: Failed to create certificate authority
-----
[root@fc1664 ~]# host 192.168.123.73
73.123.168.192.in-addr.arpa domain name pointer ovirt.grims.com.
[root@fc1664 ~]# dig @2.3.3.7 ovirt.grims.com +short
192.168.123.73
Postgres is listening:
[root@fc1664 ~]# netstat -ltn | grep -i 5432
tcp 0 0 127.0.0.1:5432 0.0.0.0:*
LISTEN
I can't quite figure this one out. I installed from the repos and the
only thing missing so far is that I have not actually configured
/exported as an NFS mount but I don't think that would cause this
issue. I also ran an engine-cleanup before this command it it came
back all OKAY. Any help is appreciated as I am excited to get this up
and running.
This is a multi-part message in MIME format.
------_=_NextPart_001_01CCD7A7.E5277BDB
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I have been attempting to get the ovirt-engine to build on EL6, in my
case on Scientific Linux 6.1.
I have followed the ovirt-engine build recipe on the wiki except for the
following deviations for EL6 I had to do.
=20
- For Maven2, I installed maven from jpackage free/devel
--> http://mirrors.dotsrc.org/jpackage/6.0/generic/free/
--> http://mirrors.dotsrc.org/jpackage/6.0/generic/devel/
=20
yum install maven.noarch
which yields an installed maven of:
[root@sl6x ~]# mvn -version
/usr/lib/jvm/java
Maven version: 2.0.8
Java version: 1.6.0_20
OS name: "linux" version: "2.6.32-220.2.1.el6.x86_64" arch: "amd64"
Family: "unix"
- For jboss I downloaded and unzipped jboss 5.1 from=20
http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/
--> to /usr/local
I added both the -X and -e to BUILD_FLAGS in the makefile (I am
attempting to build RPMS)
Message body length is limited to 40k so I'll post the tail end of the
log separately since it is lengthy
regards,
Chris
=20
------_=_NextPart_001_01CCD7A7.E5277BDB
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>I have =
been attempting to get the ovirt-engine to build on EL6, in my case on =
Scientific Linux 6.1.<o:p></o:p></p><p class=3DMsoNormal>I have followed =
the ovirt-engine build recipe on the wiki except for the following =
deviations for EL6 I had to do.<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>- For =
Maven2, I installed maven from jpackage free/devel<o:p></o:p></p><p =
class=3DMsoNormal>--> <a =
href=3D"http://mirrors.dotsrc.org/jpackage/6.0/generic/free/">http://mirr=ors.dotsrc.org/jpackage/6.0/generic/free/</a><o:p></o:p></p><p =
class=3DMsoNormal>--> <a =
href=3D"http://mirrors.dotsrc.org/jpackage/6.0/generic/devel/">http://mir=rors.dotsrc.org/jpackage/6.0/generic/devel/</a><o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>yum install =
maven.noarch<o:p></o:p></p><p class=3DMsoNormal>which yields an =
installed maven of:<o:p></o:p></p><p class=3DMsoNormal>[root@sl6x ~]# =
mvn -version<o:p></o:p></p><p =
class=3DMsoNormal>/usr/lib/jvm/java<o:p></o:p></p><p =
class=3DMsoNormal>Maven version: 2.0.8<o:p></o:p></p><p =
class=3DMsoNormal>Java version: 1.6.0_20<o:p></o:p></p><p =
class=3DMsoNormal>OS name: "linux" version: =
"2.6.32-220.2.1.el6.x86_64" arch: "amd64" Family: =
"unix"<span style=3D'color:#1F497D'><o:p></o:p></span></p><p =
class=3DMsoNormal>- For jboss I downloaded and unzipped jboss 5.1 from =
<o:p></o:p></p><p class=3DMsoNormal><a =
href=3D"http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/=
">http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/</a><o=
:p></o:p></p><p class=3DMsoNormal>--> to /usr/local<span =
style=3D'color:#1F497D'><o:p></o:p></span></p><p class=3DMsoNormal>I =
added both the -X and -e to BUILD_FLAGS in the makefile (I am attempting =
to build RPMS)<o:p></o:p></p><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><span style=3D'color:navy'>Message body =
length is limited to 40k so I'll post the tail end of the log separately =
since it is lengthy<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><span =
style=3D'color:navy'>regards,<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><span =
style=3D'color:navy'>Chris<br><br></span><span =
style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif"'><o:p></o:p></span></p><p =
class=3DMsoNormal><o:p> </o:p></p></div></body></html>
------_=_NextPart_001_01CCD7A7.E5277BDB--
As part of summarizing the awesome test day we had yesterday (Thanks Moran
and all participants), I've created
http://www.ovirt.org/wiki/Releases/First_Release_Blockers.
If you think you noticed/opened/fixed a critical bug, please add it to the
wiki above.
Thanks for cooperation,
--
Ofer Schreiber
Red Hat Israel, Ra'anana
+972-9-7692347
www.redhat.com
This is a multi-part message in MIME format.
--------------030300040308080805030304
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I would like to thank all who has participated the oVirt test day below
are some of the observation seen during the test day
(http://www.ovirt.org/wiki/Testing/OvirtTestDay)
* Participation -
o Participation was mainly from Redhat, i have seen some
mailing list activity which involved some non-redhats but
all 30 bugs opened were by Redhats (28 by Rhevm QE). I was
disappointed that not to many developers taking an active
part in the testing.
o It would be nice to hear some outside opinions on first
encounter with oVirt from the community
* Bugs found:
o total of 30 bugs were found on ovirt - http://bit.ly/AAqM6A
o Bugs per component:
+ ovirt-engine-webadmin - 12 Bugs
+ ovirt-engine-installer - 4 Bugs
+ ovirt-engine-cli - 4 Bugs
+ ovirt-engine-config - 2 Bugs
+ ovirt-engine-core - 3 Bugs
+ ovirt-engine-sdk - 2 Bugs
+ vdsm - 2 Bugs
+ ovirt-engine-api - 1 Bug
* Component status - components are working as expected on basic
operations, except ovirt-engine-cli in which some basic flows are
broken.
o tools weren't tested
I think that all after all we have a stable candidate for first ovirt
version Jan 31th.
Thanks again,
Moran.
--------------030300040308080805030304
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
I would like to thank all who has participated the oVirt test day
below are some of the observation seen during the test day
(<a class="moz-txt-link-freetext" href="http://www.ovirt.org/wiki/Testing/OvirtTestDay">http://www.ovirt.org/wiki/Testing/OvirtTestDay</a>).<br>
<ul>
<li>Participation -</li>
<ul>
<li>Participation was mainly from Redhat, i have seen some
mailing list activity which involved some non-redhats but all
30 bugs opened were by Redhats (28 by Rhevm QE). I was
disappointed that not to many developers taking an active part
in the testing.</li>
<li>It would be nice to hear some outside opinions on first
encounter with oVirt from the community<br>
</li>
</ul>
<li>Bugs found:</li>
<ul>
<li>total of 30 bugs were found on ovirt - <a class="moz-txt-link-freetext" href="http://bit.ly/AAqM6A">http://bit.ly/AAqM6A</a></li>
<li>Bugs per component:</li>
<ul>
<li>ovirt-engine-webadmin - 12 Bugs<br>
</li>
<li>ovirt-engine-installer - 4 Bugs</li>
<li>ovirt-engine-cli - 4 Bugs</li>
<li>ovirt-engine-config - 2 Bugs</li>
<li>ovirt-engine-core - 3 Bugs</li>
<li>ovirt-engine-sdk - 2 Bugs</li>
<li>vdsm - 2 Bugs</li>
<li>ovirt-engine-api - 1 Bug</li>
</ul>
</ul>
<li>Component status - components are working as expected on basic
operations, except ovirt-engine-cli in which some basic flows
are broken.</li>
<ul>
<li>tools weren't tested</li>
</ul>
</ul>
<br>
I think that all after all we have a stable candidate for first
ovirt version Jan 31th.<br>
<br>
Thanks again,<br>
Moran.<br>
<br>
</body>
</html>
--------------030300040308080805030304--