[Engine-devel] 答复: Engine-devel Digest, Vol 20, Issue 39
by wlbleaboy@126
Re: ovirt-engine-sdk with C (Jarod. w)
Yes, you understanded my idea, I want to use c to invoke ovirt
engine RestAPI directly,
I'll try it(libcurl), but is there any exist example in ovirt-engine
project. I just want to connect
to ovirt-engine and get vms info, console vm and do some action(start,
stop.).
thinks.
-----ÓÊŒþÔŒþ-----
·¢ŒþÈË: engine-devel-bounces(a)ovirt.org
[mailto:engine-devel-bounces@ovirt.org] Žú±í engine-devel-request(a)ovirt.org
·¢ËÍʱŒä: 2013Äê5ÔÂ14ÈÕ 14:19
ÊÕŒþÈË: engine-devel(a)ovirt.org
Ö÷Ìâ: Engine-devel Digest, Vol 20, Issue 39
Send Engine-devel mailing list submissions to
engine-devel(a)ovirt.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.ovirt.org/mailman/listinfo/engine-devel
or, via email, send a message with subject or body 'help' to
engine-devel-request(a)ovirt.org
You can reach the person managing the list at
engine-devel-owner(a)ovirt.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Engine-devel digest..."
Today's Topics:
1. Re: ovirt-engine-sdk with C (Jarod. w)
2. Re: [ANN] New development environment for ovirt-engine
(Yair Zaslavsky)
3. Re: [ANN] New development environment for ovirt-engine
(Alon Bar-Lev)
4. Re: [ANN] New development environment for ovirt-engine
(Alon Bar-Lev)
----------------------------------------------------------------------
Message: 1
Date: Tue, 14 May 2013 10:27:11 +0800
From: "Jarod. w" <work.iec23801(a)gmail.com>
To: "leaboy@126" <wlbleaboy(a)126.com>
Cc: engine-devel(a)ovirt.org
Subject: Re: [Engine-devel] ovirt-engine-sdk with C
Message-ID:
<CAGEoUW8a4XP=VA_NHXd1wD6sqA5dBdPPauMPrQE0RiKQ4Za8Aw(a)mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
2013/5/13 leaboy@126 <wlbleaboy(a)126.com>
> Hi?All****
>
> I felt oivrt-engine-sdk coded with Python is slowly to connect***
> *
>
> ovirt-engine and console vm when a user have many vms, So, I just****
>
> want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk****
>
> with C to connect overt-engine and console vm, would anyone give ****
>
> me some suggestion.
>
Do you want to use c to invoke ovirt engine RestAPI, right?
If yes, you can use libcurl to do the thing, and it'll make you happy.
> ****
>
> ** **
>
> Now, the problem is how can I connect to ovit-engine with C, and*
> ***
>
> how can I get some information of vms, and how ovirrt-engine can ****
>
> respond my action(start,stop, .eg)
>
Agree with Michael Pasternak.
You should parse your code into the mail list, or someone can't help
you.
> ****
>
> ** **
>
>
> Leaboy@beijing****
>
> Thinks***
> *
>
> _______________________________________________
> Engine-devel mailing list
> Engine-devel(a)ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
>
>
--
---
Best Regards
Jarod.W
11 years, 7 months
[Engine-devel] spice-xpi(firefox) plugin for Windows
by Christophe Fergeau
--tsOsTdHNUZQcU9Ye
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi everyone,
Lately I've been hacking on getting the spice-xpi plugin to work on
Windows. This is the Firefox plugin that is used on Linux to implement
the portal SPICE console.
This work has now been merged upstream (
http://cgit.freedesktop.org/spice/spice-xpi/ ), and I've pushed a
scratch build using mingw available from
http://koji.fedoraproject.org/koji/taskinfo?taskID=5265107 (this will go
away in several days). Copying this dll + its dependencies to the
C:\Program Files\Mozilla Firefox\plugins directory are enough to get
a spice-xpi plugin to show up in about:plugins, and to then be able
to start a SPICE client from the spice-xpi test page (
http://teuf.fedorapeople.org/plugins/test.html ).
The dependencies I had to copy are:
gspawn-win32-helper-console.exe
gspawn-win32-helper.exe
iconv.dll
libffi-6.dll
libgcc_s_sjlj-1.dll
libgio-2.0-0.dll
libglib-2.0-0.dll
libgmodule-2.0-0.dll
libgobject-2.0-0.dll
libgthread-2.0-0.dll
libintl-8.dll
libstdc++-6.dll
pthreadGC2.dll
zlib1.dll
(I picked them from the various mingw-* fedora packages).
The reason for this email is that to be usable from oVirt, some portal
changes are needed as it currently only tries to use the spice-xpi plugin
on Linux platforms.
Another fuzzy bit is how to get this plugin to the users' machines...
And that's about all I had to say in that email ;) Let me know if that's
useful to oVirt, how you want to integrate this, ...
Cheers,
Christophe
--tsOsTdHNUZQcU9Ye
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iEYEARECAAYFAlFumXkACgkQJKRp+3pW945+vwCglgqxiHD3g6EOC12U9Ydg8pVS
kmMAoIRXM5MepmgnvK+UJMF1rjiVJ4r/
=QcGM
-----END PGP SIGNATURE-----
--tsOsTdHNUZQcU9Ye--
11 years, 7 months
[Engine-devel] DB performance optimization
by Liran Zelkha
Hi all,
There is a WIP for caching and DB performance optimization. Please look at - http://gerrit.ovirt.org/#/c/14188/4
To summarize, it includes automatic caching for some business entities (*_static for instance), break up of VDS to VDS_static, VDS_dynamic and VDS_statistics, and support for batch updates.
Please share if/where you think batch updates can be used (for a usage scenario, please check InterfaceDaoDbFacadeImpl.massUpdateStatisticsForVds()).
Future tasks will include update sensitivity, better Collection caching and trying to minimize getConnection() calls.
Would love your comments and ideas.
Thanks.
11 years, 7 months
[Engine-devel] [ANN] Technology preview of new ovirt-engine setup
by Alon Bar-Lev
Hello,
We[1] are working on a re-implementation of ovirt-engine setup to a more advanced and customizable implementation.
A significant feature is the ability to use the installer on different distributions, first was Gentoo[2], I am working on Ubuntu.
Another[3] major features is the ability to use the same setup procedure for production and development.
Among of other changes is the option to install product into existing database without having the DBA user, avoid redirection of root URI into application, ability to customize almost anything, and the option of localization.
Although this is technology preview and likely to break, we merged this so people may experience the new setup at early stage and provide feedback so we may solve as many issues as we can before product release.
So come on, you brave people... let's see you break our setup!
This should be available at tomorrow's nightly packages.
STATUS
Side-by-side installation
New installer and legacy installers are available side-by-side.
Legacy installer: engine-setup, engine-upgrade, engine-cleanup.
New installer: engine-seutp-2, engine-cleanup-2.
This means that once ovirt-engine is installed, there is an option to use the legacy setup or the new setup.
Compatibility
Onces setup is done by either, it cannot be updated by the other.
We will work toward having a solution of upgrade legacy to the new, but not the other way around.
Coverage
setup should be feature complete.
cleanup currently only clean files that were created by the setup, not these which were modified.
upgrade is implemented using re-execution of setup, currently only database upgrade is performed, no package upgrade.
Thank you,
Sandro Bonazzola,
Alex Lourie,
Alon Bar-Lev
[1] Sandro Bonazzola, Alex Lourie, Alon Bar-Lev
[2] https://wiki.gentoo.org/wiki/OVirt
[3] http://lists.ovirt.org/pipermail/engine-devel/2013-May/004532.html
11 years, 7 months
[Engine-devel] Build ovirt-engine with Eclipse
by wanglibo
ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£
------=_NextPart_000_000F_01CE4D65.DC494CB0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi, all:
I want to know which IDE or environment you are using to develop
ovirt-engine,
Recently, I want to build and debug ovirt-engine with Eclipse, but when I
install all the
plugins for build it in eclipse, and install jboss and postgre-sql, and then
how can I
built it , and deploy it, and debug it .
I tried to use eclipse like
http://www.ovirt.org/Building_Ovirt_Engine/IDE , but
failed.
------=_NextPart_000_000F_01CE4D65.DC494CB0
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:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"\6279\6CE8\6846\6587\672C Char";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:9.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.Char
{mso-style-name:"\6279\6CE8\6846\6587\672C Char";
mso-style-priority:99;
mso-style-link:\6279\6CE8\6846\6587\672C;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</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=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>
<div class=3DSection1>
<p class=3DMsoNormal><span lang=3DEN-US>Hi, all:<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> I
want to know which IDE or environment you are using to develop =
ovirt-engine,<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Recently, I want to build and =
debug ovirt-engine
with Eclipse, but when I install all the <o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>plugins for build it in eclipse, =
and
install jboss and postgre-sql, and then how can I <o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>built it , and deploy it, and =
debug it . <o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> I
tried to use eclipse like <a
href=3D"http://www.ovirt.org/Building_Ovirt_Engine/IDE">http://www.ovirt.=
org/Building_Ovirt_Engine/IDE</a>
, but<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>failed.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
</div>
</body>
</html>
------=_NextPart_000_000F_01CE4D65.DC494CB0--
11 years, 7 months
[Engine-devel] engine-setup rpm upgrade failing
by Dead Horse
Attempting to upgrade engine-setup rpm built from commit:
21d1ae55ad90b7448fea1ec2a389af176b70d528
With engine-setup rpm build from latest master
results in:
Transaction Check Error:
file /usr/share/ovirt-engine/conf/engine-config-install.properties from
install of ovirt-engine-setup-3.3.0-17.fc18.noarch conflicts with file from
package ovirt-engine-3.3.0-16.fc18.noarch
file /usr/share/ovirt-engine/conf/version from install of
ovirt-engine-setup-3.3.0-17.fc18.noarch conflicts with file from package
ovirt-engine-3.3.0-16.fc18.noarch
Error Summary
-------------
- DHC
11 years, 7 months
[Engine-devel] Migrating engine-setup to otopi
by Alex Lourie
Hi All
Recent development of the otopi [1] framework allows us to migrate the engine-setup,
upgrade and cleanup (and potentially other) utilities to implementation as an otopi
plugin.
Potential benefits of such a move are:
1. Be able to port engine to other distributions.
2. Be able to install engine in a development mode.
3. Be able to customize installation easily.
4. Share installation of components (reports, dwh).
5. Modular implementation, reduce maintenance costs.
6. Code reuse of installer code for multiple purposes (host-deploy,
enigne-setup).
Currently we are in the process of creating a 'setup' plugin for
the otopi, and the progress can be monitored at [2]. The current
roadmap for the feature is as follows:
1. Recreate the configuration utilities as plugins in otopi.
2. Support side-by side installation using both the old and the
new utilities.
3. Switch to the new utility when the confidence that it is on-par
with an old one is high.
Our goal is to have the new utilities ready for 3.3 release (at
least for the step 2 in the roadmap).
We'd like to hear as much feedback as possible, so we could
address it as soon as possible.
Thanks!
[1] http://gerrit.ovirt.org/#/q/project:otopi,n,z
[2] http://www.ovirt.org/Features/Otopi_Infra_Migration
11 years, 7 months
[Engine-devel] Build ovirt-engine with Eclipse
by leaboy@126
ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£
------=_NextPart_000_0014_01CE4D65.FF78DE30
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi, all:
I want to know which IDE or environment you are using to develop
ovirt-engine,
Recently, I want to build and debug ovirt-engine with Eclipse, but when I
install all the
plugins for build it in eclipse, and install jboss and postgre-sql, and then
how can I
built it , and deploy it, and debug it .
I tried to use eclipse like
http://www.ovirt.org/Building_Ovirt_Engine/IDE , but
failed.
------=_NextPart_000_0014_01CE4D65.FF78DE30
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=3D"Content-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:\5B8B\4F53;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
@font-face
{font-family:"\@\5B8B\4F53";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"\6279\6CE8\6846\6587\672C Char";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:9.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.Char
{mso-style-name:"\6279\6CE8\6846\6587\672C Char";
mso-style-priority:99;
mso-style-link:\6279\6CE8\6846\6587\672C;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</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=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>
<div class=3DSection1>
<p class=3DMsoNormal><span lang=3DEN-US>Hi, all:<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US>
I want to know which IDE or environment you are using to develop =
ovirt-engine,<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Recently, I want to build and =
debug
ovirt-engine with Eclipse, but when I install all the =
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>plugins for build it in eclipse, =
and
install jboss and postgre-sql, and then how can I <o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>built it , and deploy it, and =
debug it . <o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US>
I tried to use eclipse like <a
href=3D"http://www.ovirt.org/Building_Ovirt_Engine/IDE">http://www.ovirt.=
org/Building_Ovirt_Engine/IDE</a>
, but<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>failed.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
</div>
</body>
</html>
------=_NextPart_000_0014_01CE4D65.FF78DE30--
11 years, 7 months
[Engine-devel] Device custom properties
by Martin Perina
Hi,
I'm currently trying to implement device custom properties infrastructure in ovirt-engine.
During discussion with Yair, we found out, that it's not clear, for what type of devices
custom properties should be available? In engine we have the VmDeviceType enum which
contains following values:
FLOPPY("floppy", "14"),
DISK("disk", "17"),
CDROM("cdrom", "15"),
INTERFACE("interface", "10"),
BRIDGE("bridge", "3"),
VIDEO("video", "20"),
USB("usb", "23"),
CONTROLLER("controller", "23"),
REDIR("redir", "23"),
SPICEVMC("spicevmc", "23"),
QXL("qxl"),
CIRRUS("cirrus"),
SOUND("sound"),
ICH6("ich6"),
AC97("ac97"),
MEMBALLOON("memballoon"),
SMARTCARD("smartcard"),
BALLOON("balloon"),
OTHER("other", "0"),
UNKNOWN("unknown", "-1");
But VmDevice class has two String attributes device and type. So for example a disk is a device
which has device set to disk and type set to disk (according to VmDeviceCommonUtils.isDisk method).
So my question is, if I have a custom properties for disk, will they be available for all disk
devices (disk, cdrom, floppy, ...) or only for real disk? So should we support custom properties
for all VmDeviceType enum value separately?
Thanks for suggestions
Martin
11 years, 7 months