[Engine-devel] Getting Hosts in a Data Center using the oVirt API
by Schoenbrun, Dustin
--_000_CE147D80D9B0dustinschoenbrunnetappcom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hey Michael,
I had a question about what the best way of getting all hosts within a data=
center was using the oVirt Java API. Currently, we've been doing a "revers=
e lookup" from all hosts present in the oVirt Engine to see what clusters t=
hey're in and then finding out what data center the cluster belongs to. Tha=
nks in advance, Michael!
-- Dustin
--_000_CE147D80D9B0dustinschoenbrunnetappcom_
Content-Type: text/html; charset="us-ascii"
Content-ID: <B3BCD3481914DD4A954C01CE14D8DF57(a)hq.netapp.com>
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif; ">
<div>
<div>
<div>Hey Michael,</div>
<div><br>
</div>
<div>I had a question about what the best way of getting all hosts within a=
data center was using the oVirt Java API. Currently, we've been doing a &q=
uot;reverse lookup" from all hosts present in the oVirt Engine to see =
what clusters they're in and then finding
out what data center the cluster belongs to. Thanks in advance, Michael!</=
div>
<div><br>
</div>
<div>
<div>-- Dustin</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>
--_000_CE147D80D9B0dustinschoenbrunnetappcom_--
11 years, 4 months
[Engine-devel] fail to add host from portal
by Chen, Wei D
------=_NextPart_000_0022_01CE8926.DC07BBE0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
It fails when add a host from portal, and error info as follows, anyone can give us some suggestion?
2013-07-25 22:55:39,539 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) Correlation ID:
296737fb, Call Stack: null, Custom Event ID: -1, Message: Installing Host onode. Logs at host located at:
'/tmp/ovirt-host-deploy-20130725105531.log'.
2013-07-25 22:55:39,563 ERROR [org.ovirt.engine.core.bll.VdsDeploy] (VdsDeploy) Error during deploy dialog:
java.lang.NullPointerException
at org.ovirt.otopi.dialog.MachineDialogParser.cliEnvironmentGet(MachineDialogParser.java:236) [otopi.jar:]
at org.ovirt.engine.core.bll.VdsDeploy$14.call(VdsDeploy.java:347) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy._nextCustomizationEntry(VdsDeploy.java:579) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy._threadMain(VdsDeploy.java:791) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy.access$1800(VdsDeploy.java:76) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy$44.run(VdsDeploy.java:882) [bll.jar:]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
2013-07-25 22:55:39,565 ERROR [org.ovirt.engine.core.bll.VdsDeploy] (pool-6-thread-5) [296737fb] Error during host
onode.sh.intel.com install: java.lang.NullPointerException
at org.ovirt.otopi.dialog.MachineDialogParser.cliEnvironmentGet(MachineDialogParser.java:236) [otopi.jar:]
at org.ovirt.engine.core.bll.VdsDeploy$14.call(VdsDeploy.java:347) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy._nextCustomizationEntry(VdsDeploy.java:579) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy._threadMain(VdsDeploy.java:791) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy.access$1800(VdsDeploy.java:76) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy$44.run(VdsDeploy.java:882) [bll.jar:]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
2013-07-25 22:55:39,568 ERROR [org.ovirt.engine.core.bll.VdsDeploy] (pool-6-thread-5) [296737fb] Error during host
onode.sh.intel.com install, prefering first exception: java.lang.NullPointerException
at org.ovirt.otopi.dialog.MachineDialogParser.cliEnvironmentGet(MachineDialogParser.java:236) [otopi.jar:]
at org.ovirt.engine.core.bll.VdsDeploy$14.call(VdsDeploy.java:347) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy._nextCustomizationEntry(VdsDeploy.java:579) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy._threadMain(VdsDeploy.java:791) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy.access$1800(VdsDeploy.java:76) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy$44.run(VdsDeploy.java:882) [bll.jar:]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
2013-07-25 22:55:39,569 ERROR [org.ovirt.engine.core.bll.InstallVdsCommand] (pool-6-thread-5) [296737fb] Host installation failed
for host 00c50bb0-f843-442a-a032-acebe0d092c4, onode.: java.lang.NullPointerException
at org.ovirt.otopi.dialog.MachineDialogParser.cliEnvironmentGet(MachineDialogParser.java:236) [otopi.jar:]
at org.ovirt.engine.core.bll.VdsDeploy$14.call(VdsDeploy.java:347) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy._nextCustomizationEntry(VdsDeploy.java:579) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy._threadMain(VdsDeploy.java:791) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy.access$1800(VdsDeploy.java:76) [bll.jar:]
at org.ovirt.engine.core.bll.VdsDeploy$44.run(VdsDeploy.java:882) [bll.jar:]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
2013-07-25 22:55:39,572 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (pool-6-thread-5) [296737fb] START,
SetVdsStatusVDSCommand(HostName = onode, HostId = 00c50bb0-f843-442a-a032-acebe0d092c4, status=InstallFailed,
nonOperationalReason=NONE), log id: 39c3919d
2013-07-25 22:55:39,581 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (pool-6-thread-5) [296737fb] FINISH,
SetVdsStatusVDSCommand, log id: 39c3919d
2013-07-25 22:55:39,589 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (pool-6-thread-5) [296737fb]
Correlation ID: 296737fb, Call Stack: null, Custom Event ID: -1, Message: Host onode installation failed. Please refer to engine.log
and log files under /var/log/ovirt-engine/host-deploy/ on the engine for further details..
Best Regards,
Dave Chen
------=_NextPart_000_0022_01CE8926.DC07BBE0
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIV/jCCBDYw
ggMeoAMCAQICAQEwDQYJKoZIhvcNAQEFBQAwbzELMAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRy
dXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZ
QWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9vdDAeFw0wMDA1MzAxMDQ4MzhaFw0yMDA1MzAxMDQ4Mzha
MG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQGA1UECxMdQWRkVHJ1c3Qg
RXh0ZXJuYWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3Qw
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC39xoz5vIABC054E5b7R+8bA/Ntfojts7e
mxEzl6QpTH2Tn71KvJPtAxrjj8/lbVBa1pcplFqAsEl62y6V/bjKvzc4LR4+kUGtcFbH8E8/6DKe
dMrIkFTpxl8PeJ2aQDwOrGGqXhSPnoehalDc15pOrwWzpnGUnHGzUGAKxxOdOAeGAqjpqGkmGJCr
TLBPI6s6T4TY386f4Wlvu9dC12tE5Met7m1BX3JacQg3s3llpFmglDf3AC8NwpJy2tA4ctsUqEXE
XSp9t7TWxO6szRNEt8kr3UMA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FudGEgQ2xhcmExGjAYBgNVBAoTEUludGVsIENvcnBvcmF0aW9uMSsw
KQYDVQQDEyJJbnRlbCBFeHRlcm5hbCBCYXNpYyBJc3N1aW5nIENBIDRBAgoXLBeeAAIAABTTMIGa
BgsqhkiG9w0BCRACCzGBiqCBhzB5MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFDASBgNVBAcT
C1NhbnRhIENsYXJhMRowGAYDVQQKExFJbnRlbCBDb3Jwb3JhdGlvbjErMCkGA1UEAxMiSW50ZWwg
RXh0ZXJuYWwgQmFzaWMgSXNzdWluZyBDQSA0QQIKFywXngACAAAU0zANBgkqhkiG9w0BAQEFAASC
AQBvhHuC7L00tasqo4geRaoE7tRLON/Fd7LBRcTKFaWNNA+hnnG33IP5H8uQ9nUtaQ7hneIPGtUS
32T3vmk32V/1QOZEFA3gvXE8kNNUtQxdLhOsI7sRrmPu9wEPFVagM2xVu2woAeeB/osF8j8lDsq9
kIvO73jGuuJMLUsDW1KUf/q+yv8UQMIdWeAZuZ0f9vyZ0iTzNxPSSCBSZa0Xwm9tOohRufUZs2o2
B2hq5wgqI7WFLwU9sjNL/ryhVTNOSXpYVmYz1j355ZNFxwljbM77VP4vSQEpx1xQjViGo+1+cCjy
YsL4q1PCVA4bX1CxQEs627At4Juqd+JQQ0jVyEd7AAAAAAAA
------=_NextPart_000_0022_01CE8926.DC07BBE0--
11 years, 4 months
[Engine-devel] get certificate with SDK
by wlbleaboy@126
ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£
------=_NextPart_000_0001_01CE89E9.CC57E260
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Hi, all:
I can got all the VM=A1=AFs information in
https://{ovirt-engine}/api/vms/{id}
<https://%7bovirt-engine%7d/api/vms/%7bid%7d> , and I can=20
get mostly VM=A1=AFs informations via ovirt-engine-sdk, but I can=A1=AFt =
got
<certificate> via SDK.
=20
This is a part of XML in https://{ovirt-engine}/api/vms/{id}
<https://%7bovirt-engine%7d/api/vms/%7bid%7d> =20
<display>
<type>spice</type>
<address>192.168.1.241</address>
<port>5914</port>
<secure_port>5915</secure_port>
<monitors>1</monitors>
<allow_override>false</allow_override>
<certificate>
<subject>O=3Dthtfc.com,CN=3Dallinone241.thtfc.com</subject>
</certificate>
<smartcard_enabled>false</smartcard_enabled>
</display>
=20
For example, I can port like
vm.get_display().get_port()
=20
but when I want CN, I tyied use
vm.get_display().get_certificate().get_subject()
it return
=20
>>> vm.get_display().get_certificate().get_subject()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'get_subject'
------=_NextPart_000_0001_01CE89E9.CC57E260
Content-Type: text/html;
charset="gb2312"
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=3Dgb2312">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:=CB=CE=CC=E5;
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:"\@=CB=CE=CC=E5";
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.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
can got all the VM=A1=AFs information in <a
href=3D"https://%7bovirt-engine%7d/api/vms/%7bid%7d">https://{ovirt-engin=
e}/api/vms/{id}</a>,
and I can <o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>get mostly VM=A1=AFs =
informations via
ovirt-engine-sdk, but I can=A1=AFt got <certificate> via =
SDK.<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> This
is a part of XML in <a =
href=3D"https://%7bovirt-engine%7d/api/vms/%7bid%7d">https://{ovirt-engin=
e}/api/vms/{id}</a>
<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
<display><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;text-indent:21.0pt'><span
lang=3DEN-US><type>spice</type><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;text-indent:21.0pt'><span
lang=3DEN-US><address>192.168.1.241</address><o:p></o:p></spa=
n></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;text-indent:21.0pt'><span
lang=3DEN-US><port>5914</port><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;text-indent:21.0pt'><span
lang=3DEN-US><secure_port>5915</secure_port><o:p></o:p></span=
></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;text-indent:21.0pt'><span
lang=3DEN-US><monitors>1</monitors><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;text-indent:21.0pt'><span
lang=3DEN-US><allow_override>false</allow_override><o:p></o:p=
></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;text-indent:21.0pt'><b><span
lang=3DEN-US><certificate><o:p></o:p></span></b></p>
<p class=3DMsoNormal =
style=3D'margin-left:42.0pt;text-indent:21.0pt'><b><span
lang=3DEN-US><subject>O=3Dthtfc.com,CN=3Dallinone241.thtfc.com</=
subject><o:p></o:p></span></b></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;text-indent:21.0pt'><b><span
lang=3DEN-US></certificate><o:p></o:p></span></b></p>
<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;text-indent:21.0pt'><span
lang=3DEN-US><smartcard_enabled>false</smartcard_enabled><o:p=
></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span =
lang=3DEN-US></display><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span =
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span lang=3DEN-US>For =
example, I can
port like<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span =
lang=3DEN-US> =
vm.get_display().get_port()<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span =
lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span lang=3DEN-US>but =
when I want CN,
I tyied use<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span =
lang=3DEN-US> =
vm.get_display().get_certificate().get_subject()<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span lang=3DEN-US>it =
return<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span =
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:10.5pt;mso-para-margin-left:1.0gd;
text-indent:21.0pt'><span lang=3DEN-US>>>>
vm.get_display().get_certificate().get_subject()<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:10.5pt;mso-para-margin-left:1.0gd;
text-indent:21.0pt'><span lang=3DEN-US>Traceback (most recent call =
last):<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:10.5pt;mso-para-margin-left:1.0gd;
text-indent:21.0pt'><span lang=3DEN-US> File =
"<stdin>",
line 1, in <module><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:10.5pt;mso-para-margin-left:1.0gd;
text-indent:21.0pt'><span lang=3DEN-US>AttributeError: 'NoneType' object =
has no
attribute 'get_subject'<o:p></o:p></span></p>
</div>
</body>
</html>
------=_NextPart_000_0001_01CE89E9.CC57E260--
11 years, 4 months
[Engine-devel] Linking to bugs from oVirt wiki
by Allon Mureinik
Hi guys,
Since a lot of us will be busy opening bugs as part of the oVirt Test Day, I cooeked up a quick template to help adding Bugzilla links.
You can just use {BZ|number} in your wiki markup, and you'll get a user-friendly link to Bugzilla with the given number (e.g., {BZ|123} will create a link to http://bugzilla.redhat.com/123).
Enjoy,
Allon
11 years, 4 months
[Engine-devel] repository closure
by Sandro Bonazzola
yum install vdsm
Error: Package: vdsm-4.12.0-rc2.12.git6bf7c5b.fc19.x86_64 (ovirt-nightly)
Requires: mom >= 0.3.2-2
Available: mom-0.3.0-2.fc19.noarch (fedora)
mom = 0.3.0-2.fc19
Can we add a job for checking the repository closure?
Just calling:
# repoclosure -r ovirt-nightly -l fedora -l updates
Reading in repository metadata - please wait....
Checking Dependencies
Repos looked at: 3
fedora
ovirt-nightly
updates
Num Packages in Repos: 45486
package: vdsm-4.12.0-rc2.12.git6bf7c5b.fc19.x86_64 from ovirt-nightly
unresolved deps:
mom >= 0:0.3.2-2
--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
11 years, 4 months