[Users] API Query on --> api.vms.list
by Anil Vettathu
Hi
I am writing a small python script to get the name of all the VMs that
matches a string.
==========
import sys
import getopt
import optparse
import os
import time
from ovirtsdk.api import API
from ovirtsdk.xml import params
URL='https://192.168.1.1:8443/api' #RHEVM API ACCESS URL
USERNAME='admin@internal'
PASSWORD='ovirt'
api=API(url=URL, username=USERNAME, password=PASSWORD)
vmnames = api.vms.list(query = 'name=a')
print vmnames
==========
Print output is,
<ovirtsdk.infrastructure.brokers.VM object at 0x1d4e790>
I was expecting a list of VMs which contains "a" in their names.
Am I doing it correct? Can someone guide me with a small example?
My reference is
http://www.ovirt.org/wiki/SDK#Querying_collection_with_oVirt_search_engin...
Thanks,
Anil
12 years, 5 months
Re: [Users] Fwd: API Query on --> api.vms.list
by Michael Pasternak
Hi Anil,
> -------- Original Message --------
> Subject: [Users] API Query on --> api.vms.list
> Date: Wed, 6 Jun 2012 18:32:51 +0530
> From: Anil Vettathu <anilv.in(a)gmail.com>
> To: users(a)ovirt.org
>
>
>
> Hi
>
> I am writing a small python script to get the name of all the VMs that
> matches a string.
>
> ==========
> import sys
> import getopt
> import optparse
> import os
> import time
> from ovirtsdk.api import API
> from ovirtsdk.xml import params
>
> URL='https://192.168.1.1:8443/api' #RHEVM API ACCESS URL
> USERNAME='admin@internal'
> PASSWORD='ovirt'
>
>
> api=API(url=URL, username=USERNAME, password=PASSWORD)
>
> vmnames = api.vms.list(query = 'name=a')
in this example you have used equals, i.e ovirt engine was guided to find
vm with name 'a', to find vms where name starting with 'a', use "name=a*" query,
to find all vms contains "a" in their names, use "name=*a*" query, for more examples
please see SearchText section of [1].
[1] http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Virtualization_for_S...
> print vmnames
> ==========
>
> Print output is,
>
> <ovirtsdk.infrastructure.brokers.VM object at 0x1d4e790>
>
> I was expecting a list of VMs which contains "a" in their names.
>
> Am I doing it correct? Can someone guide me with a small example?
> My reference is
> http://www.ovirt.org/wiki/SDK#Querying_collection_with_oVirt_search_engin...
>
> Thanks,
> Anil
--
Michael Pasternak
RedHat, ENG-Virtualization R&D
12 years, 5 months
[Users] modifying vmdisk hook
by Nathanaël Blanchet
This is a multi-part message in MIME format.
--------------010501010600070107060506
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hello,
I'm testing hooks in vdsm and I need some help on modifying one of your
pyhton script : vmdisk
(http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=blob;f=vdsm_hooks/vmdisk/befo...)
the hook works great and I'm able now to attach a file device as a
second disk. But I want this disk to be the first bootable disk instead
of the block device one created into the engine. In order to change the
boot order of the disk, I added those lines:
...
source = domxml.createElement('source')
source.setAttribute('file', devpath)
disk.appendChild(source)
boot = domxml.createElement('boot')
boot.setAttribute('order', 1)
disk.appendChild(boot)
# find a name for vdXXX
.....
So the hook permit <boot order=1> item
(http://libvirt.org/formatdomain.html#elementsDisks)
But the vm refuses booting without any logs anywhere...
What is wrong?
Thanks for your help
--
Nathanaël Blanchet
Supervision réseau
Pôle exploitation et maintenance
Département des systèmes d'information
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
blanchet(a)abes.fr
--------------010501010600070107060506
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I'm testing hooks in vdsm and I need some help on modifying one of
your pyhton script : vmdisk
(<a class="moz-txt-link-freetext" href="http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=blob;f=vdsm_hooks/vmdisk/befo...">http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=blob;f=vdsm_hooks/vmdisk/befo...</a>)<br>
the hook works great and I'm able now to attach a file device as a
second disk. But I want this disk to be the first bootable disk
instead of the block device one created into the engine. In order to
change the boot order of the disk, I added those lines: <br>
<br>
...<br>
source = domxml.createElement('source')<br>
source.setAttribute('file', devpath)<br>
disk.appendChild(source)<br>
<br>
<font color="#ff0000"><big>boot = domxml.createElement('boot')<br>
boot.setAttribute('order', 1)<br>
disk.appendChild(boot)</big></font><br>
<br>
# find a name for vdXXX<br>
.....<br>
<br>
So the hook permit <boot order=1> item
(<a class="moz-txt-link-freetext" href="http://libvirt.org/formatdomain.html#elementsDisks">http://libvirt.org/formatdomain.html#elementsDisks</a>)<br>
<br>
But the vm refuses booting without any logs anywhere...<br>
<br>
What is wrong?<br>
<br>
Thanks for your help<br>
<pre class="moz-signature" cols="72">--
Nathanaël Blanchet
Supervision réseau
Pôle exploitation et maintenance
Département des systèmes d'information
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
<a class="moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr">blanchet(a)abes.fr</a> </pre>
</body>
</html>
--------------010501010600070107060506--
12 years, 5 months
[Users] glusterfs and ovirt
by ??????
This is a multi-part message in MIME format.
------=_NextPart_000_0046_01CCF7C2.C523B6F0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi.
Test the ability to work as a storage server glusterfs. Direct support to
glusterf ovirt unfortunately not.
This feature will be added in the future?
Attempted to implement a scheme of work -> glusterfs mounted on a node in a
folder mount glusterfs connected via NFS to ovirt.
It works =)
Now try to mount NFS to 127.0.0.1 and encountered an error:
Command:
[root@noc-4-m77 ~] # / bin / mount-o soft, timeo = 600, retrans = 6,
nosharecache, vers = 3 -t nfs 127.0.0.1 :/share/tmp /tmpgcOezk
Error:
mount.nfs: Unknown error 521
NFS V4 is disabled.
In this mount:
/bin/mount -t nfs 127.0.0.1:/share/ tmp/tmpgtsoetsk is successful.
I understand that this is not a problem ovirt, but you might prompt any
ideas how to fix it?
To use glusterfs in overt to execute a commandL
Mount -t glusterfs -o log-level = WARNING, log-file = /var/log/gluster.log
noc-1 :/mht / /share
I can prescribe it in vdsm that it was carried out instead of /bin/mount-o
soft, timeo = 600, retrans = 6, nosharecache, vers = 3 -t nfs
127.0.0.1:/share/tmp/tmpgtsOetsk
------=_NextPart_000_0046_01CCF7C2.C523B6F0
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:"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:0cm;
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-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
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=3DRU link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
lang=3DEN-US>Hi.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Test the ability to work as a storage server glusterfs. =
Direct support to glusterf ovirt unfortunately =
not.<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US>This =
feature will be added in the future?<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>Attempted to implement a scheme of =
work -> glusterfs mounted on a node in a folder mount glusterfs =
connected via NFS to ovirt.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>It works =
=3D)<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US>Now =
try to mount NFS to 127.0.0.1 and encountered an =
error:<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Command:<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>[root@noc-4-m77 ~] # / bin / mount-o soft, timeo =3D 600, =
retrans =3D 6, nosharecache, vers =3D 3 -t nfs 127.0.0.1 :/share/tmp =
/tmpgcOezk<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Error:<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>mount.nfs: Unknown error 521<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>NFS V4 is =
disabled.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>In this mount:<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>/bin/mount -t nfs 127.0.0.1:/share/ =
tmp/tmpgtsoetsk is successful.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>I understand that this is not a =
problem ovirt, but you might prompt any ideas how to fix =
it?<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>To use glusterfs in overt to execute a =
commandL<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Mount -t glusterfs -o log-level =3D WARNING, log-file =3D =
/var/log/gluster.log noc-1 :/mht / /share<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>I can prescribe it in vdsm that it =
was carried out instead of /bin/mount-o soft, timeo =3D 600, retrans =3D =
6, nosharecache, vers =3D 3 -t nfs =
127.0.0.1:/share/tmp/tmpgtsOetsk<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_0046_01CCF7C2.C523B6F0--
12 years, 5 months
[Users] Failed to enable SELinux boolean
by Nerijus Baliunas
Hello,
recent snapshot, engine-setup fails (selinux is disabled in the OS):
2012-06-05 03:34:26::DEBUG::setup_sequences::59::root:: running _configureSelinuxBoolean
2012-06-05 03:34:26::DEBUG::engine-setup::668::root:: Enable httpd_can_network_connect boolean
2012-06-05 03:34:26::DEBUG::common_utils::309::root:: Executing command --> '/usr/sbin/setsebool -P httpd_can_network_connect 1'
2012-06-05 03:34:26::DEBUG::common_utils::335::root:: output =
2012-06-05 03:34:26::DEBUG::common_utils::336::root:: stderr = setsebool: SELinux is disabled.
2012-06-05 03:34:26::DEBUG::common_utils::337::root:: retcode = 1
2012-06-05 03:34:26::DEBUG::setup_sequences::62::root:: Traceback (most recent call last):
File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60, in run
function()
File "/usr/bin/engine-setup", line 670, in _configureSelinuxBoolean
out, rc = utils.execCmd(cmd, None, True, output_messages.ERR_FAILED_UPDATING_SELINUX_BOOLEAN)
File "/usr/share/ovirt-engine/scripts/common_utils.py", line 340, in execCmd
raise Exception(msg)
Exception: Failed to enable SELinux boolean
Regards,
Nerijus
12 years, 5 months
[Users] VM can't start
by ovirt@qip.ru
This is a message in Mime Format. If you see this, your mail reader does not support this format.
--=_091aeb24b8baea54570c0fa5bc617be1
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Fedora17 + rpms from jenkins=0A=0A2012-06-04 21:44:27,136 INFO [org.ovi=
rt.engine.core.bll.RunVmCommand] (pool-3-thread-50) [6f67433a] Running c=
ommand: RunVmCommand internal: false. Entities affected : ID: d6d12e2a-=
0d94-45a3-afd1-d2bbaa85b998 Type: VM=0A2012-06-04 21:44:27,154 INFO [or=
g.ovirt.engine.core.vdsbroker.CreateVmVDSCommand] (pool-3-thread-50) [6f=
67433a] START, CreateVmVDSCommand(vdsId =3D 0f0debf4-ae49-11e1-9b0a-000c=
290cc066, vmId=3Dd6d12e2a-0d94-45a3-afd1-d2bbaa85b998, vm=3Dorg.ovirt.en=
gine.core.common.businessentities.VM@347c70a5), log id: 7373c0e2=0A2012-=
06-04 21:44:27,164 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.Crea=
teVDSCommand] (pool-3-thread-50) [6f67433a] START, CreateVDSCommand(vdsI=
d =3D 0f0debf4-ae49-11e1-9b0a-000c290cc066, vmId=3Dd6d12e2a-0d94-45a3-af=
d1-d2bbaa85b998, vm=3Dorg.ovirt.engine.core.common.businessentities.VM@3=
47c70a5), log id: 6413c10c=0A2012-06-04 21:44:27,170 ERROR [org.ovirt.en=
gine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (pool-3-thread-50) [6f67=
433a] Failed in CreateVDS method, for vds: kvm04; host: 192.168.130.238=
=0A2012-06-04 21:44:27,173 ERROR [org.ovirt.engine.core.vdsbroker.VDSCom=
mandBase] (pool-3-thread-50) [6f67433a] Command CreateVDS execution fail=
ed. Exception: ArrayIndexOutOfBoundsException: 1=0A2012-06-04 21:44:27,1=
77 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand] (p=
ool-3-thread-50) [6f67433a] FINISH, CreateVDSCommand, log id: 6413c10c=
=0A2012-06-04 21:44:27,180 ERROR [org.ovirt.engine.core.vdsbroker.Create=
VmVDSCommand] (pool-3-thread-50) [6f67433a] Error in excuting CreateVmVD=
SCommand: java.lang.ArrayIndexOutOfBoundsException: 1=0A at org.o=
virt.engine.core.vdsbroker.vdsbroker.VmInfoBuilderBase.addCpuPinning(VmI=
nfoBuilderBase.java:105) [engine-vdsbroker.jar:]=0A at org.ovirt.=
engine.core.vdsbroker.vdsbroker.VmInfoBuilderBase.buildVmProperties(VmIn=
foBuilderBase.java:50) [engine-vdsbroker.jar:]=0A at org.ovirt.en=
gine.core.vdsbroker.vdsbroker.CreateVDSCommand.buildVmData(CreateVDSComm=
and.java:60) [engine-vdsbroker.jar:]=0A at org.ovirt.engine.core.=
vdsbroker.vdsbroker.CreateVDSCommand.ExecuteVdsBrokerCommand(CreateVDSCo=
mmand.java:24) [engine-vdsbroker.jar:]=0A at org.ovirt.engine.cor=
e.vdsbroker.vdsbroker.VdsBrokerCommand.ExecuteVDSCommand(VdsBrokerComman=
d.java:75) [engine-vdsbroker.jar:]=0A at org.ovirt.engine.core.vd=
sbroker.VDSCommandBase.ExecuteCommand(VDSCommandBase.java:60) [engine-vd=
sbroker.jar:]=0A at org.ovirt.engine.core.dal.VdcCommandBase.Exec=
ute(VdcCommandBase.java:41) [engine-dal.jar:]=0A at org.ovirt.eng=
ine.core.vdsbroker.CreateVmVDSCommand.ExecuteVdsIdCommand(CreateVmVDSCom=
mand.java:69) [engine-vdsbroker.jar:]=0A at org.ovirt.engine.core=
.vdsbroker.VdsIdVDSCommandBase.ExecuteVDSCommand(VdsIdVDSCommandBase.jav=
a:40) [engine-vdsbroker.jar:]=0A at org.ovirt.engine.core.vdsbrok=
er.VDSCommandBase.ExecuteCommand(VDSCommandBase.java:60) [engine-vdsbrok=
er.jar:]=0A at org.ovirt.engine.core.dal.VdcCommandBase.Execute(V=
dcCommandBase.java:41) [engine-dal.jar:]=0A at org.ovirt.engine.c=
ore.vdsbroker.ResourceManager.runVdsCommand(ResourceManager.java:413) [e=
ngine-vdsbroker.jar:]=0A at org.ovirt.engine.core.bll.VDSBrokerFr=
ontendImpl.RunVdsCommand(VDSBrokerFrontendImpl.java:35) [engine-bll.jar:=
]=0A at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.RunAsyncV=
dsCommand(VDSBrokerFrontendImpl.java:71) [engine-bll.jar:]=0A at=
org.ovirt.engine.core.bll.RunVmCommand.CreateVm(RunVmCommand.java:388)=
[engine-bll.jar:]=0A at org.ovirt.engine.core.bll.RunVmCommand.R=
unVm(RunVmCommand.java:213) [engine-bll.jar:]=0A at org.ovirt.eng=
ine.core.bll.RunVmCommand.ExecuteVmCommand(RunVmCommand.java:259) [engin=
e-bll.jar:]=0A at org.ovirt.engine.core.bll.VmCommand.executeComm=
and(VmCommand.java:100) [engine-bll.jar:]=0A at org.ovirt.engine.=
core.bll.CommandBase.ExecuteWithoutTransaction(CommandBase.java:757) [en=
gine-bll.jar:]=0A at org.ovirt.engine.core.bll.CommandBase.execut=
eActionInTransactionScope(CommandBase.java:849) [engine-bll.jar:]=0A =
at org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBa=
se.java:1146) [engine-bll.jar:]=0A at org.ovirt.engine.core.utils=
.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.j=
ava:168) [engine-utils.jar:]=0A at org.ovirt.engine.core.utils.tr=
ansaction.TransactionSupport.executeInScope(TransactionSupport.java:107)=
[engine-utils.jar:]=0A at org.ovirt.engine.core.bll.CommandBase.=
Execute(CommandBase.java:864) [engine-bll.jar:]=0A at org.ovirt.e=
ngine.core.bll.CommandBase.ExecuteAction(CommandBase.java:269) [engine-b=
ll.jar:]=0A at org.ovirt.engine.core.bll.MultipleActionsRunner.ex=
ecuteValidatedCommands(MultipleActionsRunner.java:182) [engine-bll.jar:]=
=0A at org.ovirt.engine.core.bll.MultipleActionsRunner.RunCommand=
s(MultipleActionsRunner.java:162) [engine-bll.jar:]=0A at org.ovi=
rt.engine.core.bll.SortedMultipleActionsRunnerBase.RunCommands(SortedMul=
tipleActionsRunnerBase.java:16) [engine-bll.jar:]=0A at org.ovirt=
.engine.core.bll.MultipleActionsRunner$1.run(MultipleActionsRunner.java:=
84) [engine-bll.jar:]=0A at org.ovirt.engine.core.utils.threadpoo=
l.ThreadPoolUtil$InternalWrapperRunnable.run(ThreadPoolUtil.java:64) [en=
gine-utils.jar:]=0A at java.util.concurrent.Executors$RunnableAda=
pter.call(Executors.java:471) [rt.jar:1.7.0_b147-icedtea]=0A at j=
ava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.ja=
r:1.7.0_b147-icedtea]=0A at java.util.concurrent.FutureTask.run(F=
utureTask.java:166) [rt.jar:1.7.0_b147-icedtea]=0A at java.util.c=
oncurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt=
.jar:1.7.0_b147-icedtea]=0A at java.util.concurrent.ThreadPoolExe=
cutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_b147-icedtea=
]=0A at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_b147-=
icedtea]=0A=0A2012-06-04 21:44:27,254 ERROR [org.ovirt.engine.core.vdsbr=
oker.VDSCommandBase] (pool-3-thread-50) [6f67433a] Command CreateVmVDS e=
xecution failed. Exception: RuntimeException: java.lang.ArrayIndexOutOfB=
oundsException: 1=0A2012-06-04 21:44:27,259 INFO [org.ovirt.engine.core=
.vdsbroker.CreateVmVDSCommand] (pool-3-thread-50) [6f67433a] FINISH, Cre=
ateVmVDSCommand, log id: 7373c0e2=0A2012-06-04 21:44:27,261 ERROR [org.o=
virt.engine.core.bll.RunVmCommand] (pool-3-thread-50) [6f67433a] Command=
org.ovirt.engine.core.bll.RunVmCommand throw Vdc Bll exception. With er=
ror message VdcBLLException: java.lang.RuntimeException: java.lang.Array=
IndexOutOfBoundsException: 1=0A=0A--
--=_091aeb24b8baea54570c0fa5bc617be1
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Fedora17 + rpms from jenkins<br><br>2012-06-04 21:44:27,136 INFO [=
org.ovirt.engine.core.bll.RunVmCommand] (pool-3-thread-50) [6f67433a] Ru=
nning command: RunVmCommand internal: false. Entities affected : I=
D: d6d12e2a-0d94-45a3-afd1-d2bbaa85b998 Type: VM<br>2012-06-04 21:44:27,=
154 INFO [org.ovirt.engine.core.vdsbroker.CreateVmVDSCommand] (poo=
l-3-thread-50) [6f67433a] START, CreateVmVDSCommand(vdsId =3D 0f0debf4-a=
e49-11e1-9b0a-000c290cc066, vmId=3Dd6d12e2a-0d94-45a3-afd1-d2bbaa85b998,=
vm=3Dorg.ovirt.engine.core.common.businessentities.VM@347c70a5), log id=
: 7373c0e2<br>2012-06-04 21:44:27,164 INFO [org.ovirt.engine.core.=
vdsbroker.vdsbroker.CreateVDSCommand] (pool-3-thread-50) [6f67433a] STAR=
T, CreateVDSCommand(vdsId =3D 0f0debf4-ae49-11e1-9b0a-000c290cc066, vmId=
=3Dd6d12e2a-0d94-45a3-afd1-d2bbaa85b998, vm=3Dorg.ovirt.engine.core.comm=
on.businessentities.VM@347c70a5), log id: 6413c10c<br>2012-06-04 21:44:2=
7,170 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand]=
(pool-3-thread-50) [6f67433a] Failed in CreateVDS method, for vds: kvm0=
4; host: 192.168.130.238<br>2012-06-04 21:44:27,173 ERROR [org.ovirt.eng=
ine.core.vdsbroker.VDSCommandBase] (pool-3-thread-50) [6f67433a] Command=
CreateVDS execution failed. Exception: ArrayIndexOutOfBoundsException:=
1<br>2012-06-04 21:44:27,177 INFO [org.ovirt.engine.core.vdsbroke=
r.vdsbroker.CreateVDSCommand] (pool-3-thread-50) [6f67433a] FINISH, Crea=
teVDSCommand, log id: 6413c10c<br>2012-06-04 21:44:27,180 ERROR [org.ovi=
rt.engine.core.vdsbroker.CreateVmVDSCommand] (pool-3-thread-50) [6f67433=
a] Error in excuting CreateVmVDSCommand: java.lang.ArrayIndexOutOfBounds=
Exception: 1<br> at org.ovirt.=
engine.core.vdsbroker.vdsbroker.VmInfoBuilderBase.addCpuPinning(VmInfoBu=
ilderBase.java:105) [engine-vdsbroker.jar:]<br> &=
nbsp; at org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBui=
lderBase.buildVmProperties(VmInfoBuilderBase.java:50) [engine-vdsbroker.=
jar:]<br> at org.ovirt.engine.=
core.vdsbroker.vdsbroker.CreateVDSCommand.buildVmData(CreateVDSCommand.j=
ava:60) [engine-vdsbroker.jar:]<br> &=
nbsp; at org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.Exec=
uteVdsBrokerCommand(CreateVDSCommand.java:24) [engine-vdsbroker.jar:]<br=
> at org.ovirt.engine.core.vds=
broker.vdsbroker.VdsBrokerCommand.ExecuteVDSCommand(VdsBrokerCommand.jav=
a:75) [engine-vdsbroker.jar:]<br> &nb=
sp; at org.ovirt.engine.core.vdsbroker.VDSCommandBase.ExecuteCommand(VDS=
CommandBase.java:60) [engine-vdsbroker.jar:]<br> =
at org.ovirt.engine.core.dal.VdcCommandBase.Execute(V=
dcCommandBase.java:41) [engine-dal.jar:]<br> &nbs=
p; at org.ovirt.engine.core.vdsbroker.CreateVmVDSCommand.Exe=
cuteVdsIdCommand(CreateVmVDSCommand.java:69) [engine-vdsbroker.jar:]<br>=
at org.ovirt.engine.core.vdsb=
roker.VdsIdVDSCommandBase.ExecuteVDSCommand(VdsIdVDSCommandBase.java:40)=
[engine-vdsbroker.jar:]<br> a=
t org.ovirt.engine.core.vdsbroker.VDSCommandBase.ExecuteCommand(VDSComma=
ndBase.java:60) [engine-vdsbroker.jar:]<br>  =
; at org.ovirt.engine.core.dal.VdcCommandBase.Execute(VdcCom=
mandBase.java:41) [engine-dal.jar:]<br> &nb=
sp; at org.ovirt.engine.core.vdsbroker.ResourceManager.runVdsComma=
nd(ResourceManager.java:413) [engine-vdsbroker.jar:]<br> &nbs=
p; at org.ovirt.engine.core.bll.VDSBrokerFronten=
dImpl.RunVdsCommand(VDSBrokerFrontendImpl.java:35) [engine-bll.jar:]<br>=
at org.ovirt.engine.core.bll.=
VDSBrokerFrontendImpl.RunAsyncVdsCommand(VDSBrokerFrontendImpl.java:71)=
[engine-bll.jar:]<br> at org.=
ovirt.engine.core.bll.RunVmCommand.CreateVm(RunVmCommand.java:388) [engi=
ne-bll.jar:]<br> at org.ovirt.=
engine.core.bll.RunVmCommand.RunVm(RunVmCommand.java:213) [engine-bll.ja=
r:]<br> at org.ovirt.engine.co=
re.bll.RunVmCommand.ExecuteVmCommand(RunVmCommand.java:259) [engine-bll.=
jar:]<br> at org.ovirt.engine.=
core.bll.VmCommand.executeCommand(VmCommand.java:100) [engine-bll.jar:]<=
br> at org.ovirt.engine.core.b=
ll.CommandBase.ExecuteWithoutTransaction(CommandBase.java:757) [engine-b=
ll.jar:]<br> at org.ovirt.engi=
ne.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java=
:849) [engine-bll.jar:]<br> at=
org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java=
:1146) [engine-bll.jar:]<br> a=
t org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSu=
ppressed(TransactionSupport.java:168) [engine-utils.jar:]<br>  =
; at org.ovirt.engine.core.utils.transacti=
on.TransactionSupport.executeInScope(TransactionSupport.java:107) [engin=
e-utils.jar:]<br> at org.ovirt=
.engine.core.bll.CommandBase.Execute(CommandBase.java:864) [engine-bll.j=
ar:]<br> at org.ovirt.engine.c=
ore.bll.CommandBase.ExecuteAction(CommandBase.java:269) [engine-bll.jar:=
]<br> at org.ovirt.engine.core=
.bll.MultipleActionsRunner.executeValidatedCommands(MultipleActionsRunne=
r.java:182) [engine-bll.jar:]<br> &nb=
sp; at org.ovirt.engine.core.bll.MultipleActionsRunner.RunCommands(Multi=
pleActionsRunner.java:162) [engine-bll.jar:]<br> =
at org.ovirt.engine.core.bll.SortedMultipleActionsRun=
nerBase.RunCommands(SortedMultipleActionsRunnerBase.java:16) [engine-bll=
.jar:]<br> at org.ovirt.engine=
.core.bll.MultipleActionsRunner$1.run(MultipleActionsRunner.java:84) [en=
gine-bll.jar:]<br> at org.ovir=
t.engine.core.utils.threadpool.ThreadPoolUtil$InternalWrapperRunnable.ru=
n(ThreadPoolUtil.java:64) [engine-utils.jar:]<br>  =
; at java.util.concurrent.Executors$RunnableAdapter.ca=
ll(Executors.java:471) [rt.jar:1.7.0_b147-icedtea]<br> =
at java.util.concurrent.FutureTask$Sync.innerRu=
n(FutureTask.java:334) [rt.jar:1.7.0_b147-icedtea]<br> =
at java.util.concurrent.FutureTask.run(FutureTa=
sk.java:166) [rt.jar:1.7.0_b147-icedtea]<br> &nbs=
p; at java.util.concurrent.ThreadPoolExecutor.runWorker(Thre=
adPoolExecutor.java:1110) [rt.jar:1.7.0_b147-icedtea]<br> &nb=
sp; at java.util.concurrent.ThreadPoolExecutor$W=
orker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_b147-icedtea]<br>&n=
bsp; at java.lang.Thread.run(Thread.=
java:722) [rt.jar:1.7.0_b147-icedtea]<br><br>2012-06-04 21:44:27,254 ERR=
OR [org.ovirt.engine.core.vdsbroker.VDSCommandBase] (pool-3-thread-50) [=
6f67433a] Command CreateVmVDS execution failed. Exception: RuntimeExcept=
ion: java.lang.ArrayIndexOutOfBoundsException: 1<br>2012-06-04 21:44:27,=
259 INFO [org.ovirt.engine.core.vdsbroker.CreateVmVDSCommand] (poo=
l-3-thread-50) [6f67433a] FINISH, CreateVmVDSCommand, log id: 7373c0e2<b=
r>2012-06-04 21:44:27,261 ERROR [org.ovirt.engine.core.bll.RunVmCommand]=
(pool-3-thread-50) [6f67433a] Command org.ovirt.engine.core.bll.RunVmCo=
mmand throw Vdc Bll exception. With error message VdcBLLException: java.=
lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1<br><b=
r><br>--<br><br>
--=_091aeb24b8baea54570c0fa5bc617be1--
12 years, 5 months
[Users] fix_clock_drift.sh and rhel 6
by Nathanaël Blanchet
This is a multi-part message in MIME format.
--------------010905090308060608090102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hi,
Has this bug been resolved on RHEL6.X/Fedora 15 and up? kdump package
with |fix_clock_drift.sh described in the rhev user manual doesn't exist
|anymore.
https://bugzilla.redhat.com/show_bug.cgi?id=516652
All my CPU have the constant_tsc flag available, so can I consider that
my KVM rhel 6 vms will be correctly synchronized ?
--
Nathanaël Blanchet
Supervision réseau
Pôle exploitation et maintenance
Département des systèmes d'information
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
blanchet(a)abes.fr
--------------010905090308060608090102
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Has this bug been resolved on RHEL6.X/Fedora 15 and up? kdump
package with <code class="command">fix_clock_drift.sh described in
the rhev user manual doesn't exist </code>anymore.<br>
<a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=516652">https://bugzilla.redhat.com/show_bug.cgi?id=516652</a><br>
All my CPU have the constant_tsc flag available, so can I consider
that my KVM rhel 6 vms will be correctly synchronized ?<br>
<pre class="moz-signature" cols="72">--
Nathanaël Blanchet
Supervision réseau
Pôle exploitation et maintenance
Département des systèmes d'information
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
<a class="moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr">blanchet(a)abes.fr</a> </pre>
</body>
</html>
--------------010905090308060608090102--
12 years, 5 months
[Users] oVirt Node post boot script
by Jacob Wyatt
If I wanted to have a script run on the on oVirt Node after it has finished booting, where would I do that? Between the persistent files configuration and the newer systemd initialization, I'm trying to find the right way to do this.
-Jacob
12 years, 5 months