Re: [Users] test day help -- console

2014-02-13 Thread Michal Skrivanek

On Feb 12, 2014, at 18:20 , Greg Sheremeta gsher...@redhat.com wrote:

 
 
 - Original Message -
 From: Michal Skrivanek mskri...@redhat.com
 To: Yedidyah Bar David d...@redhat.com
 Cc: Greg Sheremeta gsher...@redhat.com, users users@ovirt.org
 Sent: Wednesday, February 12, 2014 12:16:42 PM
 Subject: Re: [Users] test day help -- console
 
 
 
 On 12 Feb 2014, at 10:09, Yedidyah Bar David d...@redhat.com wrote:
 
 - Original Message -
 From: Michal Skrivanek mskri...@redhat.com
 To: Greg Sheremeta gsher...@redhat.com
 Cc: users users@ovirt.org
 Sent: Wednesday, February 12, 2014 10:43:18 AM
 Subject: Re: [Users] test day help -- console
 
 
 
 On 11 Feb 2014, at 23:57, Greg Sheremeta gsher...@redhat.com wrote:
 
 I'm having a tough time getting a VM console working via VNC. I set a VM
 to
 use VNC, and I installed virt-viewer.
 
 1. When I try to open a .vv file with virt-viewer, I get an error Cannot
 find guest domain /var/tmp/console.vv
 
 Old virt-viewer. Where did you get it from?
 
 It's built into current debian, I use it too. Does it support vv files?
 Didn't know that. The same package also has 'remote-viewer', which works
 for me with:
 remote-viewer vnc://host:port
 
 Yep. For some reason only remote-viewer works. No idea why
 
 
 
 2. Using a VNC client to connect to the host with the password in the .vv
 file just immediately disconnects it -- no error message.
 
 For vv files I use the following script:
 
 =
 #!/bin/sh
 
 LOG=$HOME/vv1.log
 echo = $(date)  $LOG
 echo params $@  $LOG
 
 vvfile=$1
 host=$(sed -n 's/^host=\([a-zA-Z0-9-]*\).*/\1/p' $vvfile)
 port=$(sed -n 's/^port=\([0-9]*\).*/\1/p' $vvfile)
 echo $host  $LOG
 echo $port  $LOG
 sed -n 's/^password=\(.*\)/\1/p' $vvfile | vncviewer -autopass
 ${host}::${port} 
 
 sleep 2
 /bin/rm -f $vvfile
 =
 
 Verified now that it works (I seldom use it because the default is spice
 which works for me).
 
 Remote-viewer should work the same for VNC. For cclient of choice yes, your
 script is the one to use
 
 
 
 Did you make it in 120s?
 
 That was the main reason for this script :-)
 
 Certificates?
 
 Didn't bother with that.
 
 Alon would be happy to hear that I'm sure:-D
 I agree, in reality noone bothers.
 
 
 It's a pretty invasive thing, IMHO. If I see that I need to install a browser 
 certificate for something, first thing I'm going to do is look for the 
 alternative. :/ It's worse than digging out my 2 factor auth token!!

I agree
alternative is to use the native client or plugin:)
you have 3 choices, unfortunately each needs some action/installation.
But hopefully one out of three should work for everyone

Thanks,
michal

 
 
 
 3. noVNC just gives me an empty popup with a gray background.
 
 You didn't import the engine's CA, did you?
 
 
 Any ideas?
 
 The Console Downloads page has all the info to get it work, did you check
 it
 out? (linked from main landing page, display options, user portal...so you
 shouldn't moss it;)
 
 You refer to 'Console Client Resources', which links to [1]?
 I had to do some manual work to get spice-xpi working on Debian as it's not
 packaged for it (and iirc neither are some of the dependencies).
 
 Yes. If you have some handy tips for Debian please feel free to update the
 page
 
 
 [1] http://www.ovirt.org/Console_Client_Resources
 --
 Didi
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Disk Images

2014-02-13 Thread Sven Kieske


Am 13.02.2014 08:33, schrieb andreas.ew...@cbc.de:
 Yes, I know! Why is there this restriction? I have the following scenario: I 
 have a recover vm with one bootable disk attached. Now I want to repair 
 some broken configs from another vm’s boot disk. First I unattach the device 
 from the broken vm. If I forget to remove the bootable flag, then I have to 
 attach the disk again to the broken vm. I remove the bootable flag and attach 
 the disk to my „recover vm“.  This is quite a long way round. 
 This could be a feature request, right?
 

I suggest you open a bugzilla at bugzilla.redhat.com
tagged as [RFE] (request for enhancement)
otherwise you won't get your feature.

But thanks for bringing this issue up!

HTH

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] test day help -- console

2014-02-13 Thread Jiri Belka
On Wed, 12 Feb 2014 12:10:47 -0500 (EST)
Greg Sheremeta gsher...@redhat.com wrote:

 
 
 - Original Message -
  From: Jiri Belka jbe...@redhat.com
  To: Greg Sheremeta gsher...@redhat.com
  Cc: users users@ovirt.org
  Sent: Wednesday, February 12, 2014 4:17:29 AM
  Subject: Re: [Users] test day help -- console
  
  On Tue, 11 Feb 2014 17:57:52 -0500 (EST)
  Greg Sheremeta gsher...@redhat.com wrote:
  
   I'm having a tough time getting a VM console working via VNC. I set a VM 
   to
   use VNC, and I installed virt-viewer.
   
   1. When I try to open a .vv file with virt-viewer, I get an error Cannot
   find guest domain /var/tmp/console.vv
   2. Using a VNC client to connect to the host with the password in the .vv
   file just immediately disconnects it -- no error message.
   3. noVNC just gives me an empty popup with a gray background.
  
  virt-viewer works ok even on my OpenBSD machine at home.
  
  First check version, if old, compile/upgrade yourself. Updating to
  latest spice-gtk, gtk-vnc, virt-viewer recently solved virt-viewer
  core dumps when I had RHEL with GNOME and qxl driver.
  
  j.
  
 
 What version do you have?
 
 Greg

Latest today or some days ago (checking project's website) is 0.6.0.

j.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

2014-02-13 Thread Sven Kieske
Yes, there is REST support, but for ovirt  3.4 the
JSON submitted data format is incomplete, this is just documented
in a BZ somewhere.

So in order to pass all data successfully, you need to use XML.
(especially for the root password)

JSON should be supported from 3.4 but I didn't test this myself
yet.

PS: Be aware: IPv6 is not supported as well, you might want to write
your own cloud-init parser script and pass additional info via
the attach text file method.

HTH



Am 13.02.2014 06:59, schrieb Oved Ourfalli:

 
 Omer - we have REST API support for cloud-init, right?-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] snapshots not shown in webadmin on 3.3.3

2014-02-13 Thread Jiri Belka
On Wed, 12 Feb 2014 16:41:06 -0500 (EST)
Eli Mesika emes...@redhat.com wrote:

 
 
 - Original Message -
  From: Juan Pablo Lorier jplor...@gmail.com
  To: users users@ovirt.org
  Sent: Wednesday, February 12, 2014 6:37:28 PM
  Subject: [Users] snapshots not shown in webadmin on 3.3.3
  
  Hi,
  
  I've updated to 3.3.3 last week and now I find that the snapshots are
  not shown in webadmin. I've taken some new ones to see if it was due to
  the migration, but though they finish correctly, they are not shown in
  the webadmin tab.
  Is there a way to list the snapshots other than the webadmin?
 
 Juan
 I had reproduced that in 3.4 beta 2 , can you please open a bug on that ?
 Thanks
 
 Eli

If this is just Web UI issue than it is known for long time. But there's
no clear reproducer (BZ was filled for RHEVM 3.3). This has something
to do with Firefox cache. With clear FF profile snapshots are visible.
But after some time when are not visible until full reload of the page.

j.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Memory usage

2014-02-13 Thread david van zeebroeck
hello rene
it's during testing check_rhev3 that we found this issue
do you see a workaround for this?


On Wed, Feb 12, 2014 at 6:31 PM, René Koch rk...@linuxland.at wrote:

 On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:
 
  - Original Message -
   From: René Koch rk...@linuxland.at
   To: Koen Vanoppen vanoppen.k...@gmail.com
   Cc: users@ovirt.org
   Sent: Wednesday, February 12, 2014 4:18:37 PM
   Subject: Re: [Users] Memory usage
  
   On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
In The GUI, it says it's using 25% of the memory.
  
  
   I guess it's the real value, right?
   The same happened for the memcached vm, someone reported to me -
   negative value in REST-API, but correct graph in oVirt webadmin GUI.
  
   I fear I have no idea how this can happen - so maybe someone else can
   help you troubleshoot this issue.
   
   
   
2014-02-12 15:10 GMT+01:00 Koen Vanoppen vanoppen.k...@gmail.com:
Thanks for the quick respons, but there is no memcached
running on that VM.
   
   
Kind regards
   
   
   
2014-02-12 15:06 GMT+01:00 René Koch rk...@linuxland.at:
   
On Wed, 2014-02-12 at 14:55 +0100, Koen Vanoppen
wrote:
 Dear all,


 When we monitor one of our machines, we noticed
 that
there was one vm
 that was constantly giving a error of memory usage.
But when we took a
 look at it, there is actually nothing wrong with
 it.
Now we looked
 furhter then that. We looked at the API of the
machine and noticed
 something very strange:

 statistic

   
 href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08
   
 id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
used (agent)/descriptionvalues
   
 type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit


 It's a negative...
   
   
   
Do you have memcached running in this vm?
   
I heard about this issue with memcached, but never
tested memcached in
my oVirt environment. You get the real usage value
with
memory.used = memory.installed + memory.used
   
   
Regards,
René
   


 What could be the problem?


 Kind regards,

 koen

   
 
  Guys,
  these values are usually a result of overcommitment mechanism usage.
  For example, if KSM is effective, it will free a lot of memory pages,
  and total-free-committed becomes negative.


 Thanks a lot for the information.


 
  This was reported in https://bugzilla.redhat.com/show_bug.cgi?id=977758
  and the engine is using memFree reported by vdsm, which is more accurate.
 
  The API reports the old version due to backwards compatibility.


 I just had a look at the bugzilla report and the RHEV documentation
 which says Current memory in bytes used by the virtual machine..
 So this means, the reported values are totally useless for monitoring
 memory usage of a virtual machine if KSM is active. I would expect to
 get the memory usage of a virtual machine and not how much memory is
 consumed on the hypervisor (this is pretty useless information for me).

 Is it planned to report the memory usage in a virtual machine in the API
 as well?


 Regards,
 René


 
  Doron
 
  P.S.
  René- thanks for helping!


 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Memory usage

2014-02-13 Thread Doron Fediuck


- Original Message -
 From: René Koch rk...@linuxland.at
 To: Doron Fediuck dfedi...@redhat.com
 Cc: Koen Vanoppen vanoppen.k...@gmail.com, users@ovirt.org, Martin 
 Sivak msi...@redhat.com
 Sent: Wednesday, February 12, 2014 7:31:47 PM
 Subject: Re: [Users] Memory usage
 
 On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:
  
  - Original Message -
   From: René Koch rk...@linuxland.at
   To: Koen Vanoppen vanoppen.k...@gmail.com
   Cc: users@ovirt.org
   Sent: Wednesday, February 12, 2014 4:18:37 PM
   Subject: Re: [Users] Memory usage
   
   On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
In The GUI, it says it's using 25% of the memory.
   
   
   I guess it's the real value, right?
   The same happened for the memcached vm, someone reported to me -
   negative value in REST-API, but correct graph in oVirt webadmin GUI.
   
   I fear I have no idea how this can happen - so maybe someone else can
   help you troubleshoot this issue.



2014-02-12 15:10 GMT+01:00 Koen Vanoppen vanoppen.k...@gmail.com:
Thanks for the quick respons, but there is no memcached
running on that VM.


Kind regards



2014-02-12 15:06 GMT+01:00 René Koch rk...@linuxland.at:

On Wed, 2014-02-12 at 14:55 +0100, Koen Vanoppen
wrote:
 Dear all,


 When we monitor one of our machines, we noticed that
there was one vm
 that was constantly giving a error of memory usage.
But when we took a
 look at it, there is actually nothing wrong with it.
Now we looked
 furhter then that. We looked at the API of the
machine and noticed
 something very strange:

 statistic


href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08

id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
used (agent)/descriptionvalues

type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit


 It's a negative...



Do you have memcached running in this vm?

I heard about this issue with memcached, but never
tested memcached in
my oVirt environment. You get the real usage value
with
memory.used = memory.installed + memory.used


Regards,
René



 What could be the problem?


 Kind regards,

 koen


  
  Guys,
  these values are usually a result of overcommitment mechanism usage.
  For example, if KSM is effective, it will free a lot of memory pages,
  and total-free-committed becomes negative.
 
 
 Thanks a lot for the information.
 
 
  
  This was reported in https://bugzilla.redhat.com/show_bug.cgi?id=977758
  and the engine is using memFree reported by vdsm, which is more accurate.
  
  The API reports the old version due to backwards compatibility.
 
 
 I just had a look at the bugzilla report and the RHEV documentation
 which says Current memory in bytes used by the virtual machine..
 So this means, the reported values are totally useless for monitoring
 memory usage of a virtual machine if KSM is active. I would expect to
 get the memory usage of a virtual machine and not how much memory is
 consumed on the hypervisor (this is pretty useless information for me).
 
 Is it planned to report the memory usage in a virtual machine in the API
 as well?
 
 
 Regards,
 René
 
 

René,
started digging into this, but it may take some time.

Note that there are 2 memory usage reports; one for the host,
and another for each VM. 
My response is related to the host, while the original question was
for the VM. I still think the root cause is the same (ie- related to
overcommitment; for example the VM may have a balloon inflated), but
would like to properly check and fix if needed.

In order to make sure we keep track of it, please open a bug with all the
relevant info. 

Thanks and keep reporting!
Doron
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] taking advantage of extra disk space on nodes

2014-02-13 Thread Sven Kieske
AFAIK

gluster on the same node as vdsm is not supported and may lead to
problems.

I don't know if this statement still holds true for ovirt 3.4, though.

Maybe someone with more gluster experience can elaborate on this?



Am 12.02.2014 18:48, schrieb Robert Story:
 So I've got a handful of oVirt nodes now, and most of them have over 100G of
 unallocated disk space. I'm trying to figure out how to best take advantage
 of that space. I see two possibilities: storage for oVirt, or
 backup/archive storage.
 
 I'm currently using a single NFS server for VM/iso/export storage (oVirt
 3.3.x on CentOS, if it matters) and don't need to scale to hundreds of
 nodes (probably 10-20, max). Is current gluster support stable enough for
 production? What are the pros/cons of gluster vs NFS?  I like the idea of
 not having a single point of failure but worry about performance.
 
 The other option is to stick with my NFS server and use the extra storage
 for archive/backup space. Here I'm looking for reliability (i.e. losing a
 server won't cause data loss) over performance. Are there pros/cons to
 gluster vs ceph? Will either/both peacefully co-exist with an ovirt node?
 
 All suggestions welcomed. Thanks!


-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Stuck Migration

2014-02-13 Thread Dafna Ron

I think there might be a command to clear the cache.
Omer, is there a command to clear the engine cache aside from restart?


On 02/12/2014 11:32 PM, Maurice James wrote:

That worked. Was there any other way to do it without a restart?

-Original Message-
From: Dafna Ron [mailto:d...@redhat.com]
Sent: Wednesday, February 12, 2014 10:37 AM
To: Maurice James
Cc: Meital Bourvine; users@ovirt.org
Subject: Re: [Users] Stuck Migration

If it's not listed in any of the hosts than its a cache issue in engine.
if you are reluctant to reboot the engine server, than restart the postgress
and than the engine.

Dafna


On 02/12/2014 02:10 PM, Maurice James wrote:

Log is attached
--
--
Date: Wed, 12 Feb 2014 05:52:58 -0500
From: mbour...@redhat.com
To: midnightst...@msn.com
CC: users@ovirt.org
Subject: Re: [Users] Stuck Migration

Can you please attach engine and vdsm longs?


--
--

 *From: *Maurice James midnightst...@msn.com
 *To: *users@ovirt.org
 *Sent: *Wednesday, February 12, 2014 12:45:33 PM
 *Subject: *[Users] Stuck Migration

 I have a vm that is shut down and is somehow stuck in a migration
 state. Im running version 3.3.3-2 on this setup. The vm disk is
 activated and cannot be deactivated, and the vm is shut down and
 cannot be started. When I try to start the vm it tells me that it
 cannot be started because it is in the process of migrating


 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users




___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


--
Dafna Ron



--
Dafna Ron
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Disk Images

2014-02-13 Thread Dafna Ron
There was a talk in the past to allow edit of the disk as its own entity 
it but I think that some of the disk params are vm dependent so editing 
them for disk only are a problem.

Ayal, do you remember why editing the disk on it's own was not implemented?

On 02/13/2014 07:33 AM, andreas.ew...@cbc.de wrote:

Yes, I know! Why is there this restriction? I have the following scenario: I have a 
recover vm with one bootable disk attached. Now I want to repair some broken 
configs from another vm’s boot disk. First I unattach the device from the broken vm. If I 
forget to remove the bootable flag, then I have to attach the disk again to the broken 
vm. I remove the bootable flag and attach the disk to my „recover vm“.  This is quite a 
long way round.
This could be a feature request, right?

best regards
Andreas

Am 12.02.2014 um 16:37 schrieb Dafna Ron d...@redhat.com:


disks can only be edited when attached to a vm

On 02/12/2014 03:04 PM, andreas.ew...@cbc.de wrote:

Hi,

If I remove a disk image from a Virtual Machine, then I can’t edit the disk 
properties in the „Disks“ tab. (e.g. bootable flag)
It is only possible to change the flags on attached disks.
My test environments are engine versions 3.3.3 and 3.4 beta2

Best regards
Andreas


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


--
Dafna Ron



--
Dafna Ron
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Memory usage

2014-02-13 Thread René Koch
On Thu, 2014-02-13 at 03:49 -0500, Doron Fediuck wrote:
 
 - Original Message -
  From: René Koch rk...@linuxland.at
  To: Doron Fediuck dfedi...@redhat.com
  Cc: Koen Vanoppen vanoppen.k...@gmail.com, users@ovirt.org, Martin 
  Sivak msi...@redhat.com
  Sent: Wednesday, February 12, 2014 7:31:47 PM
  Subject: Re: [Users] Memory usage
  
  On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:
   
   - Original Message -
From: René Koch rk...@linuxland.at
To: Koen Vanoppen vanoppen.k...@gmail.com
Cc: users@ovirt.org
Sent: Wednesday, February 12, 2014 4:18:37 PM
Subject: Re: [Users] Memory usage

On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
 In The GUI, it says it's using 25% of the memory.


I guess it's the real value, right?
The same happened for the memcached vm, someone reported to me -
negative value in REST-API, but correct graph in oVirt webadmin GUI.

I fear I have no idea how this can happen - so maybe someone else can
help you troubleshoot this issue.
 
 
 
 2014-02-12 15:10 GMT+01:00 Koen Vanoppen vanoppen.k...@gmail.com:
 Thanks for the quick respons, but there is no memcached
 running on that VM.
 
 
 Kind regards
 
 
 
 2014-02-12 15:06 GMT+01:00 René Koch rk...@linuxland.at:
 
 On Wed, 2014-02-12 at 14:55 +0100, Koen Vanoppen
 wrote:
  Dear all,
 
 
  When we monitor one of our machines, we noticed that
 there was one vm
  that was constantly giving a error of memory usage.
 But when we took a
  look at it, there is actually nothing wrong with it.
 Now we looked
  furhter then that. We looked at the API of the
 machine and noticed
  something very strange:
 
  statistic
 
 
 href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08
 
 id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
 used (agent)/descriptionvalues
 
 type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit
 
 
  It's a negative...
 
 
 
 Do you have memcached running in this vm?
 
 I heard about this issue with memcached, but never
 tested memcached in
 my oVirt environment. You get the real usage value
 with
 memory.used = memory.installed + memory.used
 
 
 Regards,
 René
 
 
 
  What could be the problem?
 
 
  Kind regards,
 
  koen
 
 
   
   Guys,
   these values are usually a result of overcommitment mechanism usage.
   For example, if KSM is effective, it will free a lot of memory pages,
   and total-free-committed becomes negative.
  
  
  Thanks a lot for the information.
  
  
   
   This was reported in https://bugzilla.redhat.com/show_bug.cgi?id=977758
   and the engine is using memFree reported by vdsm, which is more accurate.
   
   The API reports the old version due to backwards compatibility.
  
  
  I just had a look at the bugzilla report and the RHEV documentation
  which says Current memory in bytes used by the virtual machine..
  So this means, the reported values are totally useless for monitoring
  memory usage of a virtual machine if KSM is active. I would expect to
  get the memory usage of a virtual machine and not how much memory is
  consumed on the hypervisor (this is pretty useless information for me).
  
  Is it planned to report the memory usage in a virtual machine in the API
  as well?
  
  
  Regards,
  René
  
  
 
 René,
 started digging into this, but it may take some time.
 
 Note that there are 2 memory usage reports; one for the host,
 and another for each VM. 
 My response is related to the host, while the original question was
 for the VM. I still think the root cause is the same (ie- related to
 overcommitment; for example the VM may have a balloon inflated), but
 would like to properly check and fix if needed.


Yes, I know. So my question was if we can add another value for the
usage in the 

Re: [Users] issues with live snapshot

2014-02-13 Thread Dafna Ron

There's a bug on this:

https://bugzilla.redhat.com/show_bug.cgi?id=1063979

Thanks,

Dafna


On 02/13/2014 09:14 AM, Maor Lipchuk wrote:

Hi Andreas,

Basically it means that the snapshot was created but the process of the
QEMU is still writing on the original volume (The snapshot), so any
changes you will made while this VM is running will be in the snapshot.

This could be fixed when restarting the VM (as described in the event),
after the restart the QEMU process should run pointing to the right volumes.

Regards,
Maor

On 02/13/2014 09:56 AM, andreas.ew...@cbc.de wrote:

Hi,

I want to create a live snapshot, but it fails at the finalizing task. There 
are 3 events:

- Snapshot 'test' creation for VM 'snaptest' was initiated by EwertA
- Failed to create live snapshot 'test' for VM 'snaptest'. VM restart is 
recommended.
- Failed to complete snapshot 'test' creation for VM 'snaptest‘.

Thread-338209::DEBUG::2014-02-13 
08:40:19,672::BindingXMLRPC::965::vds::(wrapper) client [10.98.229.5]::call 
vmSnapshot with ('31c185ce-cc2e-4246-bf46-fcd96cd30050', [{'baseVolumeID': 
'b9448428-b787-4286-b54e-aa54a8f8bb17', 'domainID': 
'54f86ad7-2c12-4322-b2d1-f129f3d20e57', 'volumeID': 
'c677d01e-dc50-486b-a532-f88a71666d2c', 'imageID': 
'db6faf9e-2cc8-4106-954b-fef7e4b1bd1b'}], '') {}
Thread-338209::DEBUG::2014-02-13 
08:40:19,672::task::579::TaskManager.Task::(_updateState) 
Task=`8675b6b0-3216-46a8-8d9a-d0feb02d5b49`::moving from state init - state 
preparing
Thread-338209::INFO::2014-02-13 
08:40:19,672::logUtils::44::dispatcher::(wrapper) Run and protect: 
prepareImage(sdUUID='54f86ad7-2c12-4322-b2d1-f129f3d20e57', 
spUUID='5849b030-626e-47cb-ad90-3ce782d831b3', 
imgUUID='db6faf9e-2cc8-4106-954b-fef7e4b1bd1b', 
leafUUID='c677d01e-dc50-486b-a532-f88a71666d2c')
Thread-338209::DEBUG::2014-02-13 
08:40:19,673::resourceManager::197::ResourceManager.Request::(__init__) 
ResName=`Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57`ReqID=`630a701e-bd44-49ef-8a14-f657b8653a33`::Request
 was made in '/usr/share/vdsm/storage/hsm.py' line '3236' at 'prepareImage'
Thread-338209::DEBUG::2014-02-13 
08:40:19,673::resourceManager::541::ResourceManager::(registerResource) Trying 
to register resource 'Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57' for lock 
type 'shared'
Thread-338209::DEBUG::2014-02-13 
08:40:19,673::resourceManager::600::ResourceManager::(registerResource) 
Resource 'Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57' is free. Now locking as 
'shared' (1 active user)
Thread-338209::DEBUG::2014-02-13 
08:40:19,673::resourceManager::237::ResourceManager.Request::(grant) 
ResName=`Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57`ReqID=`630a701e-bd44-49ef-8a14-f657b8653a33`::Granted
 request
Thread-338209::DEBUG::2014-02-13 
08:40:19,674::task::811::TaskManager.Task::(resourceAcquired) 
Task=`8675b6b0-3216-46a8-8d9a-d0feb02d5b49`::_resourcesAcquired: 
Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57 (shared)
Thread-338209::DEBUG::2014-02-13 
08:40:19,675::task::974::TaskManager.Task::(_decref) 
Task=`8675b6b0-3216-46a8-8d9a-d0feb02d5b49`::ref 1 aborting False
Thread-338209::DEBUG::2014-02-13 
08:40:19,675::lvm::440::OperationMutex::(_reloadlvs) Operation 'lvm reload 
operation' got the operation mutex
Thread-338209::DEBUG::2014-02-13 08:40:19,675::lvm::309::Storage.Misc.excCmd::(cmd) '/usr/bin/sudo 
-n /sbin/lvm lvs --config  devices { preferred_names = [\\^/dev/mapper/\\] 
ignore_suspended_devices=1 write_cache_state=0 disable_after_error_count=3 
obtain_device_list_from_udev=0 filter = [ \'a|/dev/mapper/36000d771ec7c7d5beda78691839c|\', 
\'r|.*|\' ] }  global {  locking_type=1  prioritise_write_locks=1  wait_for_locks=1 }  backup {  
retain_min = 50  retain_days = 0 }  --noheadings --units b --nosuffix --separator | -o 
uuid,name,vg_name,attr,size,seg_start_pe,devices,tags 54f86ad7-2c12-4322-b2d1-f129f3d20e57' (cwd 
None)
Thread-338209::DEBUG::2014-02-13 08:40:19,715::lvm::309::Storage.Misc.excCmd::(cmd) 
SUCCESS: err = ''; rc = 0
Thread-338209::DEBUG::2014-02-13 
08:40:19,739::lvm::475::Storage.LVM::(_reloadlvs) lvs reloaded
Thread-338209::DEBUG::2014-02-13 
08:40:19,740::lvm::475::OperationMutex::(_reloadlvs) Operation 'lvm reload 
operation' released the operation mutex
Thread-338209::DEBUG::2014-02-13 08:40:19,741::lvm::309::Storage.Misc.excCmd::(cmd) '/usr/bin/sudo 
-n /sbin/lvm lvchange --config  devices { preferred_names = [\\^/dev/mapper/\\] 
ignore_suspended_devices=1 write_cache_state=0 disable_after_error_count=3 
obtain_device_list_from_udev=0 filter = [ \'a|/dev/mapper/36000d771ec7c7d5beda78691839c|\', 
\'r|.*|\' ] }  global {  locking_type=1  prioritise_write_locks=1  wait_for_locks=1 }  backup {  
retain_min = 50  retain_days = 0 }  --autobackup n --available y 
54f86ad7-2c12-4322-b2d1-f129f3d20e57/c677d01e-dc50-486b-a532-f88a71666d2c' (cwd None)
Thread-338209::DEBUG::2014-02-13 08:40:19,800::lvm::309::Storage.Misc.excCmd::(cmd) 
SUCCESS: err = ''; rc = 0
Thread-338209::DEBUG::2014-02-13 

Re: [Users] Memory usage

2014-02-13 Thread René Koch
On Thu, 2014-02-13 at 09:39 +0100, david van zeebroeck wrote:
 hello rene
 it's during testing check_rhev3 that we found this issue
 do you see a workaround for this?

At the moment I can only set the memory usage to 0 and add comments to
the documentation that vm memory usage is the usage of the vm on the
host, but not the memory usage in the vm (which I thought it was).

This issue was reported once to me, and check_rhev3 has a calculation of
the memory usage if it's negative in version 1.3, but this only solved
the issue accidentally for this specific vm of this user. As Doron
explained me in previous mail what this memory usage value really means,
I'll revert the commit from
https://github.com/ovido/check_rhev3/issues/10
and set the memory usage to 0 if negative.

I never saw this issue in my environments or on customer sides, as we
normally always monitor vms using agents in the vm and not using
check_rhev3 for vms. I use it on some test machines in my environments,
but have KSM disabled, as it consumes too much CPU load when having
databases running in vms.

Workaround is to get the memory usage from polling agents which are
running directly in the vm like check_mk, snmp, nrpe,... until I can
receive the memory usage in the vm via REST-API and add it to
check_rhev3.


Regards,
René

 
 
 On Wed, Feb 12, 2014 at 6:31 PM, René Koch rk...@linuxland.at wrote:
 On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:
 
  - Original Message -
   From: René Koch rk...@linuxland.at
   To: Koen Vanoppen vanoppen.k...@gmail.com
   Cc: users@ovirt.org
   Sent: Wednesday, February 12, 2014 4:18:37 PM
   Subject: Re: [Users] Memory usage
  
   On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
In The GUI, it says it's using 25% of the memory.
  
  
   I guess it's the real value, right?
   The same happened for the memcached vm, someone reported
 to me -
   negative value in REST-API, but correct graph in oVirt
 webadmin GUI.
  
   I fear I have no idea how this can happen - so maybe
 someone else can
   help you troubleshoot this issue.
   
   
   
2014-02-12 15:10 GMT+01:00 Koen Vanoppen
 vanoppen.k...@gmail.com:
Thanks for the quick respons, but there is no
 memcached
running on that VM.
   
   
Kind regards
   
   
   
2014-02-12 15:06 GMT+01:00 René Koch
 rk...@linuxland.at:
   
On Wed, 2014-02-12 at 14:55 +0100, Koen
 Vanoppen
wrote:
 Dear all,


 When we monitor one of our machines,
 we noticed that
there was one vm
 that was constantly giving a error of
 memory usage.
But when we took a
 look at it, there is actually nothing
 wrong with it.
Now we looked
 furhter then that. We looked at the
 API of the
machine and noticed
 something very strange:

 statistic

   
 
 href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08
   
 
 id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
used (agent)/descriptionvalues
   
 
 type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit


 It's a negative...
   
   
   
Do you have memcached running in this
 vm?
   
I heard about this issue with memcached,
 but never
tested memcached in
my oVirt environment. You get the real
 usage value
with
memory.used = memory.installed +
 memory.used
   
   
Regards,
René
   


 What could be the problem?


 Kind regards,

 koen

   
 
   

Re: [Users] Memory usage

2014-02-13 Thread Koen Vanoppen
We can't turn off the memory balloon option because we are running the
3.3.2 with the bug of the memory balloon. Thx for the help!
On Feb 13, 2014 10:51 AM, Doron Fediuck dfedi...@redhat.com wrote:



 - Original Message -
  From: René Koch rk...@linuxland.at
  To: Doron Fediuck dfedi...@redhat.com
  Cc: Koen Vanoppen vanoppen.k...@gmail.com, users@ovirt.org, Martin
 Sivak msi...@redhat.com
  Sent: Thursday, February 13, 2014 11:16:27 AM
  Subject: Re: [Users] Memory usage
 
  On Thu, 2014-02-13 at 03:49 -0500, Doron Fediuck wrote:
  
   - Original Message -
From: René Koch rk...@linuxland.at
To: Doron Fediuck dfedi...@redhat.com
Cc: Koen Vanoppen vanoppen.k...@gmail.com, users@ovirt.org,
 Martin
Sivak msi...@redhat.com
Sent: Wednesday, February 12, 2014 7:31:47 PM
Subject: Re: [Users] Memory usage
   
On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:

 - Original Message -
  From: René Koch rk...@linuxland.at
  To: Koen Vanoppen vanoppen.k...@gmail.com
  Cc: users@ovirt.org
  Sent: Wednesday, February 12, 2014 4:18:37 PM
  Subject: Re: [Users] Memory usage
 
  On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
   In The GUI, it says it's using 25% of the memory.
 
 
  I guess it's the real value, right?
  The same happened for the memcached vm, someone reported to me -
  negative value in REST-API, but correct graph in oVirt webadmin
 GUI.
 
  I fear I have no idea how this can happen - so maybe someone
 else can
  help you troubleshoot this issue.
  
  
  
   2014-02-12 15:10 GMT+01:00 Koen Vanoppen 
 vanoppen.k...@gmail.com:
   Thanks for the quick respons, but there is no memcached
   running on that VM.
  
  
   Kind regards
  
  
  
   2014-02-12 15:06 GMT+01:00 René Koch 
 rk...@linuxland.at:
  
   On Wed, 2014-02-12 at 14:55 +0100, Koen
 Vanoppen
   wrote:
Dear all,
   
   
When we monitor one of our machines, we
 noticed
that
   there was one vm
that was constantly giving a error of memory
usage.
   But when we took a
look at it, there is actually nothing wrong
 with
it.
   Now we looked
furhter then that. We looked at the API of
 the
   machine and noticed
something very strange:
   
statistic
   
  
 href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08
  
 id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
   used (agent)/descriptionvalues
  
 type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit
   
   
It's a negative...
  
  
  
   Do you have memcached running in this vm?
  
   I heard about this issue with memcached, but
 never
   tested memcached in
   my oVirt environment. You get the real usage
 value
   with
   memory.used = memory.installed + memory.used
  
  
   Regards,
   René
  
   
   
What could be the problem?
   
   
Kind regards,
   
koen
   
  

 Guys,
 these values are usually a result of overcommitment mechanism
 usage.
 For example, if KSM is effective, it will free a lot of memory
 pages,
 and total-free-committed becomes negative.
   
   
Thanks a lot for the information.
   
   

 This was reported in
 https://bugzilla.redhat.com/show_bug.cgi?id=977758
 and the engine is using memFree reported by vdsm, which is more
 accurate.

 The API reports the old version due to backwards compatibility.
   
   
I just had a look at the bugzilla report and the RHEV documentation
which says Current memory in bytes used by the virtual machine..
So this means, the reported values are totally useless for monitoring
memory usage of a virtual machine if KSM is active. I would expect to
get the memory usage of a virtual machine and not how much memory is
consumed on the hypervisor (this is pretty useless information for
 me).
   
Is it planned to report the memory usage in a virtual machine in the

Re: [Users] Memory usage

2014-02-13 Thread Sven Kieske
Sorry, but this is no option at all, if you need ballooning.

Am 13.02.2014 10:51, schrieb Doron Fediuck:
 If you have a setup with this issue, try removing the balloon device
 and see if it helps / changes.

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] New oVirt Community Dashboard

2014-02-13 Thread Eli Mesika


- Original Message -
 From: Moti Asayag masa...@redhat.com
 To: Brian Proffitt bprof...@redhat.com
 Cc: users@ovirt.org, redhat-proj...@bitergia.com
 Sent: Thursday, February 13, 2014 9:39:36 AM
 Subject: Re: [Users] New oVirt Community Dashboard
 
 
 
 - Original Message -
  From: Brian Proffitt bprof...@redhat.com
  To: users@ovirt.org
  Cc: redhat-proj...@bitergia.com
  Sent: Wednesday, February 12, 2014 10:12:20 PM
  Subject: [Users] New oVirt Community Dashboard
  
  With much pleasure, I would like to introduce a new tool for the oVirt
  community: a community dashboard from the team at Bitergia.
  
  This dashboard, found at [1], should enable us to get better insights into
  the activity within our community, as well as what communication channels
  are performing the best and who is most active on any given day.
  
  Thanks to the work of Bitergia and Dave Neary, this dashboard is now ready
  for community feedback. I would invite you to take a look and make comments
  on how the information is presented and what data is available. Currently,
  the data is updated once a day.
  
  Two initial questions: would IRC data be useful? And, would an aggregate
  page
  of all of the Top lists be something to add, too?
 
 +1 for the Top lists.
 
  
  Two known bugs: The links to the MySQL and JSON data files are not working
  at
  the moment.
  
  We welcome your feedback!
  
 
 Very nice addition to the ovirt.org. I used to review some of the statistics
 at
 [1] and [2], but having that statistics better organized around is better.

Yes, that's really cool , thanks 

 
 I'd like to suggest filtering the engine-patc...@ovirt.org from the mailing
 participants.
 The mails send to that list are generated automatically by gerrit for each
 gerrit activity
 (either submitting a patch, rebasing, or reviewing), and this activity is
 mostly covered
 by the source code contributors stats. This list generates a huge traffic
 which obfuscates
 other mailing-list participants.
 
 IMO a nice addition would be having a statistics for the patches reviewers,
 which are as
 important as the code contributors.

+1 

 
 [1] https://www.ohloh.net/p/ovirt-engine
 [2] https://www.ohloh.net/p/ovirt
 
  Peace,
  Brian
  
  [1] http://www.ovirt.org/stats
  
  --
  Brian Proffitt - oVirt Community Manager
  Open Source and Standards, Red Hat - http://community.redhat.com
  Phone: +1 312 477 4320 / Cell: +1 574 383 9BKP
  IRC: bkp
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
  
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Memory usage

2014-02-13 Thread Doron Fediuck


- Original Message -
 From: Koen Vanoppen vanoppen.k...@gmail.com
 To: users@ovirt.org
 Sent: Thursday, February 13, 2014 12:18:24 PM
 Subject: Re: [Users] Memory usage
 
 
 
 We can't turn off the memory balloon option because we are running the 3.3.2
 with the bug of the memory balloon. Thx for the help!

Which balloon bug?

 On Feb 13, 2014 10:51 AM, Doron Fediuck  dfedi...@redhat.com  wrote:
 
 
 
 
 - Original Message -
  From: René Koch  rk...@linuxland.at 
  To: Doron Fediuck  dfedi...@redhat.com 
  Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org , Martin
  Sivak  msi...@redhat.com 
  Sent: Thursday, February 13, 2014 11:16:27 AM
  Subject: Re: [Users] Memory usage
  
  On Thu, 2014-02-13 at 03:49 -0500, Doron Fediuck wrote:
   
   - Original Message -
From: René Koch  rk...@linuxland.at 
To: Doron Fediuck  dfedi...@redhat.com 
Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org ,
Martin
Sivak  msi...@redhat.com 
Sent: Wednesday, February 12, 2014 7:31:47 PM
Subject: Re: [Users] Memory usage

On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:
 
 - Original Message -
  From: René Koch  rk...@linuxland.at 
  To: Koen Vanoppen  vanoppen.k...@gmail.com 
  Cc: users@ovirt.org
  Sent: Wednesday, February 12, 2014 4:18:37 PM
  Subject: Re: [Users] Memory usage
  
  On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
   In The GUI, it says it's using 25% of the memory.
  
  
  I guess it's the real value, right?
  The same happened for the memcached vm, someone reported to me -
  negative value in REST-API, but correct graph in oVirt webadmin
  GUI.
  
  I fear I have no idea how this can happen - so maybe someone else
  can
  help you troubleshoot this issue.
   
   
   
   2014-02-12 15:10 GMT+01:00 Koen Vanoppen 
   vanoppen.k...@gmail.com :
   Thanks for the quick respons, but there is no memcached
   running on that VM.
   
   
   Kind regards
   
   
   
   2014-02-12 15:06 GMT+01:00 René Koch  rk...@linuxland.at :
   
   On Wed, 2014-02-12 at 14:55 +0100, Koen Vanoppen
   wrote:
Dear all,


When we monitor one of our machines, we noticed
that
   there was one vm
that was constantly giving a error of memory
usage.
   But when we took a
look at it, there is actually nothing wrong with
it.
   Now we looked
furhter then that. We looked at the API of the
   machine and noticed
something very strange:

statistic

   href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08
   id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
   used (agent)/descriptionvalues
   type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit


It's a negative...
   
   
   
   Do you have memcached running in this vm?
   
   I heard about this issue with memcached, but never
   tested memcached in
   my oVirt environment. You get the real usage value
   with
   memory.used = memory.installed + memory.used
   
   
   Regards,
   René
   


What could be the problem?


Kind regards,

koen

   
 
 Guys,
 these values are usually a result of overcommitment mechanism usage.
 For example, if KSM is effective, it will free a lot of memory pages,
 and total-free-committed becomes negative.


Thanks a lot for the information.


 
 This was reported in
 https://bugzilla.redhat.com/show_bug.cgi?id=977758
 and the engine is using memFree reported by vdsm, which is more
 accurate.
 
 The API reports the old version due to backwards compatibility.


I just had a look at the bugzilla report and the RHEV documentation
which says Current memory in bytes used by the virtual machine..
So this means, the reported values are totally useless for monitoring
memory usage of a virtual machine if KSM is active. I would expect to
get the memory usage of a virtual machine and not how much memory is
consumed on the hypervisor (this is pretty useless information for me).

Is it planned to report the memory usage in a virtual machine in the
API
as well?


Regards,
René


   
   René,
   started digging into this, but it may take some time.
   
   Note that there are 2 memory usage reports; one for the host,
   and another for each VM.
   My response is related to the host, while the original question was
   for the VM. I still think the root cause is the same (ie- related to
   

Re: [Users] Memory usage

2014-02-13 Thread Martin Sivak
Hi everybody,

would it be possible to add the output of vdsClient getVmStats affected vm id 
from the affected host here and to the bug?

Also can we please get the bug number that tracks this issue? I could not find 
it in BZ. 

--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -
 
 
 - Original Message -
  From: Koen Vanoppen vanoppen.k...@gmail.com
  To: users@ovirt.org
  Sent: Thursday, February 13, 2014 12:18:24 PM
  Subject: Re: [Users] Memory usage
  
  
  
  We can't turn off the memory balloon option because we are running the
  3.3.2
  with the bug of the memory balloon. Thx for the help!
 
 Which balloon bug?
 
  On Feb 13, 2014 10:51 AM, Doron Fediuck  dfedi...@redhat.com  wrote:
  
  
  
  
  - Original Message -
   From: René Koch  rk...@linuxland.at 
   To: Doron Fediuck  dfedi...@redhat.com 
   Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org ,
   Martin
   Sivak  msi...@redhat.com 
   Sent: Thursday, February 13, 2014 11:16:27 AM
   Subject: Re: [Users] Memory usage
   
   On Thu, 2014-02-13 at 03:49 -0500, Doron Fediuck wrote:

- Original Message -
 From: René Koch  rk...@linuxland.at 
 To: Doron Fediuck  dfedi...@redhat.com 
 Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org ,
 Martin
 Sivak  msi...@redhat.com 
 Sent: Wednesday, February 12, 2014 7:31:47 PM
 Subject: Re: [Users] Memory usage
 
 On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:
  
  - Original Message -
   From: René Koch  rk...@linuxland.at 
   To: Koen Vanoppen  vanoppen.k...@gmail.com 
   Cc: users@ovirt.org
   Sent: Wednesday, February 12, 2014 4:18:37 PM
   Subject: Re: [Users] Memory usage
   
   On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
In The GUI, it says it's using 25% of the memory.
   
   
   I guess it's the real value, right?
   The same happened for the memcached vm, someone reported to me -
   negative value in REST-API, but correct graph in oVirt webadmin
   GUI.
   
   I fear I have no idea how this can happen - so maybe someone else
   can
   help you troubleshoot this issue.



2014-02-12 15:10 GMT+01:00 Koen Vanoppen 
vanoppen.k...@gmail.com :
Thanks for the quick respons, but there is no memcached
running on that VM.


Kind regards



2014-02-12 15:06 GMT+01:00 René Koch  rk...@linuxland.at :

On Wed, 2014-02-12 at 14:55 +0100, Koen Vanoppen
wrote:
 Dear all,
 
 
 When we monitor one of our machines, we noticed
 that
there was one vm
 that was constantly giving a error of memory
 usage.
But when we took a
 look at it, there is actually nothing wrong with
 it.
Now we looked
 furhter then that. We looked at the API of the
machine and noticed
 something very strange:
 
 statistic
 
href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08
id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
used (agent)/descriptionvalues
type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit
 
 
 It's a negative...



Do you have memcached running in this vm?

I heard about this issue with memcached, but never
tested memcached in
my oVirt environment. You get the real usage value
with
memory.used = memory.installed + memory.used


Regards,
René

 
 
 What could be the problem?
 
 
 Kind regards,
 
 koen
 

  
  Guys,
  these values are usually a result of overcommitment mechanism
  usage.
  For example, if KSM is effective, it will free a lot of memory
  pages,
  and total-free-committed becomes negative.
 
 
 Thanks a lot for the information.
 
 
  
  This was reported in
  https://bugzilla.redhat.com/show_bug.cgi?id=977758
  and the engine is using memFree reported by vdsm, which is more
  accurate.
  
  The API reports the old version due to backwards compatibility.
 
 
 I just had a look at the bugzilla report and the RHEV documentation
 which says Current memory in bytes used by the virtual machine..
 So this means, the reported values are totally useless for monitoring
 memory usage of a virtual machine if KSM is active. I would expect to
 get the memory usage of a virtual machine and not how much memory is
 consumed on the hypervisor (this is 

[Users] oVirt 3.4 2nd test day statsistics

2014-02-13 Thread Doron Fediuck
Hi all,
thanks for joining oVirt 3.4 2nd test day!

Thanks to your efforts we 'earned' 66 new BZs ;)
Some specific data below;

1. BZ list by group:
https://hurl.corp.redhat.com/6de0f3a

Whiteboard   Number of bugs
  5
gluster   1
i18n  1
infra 14
integration   7
network   12
storage   16
storage virt  1
ux2
virt  7

2. BZ list by reporter:
https://hurl.corp.redhat.com/121d9b8

Top 5 reporters

Reporter  Number of bugs
d...@redhat.com   8
mpav...@redhat.com8
aha...@redhat.com 4
jbe...@redhat.com 3
myak...@redhat.com3
sbona...@redhat.com   3
tjeli...@redhat.com   3

3. IRC activity (top 5)

112 jbrooks 

   
 91 fabiand 

   
 79 didi
 78 brad_mssw
 73 OaaSvc

Join us next week for the 3rd (and final!) 3.4 test day.
Doron
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] oVirt 3.4.0 beta 2/Test Day

2014-02-13 Thread Yaniv Bronheim
Hey all,
I'm testing ovirt-live which takes me more than 1 day 
I followed the instructions in http://wiki.ovirt.org/OVirt_Live#VM to run in on 
a local vm 
the iso file I tried to took from latest build 
(jenkins.ovirt.org/job/ovirt_live_create_iso/) and sent mail to infra maillist 
that the link somehow fails to be d/led.

currently opened 2 bugs   
https://bugzilla.redhat.com/show_bug.cgi?id=1063680
https://bugzilla.redhat.com/show_bug.cgi?id=1063829

and still playing with the ovirt-engine installation that doesn't work smoothly 
(at least from my prospective and tries)

Regards,
Yaniv Bronhaim.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Opaque project on wiki?

2014-02-13 Thread i iordanov
Hey guys,

I was wondering if you're interested in featuring the Opaque project
somewhere on the wiki? If so, where?

It's now in production, and the source code (GPLv3) is released in my
repository housing all my remote desktop client software here:

  https://github.com/iiordanov/remote-desktop-clients

Thanks!
iordan

-- 
The conscious mind has only one thread of execution.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVirt 3.4 2nd test day statsistics

2014-02-13 Thread Jorick Astrego
Hi Doron,

Thanks for the update!

But the url https://hurl.corp.redhat.com/6de0f3a appears to be redhat
intenal only?

Kind regards,

Jorick Astrego
Netbulae B.V.


On Thu, 2014-02-13 at 08:26 -0500, Doron Fediuck wrote:

 Hi all,
 thanks for joining oVirt 3.4 2nd test day!
 
 Thanks to your efforts we 'earned' 66 new BZs ;)
 Some specific data below;
 
 1. BZ list by group:
 https://hurl.corp.redhat.com/6de0f3a
 
 Whiteboard Number of bugs
 5
 gluster 1
 i18n1
 infra   14
 integration 7
 network 12
 storage 16
 storage virt1
 ux  2
 virt7
 
 2. BZ list by reporter:
 https://hurl.corp.redhat.com/121d9b8
 
 Top 5 reporters
 
 ReporterNumber of bugs
 d...@redhat.com 8
 mpav...@redhat.com  8
 aha...@redhat.com   4
 jbe...@redhat.com   3
 myak...@redhat.com  3
 sbona...@redhat.com 3
 tjeli...@redhat.com 3
 
 3. IRC activity (top 5)
 
 112 jbrooks   
   

  91 fabiand   
   

  79 didi
  78 brad_mssw
  73 OaaSvc
 
 Join us next week for the 3rd (and final!) 3.4 test day.
 Doron
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] issues with live snapshot

2014-02-13 Thread Ayal Baron


- Original Message -
 There's a bug on this:
 
 https://bugzilla.redhat.com/show_bug.cgi?id=1063979

you can install the qemu-kvm-rhev package to solve this as described here:
http://comments.gmane.org/gmane.linux.centos.general/138593

 
 Thanks,
 
 Dafna
 
 
 On 02/13/2014 09:14 AM, Maor Lipchuk wrote:
  Hi Andreas,
 
  Basically it means that the snapshot was created but the process of the
  QEMU is still writing on the original volume (The snapshot), so any
  changes you will made while this VM is running will be in the snapshot.
 
  This could be fixed when restarting the VM (as described in the event),
  after the restart the QEMU process should run pointing to the right
  volumes.
 
  Regards,
  Maor
 
  On 02/13/2014 09:56 AM, andreas.ew...@cbc.de wrote:
  Hi,
 
  I want to create a live snapshot, but it fails at the finalizing task.
  There are 3 events:
 
  - Snapshot 'test' creation for VM 'snaptest' was initiated by EwertA
  - Failed to create live snapshot 'test' for VM 'snaptest'. VM restart is
  recommended.
  - Failed to complete snapshot 'test' creation for VM 'snaptest‘.
 
  Thread-338209::DEBUG::2014-02-13
  08:40:19,672::BindingXMLRPC::965::vds::(wrapper) client
  [10.98.229.5]::call vmSnapshot with
  ('31c185ce-cc2e-4246-bf46-fcd96cd30050', [{'baseVolumeID':
  'b9448428-b787-4286-b54e-aa54a8f8bb17', 'domainID':
  '54f86ad7-2c12-4322-b2d1-f129f3d20e57', 'volumeID':
  'c677d01e-dc50-486b-a532-f88a71666d2c', 'imageID':
  'db6faf9e-2cc8-4106-954b-fef7e4b1bd1b'}], '') {}
  Thread-338209::DEBUG::2014-02-13
  08:40:19,672::task::579::TaskManager.Task::(_updateState)
  Task=`8675b6b0-3216-46a8-8d9a-d0feb02d5b49`::moving from state init -
  state preparing
  Thread-338209::INFO::2014-02-13
  08:40:19,672::logUtils::44::dispatcher::(wrapper) Run and protect:
  prepareImage(sdUUID='54f86ad7-2c12-4322-b2d1-f129f3d20e57',
  spUUID='5849b030-626e-47cb-ad90-3ce782d831b3',
  imgUUID='db6faf9e-2cc8-4106-954b-fef7e4b1bd1b',
  leafUUID='c677d01e-dc50-486b-a532-f88a71666d2c')
  Thread-338209::DEBUG::2014-02-13
  08:40:19,673::resourceManager::197::ResourceManager.Request::(__init__)
  ResName=`Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57`ReqID=`630a701e-bd44-49ef-8a14-f657b8653a33`::Request
  was made in '/usr/share/vdsm/storage/hsm.py' line '3236' at
  'prepareImage'
  Thread-338209::DEBUG::2014-02-13
  08:40:19,673::resourceManager::541::ResourceManager::(registerResource)
  Trying to register resource
  'Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57' for lock type 'shared'
  Thread-338209::DEBUG::2014-02-13
  08:40:19,673::resourceManager::600::ResourceManager::(registerResource)
  Resource 'Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57' is free. Now
  locking as 'shared' (1 active user)
  Thread-338209::DEBUG::2014-02-13
  08:40:19,673::resourceManager::237::ResourceManager.Request::(grant)
  ResName=`Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57`ReqID=`630a701e-bd44-49ef-8a14-f657b8653a33`::Granted
  request
  Thread-338209::DEBUG::2014-02-13
  08:40:19,674::task::811::TaskManager.Task::(resourceAcquired)
  Task=`8675b6b0-3216-46a8-8d9a-d0feb02d5b49`::_resourcesAcquired:
  Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57 (shared)
  Thread-338209::DEBUG::2014-02-13
  08:40:19,675::task::974::TaskManager.Task::(_decref)
  Task=`8675b6b0-3216-46a8-8d9a-d0feb02d5b49`::ref 1 aborting False
  Thread-338209::DEBUG::2014-02-13
  08:40:19,675::lvm::440::OperationMutex::(_reloadlvs) Operation 'lvm
  reload operation' got the operation mutex
  Thread-338209::DEBUG::2014-02-13
  08:40:19,675::lvm::309::Storage.Misc.excCmd::(cmd) '/usr/bin/sudo -n
  /sbin/lvm lvs --config  devices { preferred_names =
  [\\^/dev/mapper/\\] ignore_suspended_devices=1 write_cache_state=0
  disable_after_error_count=3 obtain_device_list_from_udev=0 filter = [
  \'a|/dev/mapper/36000d771ec7c7d5beda78691839c|\', \'r|.*|\' ] }
  global {  locking_type=1  prioritise_write_locks=1  wait_for_locks=1 }
  backup {  retain_min = 50  retain_days = 0 }  --noheadings --units b
  --nosuffix --separator | -o
  uuid,name,vg_name,attr,size,seg_start_pe,devices,tags
  54f86ad7-2c12-4322-b2d1-f129f3d20e57' (cwd None)
  Thread-338209::DEBUG::2014-02-13
  08:40:19,715::lvm::309::Storage.Misc.excCmd::(cmd) SUCCESS: err = '';
  rc = 0
  Thread-338209::DEBUG::2014-02-13
  08:40:19,739::lvm::475::Storage.LVM::(_reloadlvs) lvs reloaded
  Thread-338209::DEBUG::2014-02-13
  08:40:19,740::lvm::475::OperationMutex::(_reloadlvs) Operation 'lvm
  reload operation' released the operation mutex
  Thread-338209::DEBUG::2014-02-13
  08:40:19,741::lvm::309::Storage.Misc.excCmd::(cmd) '/usr/bin/sudo -n
  /sbin/lvm lvchange --config  devices { preferred_names =
  [\\^/dev/mapper/\\] ignore_suspended_devices=1 write_cache_state=0
  disable_after_error_count=3 obtain_device_list_from_udev=0 filter = [
  \'a|/dev/mapper/36000d771ec7c7d5beda78691839c|\', \'r|.*|\' ] }
  global {  locking_type=1  prioritise_write_locks=1  wait_for_locks=1 }
  backup {  retain_min 

Re: [Users] oVirt 3.4 2nd test day statsistics

2014-02-13 Thread Doron Fediuck
Updating with new URLs:

1. BZ list by group:
http://goo.gl/k9LD71

2.  BZ list by reporter:
http://goo.gl/YXG3Pr

Sorry for the inconvenience.

- Original Message -
 From: Doron Fediuck dfedi...@redhat.com
 To: users users@ovirt.org, arch a...@ovirt.org
 Cc: Itamar Heim ih...@redhat.com, Brian Proffitt bprof...@redhat.com, 
 Dave Neary dne...@redhat.com,
 Sandro Bonazzola sbona...@redhat.com
 Sent: Thursday, February 13, 2014 3:26:50 PM
 Subject: oVirt 3.4 2nd test day statsistics
 
 Hi all,
 thanks for joining oVirt 3.4 2nd test day!
 
 Thanks to your efforts we 'earned' 66 new BZs ;)
 Some specific data below;
 
 1. BZ list by group:
 https://hurl.corp.redhat.com/6de0f3a
 
 WhiteboardNumber of bugs
       5
 gluster1
 i18n   1
 infra  14
 integration7
 network12
 storage16
 storage virt1
 ux    2
 virt  7
 
 2. BZ list by reporter:
 https://hurl.corp.redhat.com/121d9b8
 
 Top 5 reporters
 
 Reporter      Number of bugs
 d...@redhat.com8
 mpav...@redhat.com8
 aha...@redhat.com4
 jbe...@redhat.com3
 myak...@redhat.com3
 sbona...@redhat.com3
 tjeli...@redhat.com3
 
 3. IRC activity (top 5)
 
     112 jbrooks
      91 fabiand
      79 didi
      78 brad_mssw
      73 OaaSvc
 
 Join us next week for the 3rd (and final!) 3.4 test day.
 Doron
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVirt 3.4 2nd test day statsistics

2014-02-13 Thread Doron Fediuck


- Original Message -
 From: Jorick Astrego j.astr...@netbulae.eu
 To: users@ovirt.org
 Sent: Thursday, February 13, 2014 3:41:31 PM
 Subject: Re: [Users] oVirt 3.4 2nd test day statsistics
 
 Hi Doron,
 
 Thanks for the update!
 
 But the url https://hurl.corp.redhat.com/6de0f3a appears to be redhat intenal
 only?
 
 Kind regards,
 
 Jorick Astrego
 Netbulae B.V.
 
 
 On Thu, 2014-02-13 at 08:26 -0500, Doron Fediuck wrote:
 
 
 Hi all,
 thanks for joining oVirt 3.4 2nd test day!
 
 Thanks to your efforts we 'earned' 66 new BZs ;)
 Some specific data below;
 
 1. BZ list by group: https://hurl.corp.redhat.com/6de0f3a Whiteboard
   Number of bugs
 5
 gluster 1
 i18n1
 infra   14
 integration 7
 network 12
 storage 16
 storage virt1
 ux  2
 virt7
 
 2. BZ list by reporter: https://hurl.corp.redhat.com/121d9b8 Top 5 reporters
 
 ReporterNumber of bugs
  d...@redhat.com8
  mpav...@redhat.com 8
  aha...@redhat.com  4
  jbe...@redhat.com  3
  myak...@redhat.com 3
  sbona...@redhat.com3
  tjeli...@redhat.com3
 
 3. IRC activity (top 5)
 
 112 jbrooks
  91 fabiand
  79 didi
  78 brad_mssw
  73 OaaSvc
 
 Join us next week for the 3rd (and final!) 3.4 test day.
 Doron
 ___
 Users mailing list Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 

Thanks for checking Jorick.
Send a correction mail.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

2014-02-13 Thread Sven Kieske
Hi,

what cloud-init version and which OS do you run inside the vm?


background:
the ovirt-payload function generates an iso file from your cloud-init
data and attaches this to the vm. this feature is just working if you
got cloud-init = 0.7.2 inside the vm, which is not available e.g. in
centos  6.5 and ubuntu 12.04.

I don't know which data format the java sdk uses as default, so make
sure you are passing XML, not JSON.

HTH

Am 13.02.2014 14:39, schrieb Tejesh M:
 Hi All,
 
 Thanks alot.
 
 I have created one VM with minimal installation  installed cloud-init
 package. And, converted that VM into Template. Then executed the code given
 in http://lists.ovirt.org/pipermail/users/2014-February/021302.html , but
 no luck, the code is not setting root password.
 
 Also, there is no option to set *Hostname *for the VM.
 
 
 
 *Code:*
 
 /*Begin Customize VM*/
 // Generate the random password, using whatever mechanism you
   // prefer:
   String password = cJql3P9XLQG4drCYVG/6Q/;
 
   // You need to know the name of the template, the cluster and
   // the VM you are going to create:
   String templateName = rhel2_temp;
   String clusterName = testCluster;
   String vmName = myvm;
 
   // Prepare the data to create the VM from the template:
   org.ovirt.engine.sdk.entities.Template templateData = new
 Template();
   templateData.setName(templateName);
   org.ovirt.engine.sdk.entities.Cluster clusterData = new Cluster();
   clusterData.setName(clusterName);
   org.ovirt.engine.sdk.entities.VM vmDataForCreate = new VM();
   vmDataForCreate.setName(vmName);
   vmDataForCreate.setCluster(clusterData);
   vmDataForCreate.setTemplate(templateData);
 
   // Send the request to create the VM to the server:
   api.getVMs().add(vmDataForCreate);
   String state;
   // White till the VM is down (it will be locked for a while):
   for (;;) {
  state = api.getVMs().get(vmName).getStatus().getState();
 if (down.equals(state)) {
   break;
 }
 Thread.sleep(1000);
   }
   System.out.println(System Status:+state);
   // Populate parameters for the action to start the VM with
 cloud-init:
   org.ovirt.engine.sdk.entities.User userData = new User();
   userData.setUserName(root);
   userData.setPassword(password);
   Users usersData = new Users();
   usersData.getUsers().add(userData);
   CloudInit cloudData = new CloudInit();
   cloudData.setUsers(usersData);
 
   Initialization initData = new Initialization();
   initData.setCloudInit(cloudData);
   VM vmDataForStart = new VM();
   vmDataForStart.setInitialization(initData);
   Action actionData = new Action();
   actionData.setVm(vmDataForStart);
 
   // Send the request to start the VM to the server:
   api.getVMs().get(vmName).start(actionData);
   System.out.println(After :
 +api.getVMs().get(vmName).getStatus());
   /*End Customize VM*/
 
 
 
 Thanks  Regards,
 Tejesh
 
 
 
 On Thu, Feb 13, 2014 at 2:26 PM, Juan Hernandez jhern...@redhat.com wrote:
 
 On 02/13/2014 09:29 AM, Shahar Havivi wrote:
 On 13.02.14 00:59, Oved Ourfalli wrote:


 - Original Message -
 From: Shahar Havivi shah...@redhat.com
 To: users@ovirt.org
 Cc: Juan Antonio Hernandez Fernandez jhern...@redhat.com,
 rhevm-...@lists.fedorahosted.org, Tejesh M
 tejes...@gmail.com
 Sent: Wednesday, February 12, 2014 11:22:20 PM
 Subject: Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

 On 12.02.14 22:55, Itamar Heim wrote:
 On 02/12/2014 03:14 PM, Tejesh M wrote:
 Hi,

 Can anyone share sample code on how to assign IP address to guest os
 
 changing the root password while creating VM from Template using
 Java SDK?
 Hi Tejesh,
 You should start here:
 http://www.ovirt.org/Api
 This link will explain the basics for fetching VM via the API using
 HTTP via
 curl command line.

 Every VM have a collection of networks and manipulating them can be
 seeing
 here with the REST API examples:
 http://www.ovirt.org/Features/Design/Network/SetupNetworks#REST
 the section for you is Attaching a network to a NIC under the REST
 category.

 Shahar Havivi.


 Actually it looks like Tejesh is referring to the Guests and not the
 hosts, so you can use cloud-init in order to do that.
 See more in http://www.ovirt.org/Features/Cloud-Init_Integration;.
 If the VM's operating system is defined as some kind of Linux, then
 you'll be able to set some stuff using cloud-init, either via the Run-Once
 Dialog, or in the regular VM properties dialog.

 Omer - we have REST API support for cloud-init, right?
 Yes, more on that can be found here:

Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

2014-02-13 Thread Juan Hernandez
On 02/13/2014 02:39 PM, Tejesh M wrote:
 Hi All,
 
 Thanks alot.
 
 I have created one VM with minimal installation  installed cloud-init
 package. And, converted that VM into Template. Then executed the code
 given in
 http://lists.ovirt.org/pipermail/users/2014-February/021302.html , but
 no luck, the code is not setting root password.
 

What version of the engine are you running? I may not have the required
cloud-init support.

Try to run the application in debug mode:

  Api api = new Api(
https://whatever/api;,
user@domain,
password,
null,
null,
null,
null,
true,
null,
true  // - This is to enable debug mode
  );

It will send to the log the actual XML documents sent to the server. We
can use it to see if the request is generated correctly.

It may also happen that cloud-init support isn't working correctly. To
verify this try to use the cloud-init support manually from webadmin.
Does it work from there?

 Also, there is no option to set *Hostname *for the VM.
 

To set the host name you need to add something like this:

  Host hostData = new Host();
  hostData.setAddress(the.host.name);
  cloudData.setHost(hostData);

 
 
 _*Code:*_
 
 /*Begin Customize VM*/
 // Generate the random password, using whatever mechanism you
   // prefer:
   String password = cJql3P9XLQG4drCYVG/6Q/;
 
   // You need to know the name of the template, the cluster and
   // the VM you are going to create:
   String templateName = rhel2_temp;
   String clusterName = testCluster;
   String vmName = myvm;
 
   // Prepare the data to create the VM from the template:
   org.ovirt.engine.sdk.entities.Template templateData = new
 Template();
   templateData.setName(templateName);
   org.ovirt.engine.sdk.entities.Cluster clusterData = new Cluster();
   clusterData.setName(clusterName);
   org.ovirt.engine.sdk.entities.VM vmDataForCreate = new VM();
   vmDataForCreate.setName(vmName);
   vmDataForCreate.setCluster(clusterData);
   vmDataForCreate.setTemplate(templateData);
 
   // Send the request to create the VM to the server:
   api.getVMs().add(vmDataForCreate);
   String state;
   // White till the VM is down (it will be locked for a while):
   for (;;) {
  state = api.getVMs().get(vmName).getStatus().getState();
 if (down.equals(state)) {
   break;
 }
 Thread.sleep(1000);
   }
   System.out.println(System Status:+state);
   // Populate parameters for the action to start the VM with
 cloud-init:
   org.ovirt.engine.sdk.entities.User userData = new User();
   userData.setUserName(root);
   userData.setPassword(password);
   Users usersData = new Users();
   usersData.getUsers().add(userData);
   CloudInit cloudData = new CloudInit();
   cloudData.setUsers(usersData);
  
   Initialization initData = new Initialization();
   initData.setCloudInit(cloudData);
   VM vmDataForStart = new VM();
   vmDataForStart.setInitialization(initData);
   Action actionData = new Action();
   actionData.setVm(vmDataForStart);
 
   // Send the request to start the VM to the server:
   api.getVMs().get(vmName).start(actionData);
   System.out.println(After :
 +api.getVMs().get(vmName).getStatus());
   /*End Customize VM*/ 

 
 
 Thanks  Regards,
 Tejesh
 
 
 
 On Thu, Feb 13, 2014 at 2:26 PM, Juan Hernandez jhern...@redhat.com
 mailto:jhern...@redhat.com wrote:
 
 On 02/13/2014 09:29 AM, Shahar Havivi wrote:
  On 13.02.14 00:59, Oved Ourfalli wrote:
 
 
  - Original Message -
  From: Shahar Havivi shah...@redhat.com
 mailto:shah...@redhat.com
  To: users@ovirt.org mailto:users@ovirt.org
  Cc: Juan Antonio Hernandez Fernandez jhern...@redhat.com
 mailto:jhern...@redhat.com, rhevm-...@lists.fedorahosted.org
 mailto:rhevm-...@lists.fedorahosted.org, Tejesh M
  tejes...@gmail.com mailto:tejes...@gmail.com
  Sent: Wednesday, February 12, 2014 11:22:20 PM
  Subject: Re: [Users] [rhevm-api] Assign IP address to VM using
 Java SDK
 
  On 12.02.14 22:55, Itamar Heim wrote:
  On 02/12/2014 03:14 PM, Tejesh M wrote:
  Hi,
 
  Can anyone share sample code on how to assign IP address to
 guest os 
  changing the root password while creating VM from Template
 using Java SDK?
  Hi Tejesh,
  You should start here:
  http://www.ovirt.org/Api
  This link will explain the basics for fetching VM via the API
 using HTTP via
  curl command line.
 
  Every VM have a collection of networks and manipulating 

Re: [Users] Opaque project on wiki?

2014-02-13 Thread Sven Kieske
Hi,

first I would like to thank you for releasing the code!
I think a wiki page would be cool, but let the project decide.

I also got some question regarding Opaque:

Does it support the novnc connection to the vm too, or just spice?
This would be _huge_ !

Am 13.02.2014 14:41, schrieb i iordanov:
 Hey guys,
 
 I was wondering if you're interested in featuring the Opaque project
 somewhere on the wiki? If so, where?
 
 It's now in production, and the source code (GPLv3) is released in my
 repository housing all my remote desktop client software here:
 
   https://github.com/iiordanov/remote-desktop-clients
 
 Thanks!
 iordan

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] VNC support in Opaque

2014-02-13 Thread i iordanov
Hi Sven,

I would like to separate the discussion of features in Opaque from my
question about the Wiki, so I'm sending a separate email regarding your
question.

 Does it support the novnc connection to the vm too, or just spice?
 This would be _huge_ !

Do you mean supporting VMs which has VNC set as the console type? Then that
is a planned feature, but I didn't know how to prioritize it. A very fast
an capable Android VNC client (bVNC) is also part of my
remote-desktop-clients repository, and I was planning to make use of it in
order to give Opaque the capability.

Do we have a consensus on how important such a feature would be? Can I hear
from others too?

Thanks!
iordan

-- 
The conscious mind has only one thread of execution.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

2014-02-13 Thread Juan Hernandez
On 02/13/2014 02:58 PM, Sven Kieske wrote:
 Hi,
 
 what cloud-init version and which OS do you run inside the vm?
 
 
 background:
 the ovirt-payload function generates an iso file from your cloud-init
 data and attaches this to the vm. this feature is just working if you
 got cloud-init = 0.7.2 inside the vm, which is not available e.g. in
 centos  6.5 and ubuntu 12.04.
 
 I don't know which data format the java sdk uses as default, so make
 sure you are passing XML, not JSON.
 

The Java SDK always uses XML.

 HTH
 
 Am 13.02.2014 14:39, schrieb Tejesh M:
 Hi All,

 Thanks alot.

 I have created one VM with minimal installation  installed cloud-init
 package. And, converted that VM into Template. Then executed the code given
 in http://lists.ovirt.org/pipermail/users/2014-February/021302.html , but
 no luck, the code is not setting root password.

 Also, there is no option to set *Hostname *for the VM.



 *Code:*

 /*Begin Customize VM*/
 // Generate the random password, using whatever mechanism you
   // prefer:
   String password = cJql3P9XLQG4drCYVG/6Q/;

   // You need to know the name of the template, the cluster and
   // the VM you are going to create:
   String templateName = rhel2_temp;
   String clusterName = testCluster;
   String vmName = myvm;

   // Prepare the data to create the VM from the template:
   org.ovirt.engine.sdk.entities.Template templateData = new
 Template();
   templateData.setName(templateName);
   org.ovirt.engine.sdk.entities.Cluster clusterData = new Cluster();
   clusterData.setName(clusterName);
   org.ovirt.engine.sdk.entities.VM vmDataForCreate = new VM();
   vmDataForCreate.setName(vmName);
   vmDataForCreate.setCluster(clusterData);
   vmDataForCreate.setTemplate(templateData);

   // Send the request to create the VM to the server:
   api.getVMs().add(vmDataForCreate);
   String state;
   // White till the VM is down (it will be locked for a while):
   for (;;) {
  state = api.getVMs().get(vmName).getStatus().getState();
 if (down.equals(state)) {
   break;
 }
 Thread.sleep(1000);
   }
   System.out.println(System Status:+state);
   // Populate parameters for the action to start the VM with
 cloud-init:
   org.ovirt.engine.sdk.entities.User userData = new User();
   userData.setUserName(root);
   userData.setPassword(password);
   Users usersData = new Users();
   usersData.getUsers().add(userData);
   CloudInit cloudData = new CloudInit();
   cloudData.setUsers(usersData);

   Initialization initData = new Initialization();
   initData.setCloudInit(cloudData);
   VM vmDataForStart = new VM();
   vmDataForStart.setInitialization(initData);
   Action actionData = new Action();
   actionData.setVm(vmDataForStart);

   // Send the request to start the VM to the server:
   api.getVMs().get(vmName).start(actionData);
   System.out.println(After :
 +api.getVMs().get(vmName).getStatus());
   /*End Customize VM*/



 Thanks  Regards,
 Tejesh



 On Thu, Feb 13, 2014 at 2:26 PM, Juan Hernandez jhern...@redhat.com wrote:

 On 02/13/2014 09:29 AM, Shahar Havivi wrote:
 On 13.02.14 00:59, Oved Ourfalli wrote:


 - Original Message -
 From: Shahar Havivi shah...@redhat.com
 To: users@ovirt.org
 Cc: Juan Antonio Hernandez Fernandez jhern...@redhat.com,
 rhevm-...@lists.fedorahosted.org, Tejesh M
 tejes...@gmail.com
 Sent: Wednesday, February 12, 2014 11:22:20 PM
 Subject: Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

 On 12.02.14 22:55, Itamar Heim wrote:
 On 02/12/2014 03:14 PM, Tejesh M wrote:
 Hi,

 Can anyone share sample code on how to assign IP address to guest os
 
 changing the root password while creating VM from Template using
 Java SDK?
 Hi Tejesh,
 You should start here:
 http://www.ovirt.org/Api
 This link will explain the basics for fetching VM via the API using
 HTTP via
 curl command line.

 Every VM have a collection of networks and manipulating them can be
 seeing
 here with the REST API examples:
 http://www.ovirt.org/Features/Design/Network/SetupNetworks#REST
 the section for you is Attaching a network to a NIC under the REST
 category.

 Shahar Havivi.


 Actually it looks like Tejesh is referring to the Guests and not the
 hosts, so you can use cloud-init in order to do that.
 See more in http://www.ovirt.org/Features/Cloud-Init_Integration;.
 If the VM's operating system is defined as some kind of Linux, then
 you'll be able to set some stuff using cloud-init, either via the Run-Once
 Dialog, or in the regular VM properties dialog.

 Omer - we have REST 

Re: [Users] issues with live snapshot

2014-02-13 Thread Douglas Schilling Landgraf

On 02/13/2014 02:56 AM, andreas.ew...@cbc.de wrote:

Hi,

I want to create a live snapshot, but it fails at the finalizing task. There 
are 3 events:

- Snapshot 'test' creation for VM 'snaptest' was initiated by EwertA
- Failed to create live snapshot 'test' for VM 'snaptest'. VM restart is 
recommended.
- Failed to complete snapshot 'test' creation for VM 'snaptest‘.

Thread-338209::DEBUG::2014-02-13 
08:40:19,672::BindingXMLRPC::965::vds::(wrapper) client [10.98.229.5]::call 
vmSnapshot with ('31c185ce-cc2e-4246-bf46-fcd96cd30050', [{'baseVolumeID': 
'b9448428-b787-4286-b54e-aa54a8f8bb17', 'domainID': 
'54f86ad7-2c12-4322-b2d1-f129f3d20e57', 'volumeID': 
'c677d01e-dc50-486b-a532-f88a71666d2c', 'imageID': 
'db6faf9e-2cc8-4106-954b-fef7e4b1bd1b'}], '') {}
Thread-338209::DEBUG::2014-02-13 
08:40:19,672::task::579::TaskManager.Task::(_updateState) 
Task=`8675b6b0-3216-46a8-8d9a-d0feb02d5b49`::moving from state init - state 
preparing
Thread-338209::INFO::2014-02-13 
08:40:19,672::logUtils::44::dispatcher::(wrapper) Run and protect: 
prepareImage(sdUUID='54f86ad7-2c12-4322-b2d1-f129f3d20e57', 
spUUID='5849b030-626e-47cb-ad90-3ce782d831b3', 
imgUUID='db6faf9e-2cc8-4106-954b-fef7e4b1bd1b', 
leafUUID='c677d01e-dc50-486b-a532-f88a71666d2c')
Thread-338209::DEBUG::2014-02-13 
08:40:19,673::resourceManager::197::ResourceManager.Request::(__init__) 
ResName=`Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57`ReqID=`630a701e-bd44-49ef-8a14-f657b8653a33`::Request
 was made in '/usr/share/vdsm/storage/hsm.py' line '3236' at 'prepareImage'
Thread-338209::DEBUG::2014-02-13 
08:40:19,673::resourceManager::541::ResourceManager::(registerResource) Trying 
to register resource 'Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57' for lock 
type 'shared'
Thread-338209::DEBUG::2014-02-13 
08:40:19,673::resourceManager::600::ResourceManager::(registerResource) 
Resource 'Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57' is free. Now locking as 
'shared' (1 active user)
Thread-338209::DEBUG::2014-02-13 
08:40:19,673::resourceManager::237::ResourceManager.Request::(grant) 
ResName=`Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57`ReqID=`630a701e-bd44-49ef-8a14-f657b8653a33`::Granted
 request
Thread-338209::DEBUG::2014-02-13 
08:40:19,674::task::811::TaskManager.Task::(resourceAcquired) 
Task=`8675b6b0-3216-46a8-8d9a-d0feb02d5b49`::_resourcesAcquired: 
Storage.54f86ad7-2c12-4322-b2d1-f129f3d20e57 (shared)
Thread-338209::DEBUG::2014-02-13 
08:40:19,675::task::974::TaskManager.Task::(_decref) 
Task=`8675b6b0-3216-46a8-8d9a-d0feb02d5b49`::ref 1 aborting False
Thread-338209::DEBUG::2014-02-13 
08:40:19,675::lvm::440::OperationMutex::(_reloadlvs) Operation 'lvm reload 
operation' got the operation mutex
Thread-338209::DEBUG::2014-02-13 08:40:19,675::lvm::309::Storage.Misc.excCmd::(cmd) '/usr/bin/sudo 
-n /sbin/lvm lvs --config  devices { preferred_names = [\\^/dev/mapper/\\] 
ignore_suspended_devices=1 write_cache_state=0 disable_after_error_count=3 
obtain_device_list_from_udev=0 filter = [ \'a|/dev/mapper/36000d771ec7c7d5beda78691839c|\', 
\'r|.*|\' ] }  global {  locking_type=1  prioritise_write_locks=1  wait_for_locks=1 }  backup {  
retain_min = 50  retain_days = 0 }  --noheadings --units b --nosuffix --separator | -o 
uuid,name,vg_name,attr,size,seg_start_pe,devices,tags 54f86ad7-2c12-4322-b2d1-f129f3d20e57' (cwd 
None)
Thread-338209::DEBUG::2014-02-13 08:40:19,715::lvm::309::Storage.Misc.excCmd::(cmd) 
SUCCESS: err = ''; rc = 0
Thread-338209::DEBUG::2014-02-13 
08:40:19,739::lvm::475::Storage.LVM::(_reloadlvs) lvs reloaded
Thread-338209::DEBUG::2014-02-13 
08:40:19,740::lvm::475::OperationMutex::(_reloadlvs) Operation 'lvm reload 
operation' released the operation mutex
Thread-338209::DEBUG::2014-02-13 08:40:19,741::lvm::309::Storage.Misc.excCmd::(cmd) '/usr/bin/sudo 
-n /sbin/lvm lvchange --config  devices { preferred_names = [\\^/dev/mapper/\\] 
ignore_suspended_devices=1 write_cache_state=0 disable_after_error_count=3 
obtain_device_list_from_udev=0 filter = [ \'a|/dev/mapper/36000d771ec7c7d5beda78691839c|\', 
\'r|.*|\' ] }  global {  locking_type=1  prioritise_write_locks=1  wait_for_locks=1 }  backup {  
retain_min = 50  retain_days = 0 }  --autobackup n --available y 
54f86ad7-2c12-4322-b2d1-f129f3d20e57/c677d01e-dc50-486b-a532-f88a71666d2c' (cwd None)
Thread-338209::DEBUG::2014-02-13 08:40:19,800::lvm::309::Storage.Misc.excCmd::(cmd) 
SUCCESS: err = ''; rc = 0
Thread-338209::DEBUG::2014-02-13 
08:40:19,801::lvm::526::OperationMutex::(_invalidatelvs) Operation 'lvm 
invalidate operation' got the operation mutex
Thread-338209::DEBUG::2014-02-13 
08:40:19,801::lvm::538::OperationMutex::(_invalidatelvs) Operation 'lvm 
invalidate operation' released the operation mutex
Thread-338209::WARNING::2014-02-13 
08:40:19,801::fileUtils::167::Storage.fileUtils::(createdir) Dir 
/var/run/vdsm/storage/54f86ad7-2c12-4322-b2d1-f129f3d20e57/db6faf9e-2cc8-4106-954b-fef7e4b1bd1b
 already exists
Thread-338209::DEBUG::2014-02-13 

Re: [Users] possible to attach cloud-init data to vm started from cd rom?

2014-02-13 Thread Sven Kieske
Has nobody any clue regarding this?
I also asked via IRC. I'm still testing
and trying to get this working.

Am 12.02.2014 13:37, schrieb Sven Kieske:
 Hi,
 
 I would like to know if the following scenario is supported in ovirt
 (currently testing 3.3.2).
 
 You have a vm with an attached disk.
 You want to start this vm with an attached iso image via cd-rom
 you want to pass to this started system cloud-init metadata via
 run once or REST.
 
 I know that ovirt passes the metadata by creating an ISO and
 attaching this ISO to the VM as an CD-ROM itself.
 
 My tests so far included the following:
 
 1. shut down the vm
 2. click run once
 3. switch boot order to boot from cd-rom, attach an ISO
 4. activate cloud-init metadata and pass some data over it
 
 actual result: the system boots from hard disk, not from
 the attached iso.
 
 Second test:
 
 1. shut down the vm
 2. edit the vm, change boot order to boot from cd-rom, attach iso
 2. click run once
 4. activate cloud-init metadata and pass some data over it
 
 actual result: the system boots from hard disk, not from
 the attached iso.
 
 Is this not possible or am I doing it wrong?
 
 Any hints would be appreciated!
 

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

2014-02-13 Thread Tejesh M
1. The Version is RHEV-M 3.3  Cloud-init is
cloud-init-0.6.3-0.12.bzr532.el6.noarch

2. In Webadmin, i don't find any option to set Cloud-init data's. I checked
under New VM-Initial Run.. Am i looking at the right place?
How to enable cloud-init support in engine?

I have installed cloud-init package in RHEV-M  also in Template.

Please suggest.


On Thu, Feb 13, 2014 at 7:31 PM, Juan Hernandez jhern...@redhat.com wrote:

 On 02/13/2014 02:39 PM, Tejesh M wrote:
  Hi All,
 
  Thanks alot.
 
  I have created one VM with minimal installation  installed cloud-init
  package. And, converted that VM into Template. Then executed the code
  given in
  http://lists.ovirt.org/pipermail/users/2014-February/021302.html , but
  no luck, the code is not setting root password.
 

 What version of the engine are you running? I may not have the required
 cloud-init support.

 Try to run the application in debug mode:

   Api api = new Api(
 https://whatever/api;,
 user@domain,
 password,
 null,
 null,
 null,
 null,
 true,
 null,
 true  // - This is to enable debug mode
   );

 It will send to the log the actual XML documents sent to the server. We
 can use it to see if the request is generated correctly.

 It may also happen that cloud-init support isn't working correctly. To
 verify this try to use the cloud-init support manually from webadmin.
 Does it work from there?

  Also, there is no option to set *Hostname *for the VM.
 

 To set the host name you need to add something like this:

   Host hostData = new Host();
   hostData.setAddress(the.host.name);
   cloudData.setHost(hostData);

 
 
  _*Code:*_
 
  /*Begin Customize VM*/
  // Generate the random password, using whatever mechanism you
// prefer:
String password = cJql3P9XLQG4drCYVG/6Q/;
 
// You need to know the name of the template, the cluster and
// the VM you are going to create:
String templateName = rhel2_temp;
String clusterName = testCluster;
String vmName = myvm;
 
// Prepare the data to create the VM from the template:
org.ovirt.engine.sdk.entities.Template templateData = new
  Template();
templateData.setName(templateName);
org.ovirt.engine.sdk.entities.Cluster clusterData = new
 Cluster();
clusterData.setName(clusterName);
org.ovirt.engine.sdk.entities.VM vmDataForCreate = new VM();
vmDataForCreate.setName(vmName);
vmDataForCreate.setCluster(clusterData);
vmDataForCreate.setTemplate(templateData);
 
// Send the request to create the VM to the server:
api.getVMs().add(vmDataForCreate);
String state;
// White till the VM is down (it will be locked for a while):
for (;;) {
   state = api.getVMs().get(vmName).getStatus().getState();
  if (down.equals(state)) {
break;
  }
  Thread.sleep(1000);
}
System.out.println(System Status:+state);
// Populate parameters for the action to start the VM with
  cloud-init:
org.ovirt.engine.sdk.entities.User userData = new User();
userData.setUserName(root);
userData.setPassword(password);
Users usersData = new Users();
usersData.getUsers().add(userData);
CloudInit cloudData = new CloudInit();
cloudData.setUsers(usersData);
 
Initialization initData = new Initialization();
initData.setCloudInit(cloudData);
VM vmDataForStart = new VM();
vmDataForStart.setInitialization(initData);
Action actionData = new Action();
actionData.setVm(vmDataForStart);
 
// Send the request to start the VM to the server:
api.getVMs().get(vmName).start(actionData);
System.out.println(After :
  +api.getVMs().get(vmName).getStatus());
/*End Customize VM*/
 
 
 
  Thanks  Regards,
  Tejesh
 
 
 
  On Thu, Feb 13, 2014 at 2:26 PM, Juan Hernandez jhern...@redhat.com
  mailto:jhern...@redhat.com wrote:
 
  On 02/13/2014 09:29 AM, Shahar Havivi wrote:
   On 13.02.14 00:59, Oved Ourfalli wrote:
  
  
   - Original Message -
   From: Shahar Havivi shah...@redhat.com
  mailto:shah...@redhat.com
   To: users@ovirt.org mailto:users@ovirt.org
   Cc: Juan Antonio Hernandez Fernandez jhern...@redhat.com
  mailto:jhern...@redhat.com, rhevm-...@lists.fedorahosted.org
  mailto:rhevm-...@lists.fedorahosted.org, Tejesh M
   tejes...@gmail.com mailto:tejes...@gmail.com
   Sent: Wednesday, February 12, 2014 11:22:20 PM
   Subject: Re: [Users] [rhevm-api] Assign IP address to VM using
  Java SDK
  
   On 12.02.14 

Re: [Users] possible to attach cloud-init data to vm started from cd rom?

2014-02-13 Thread Sven Kieske
Okay, I think I found a bug:

if you attach a cd-rom via run once and make it
the primary boot device
and you submit in the same step cloud-init data
the xml file generated by ovirt looks like the following:

both virtual cd roms get attached and show up in the xml
the expected primary boot device shows up as:
disk type='file' device='cdrom'
  driver name='qemu' type='raw'/
 target dev='hdc' bus='ide'/

with no entity (which it should have):

boot order='1'/

the cloud-init data shows up as the following:

disk type='file' device='cdrom'
  driver name='qemu' type='raw'/
   source
file='/var/run/vdsm/payload/934aebfd-7a7b-4c47-91be-97d58fb32b1e.34f0c17686175ad722c3b0a03f3db4d3.img'
startupPolicy='optional'/
  target dev='hdd' bus='ide'/
  readonly/
  serial/serial
  boot order='1'/

the hdd gets boot order='2'

this results in a wrong boot order:
the vm trys to start from the cloud-init cd rom and fails
and then boots the hdd.

I will file a BZ for this.

Tested with the following versions:

rpm -qa vdsm
vdsm-4.12.1-4.el6.x86_64

rpm -qa ovirt-engine
ovirt-engine-3.3.2-1.el6.noarch



Am 12.02.2014 13:37, schrieb Sven Kieske:
 Hi,
 
 I would like to know if the following scenario is supported in ovirt
 (currently testing 3.3.2).
 
 You have a vm with an attached disk.
 You want to start this vm with an attached iso image via cd-rom
 you want to pass to this started system cloud-init metadata via
 run once or REST.
 
 I know that ovirt passes the metadata by creating an ISO and
 attaching this ISO to the VM as an CD-ROM itself.
 
 My tests so far included the following:
 
 1. shut down the vm
 2. click run once
 3. switch boot order to boot from cd-rom, attach an ISO
 4. activate cloud-init metadata and pass some data over it
 
 actual result: the system boots from hard disk, not from
 the attached iso.
 
 Second test:
 
 1. shut down the vm
 2. edit the vm, change boot order to boot from cd-rom, attach iso
 2. click run once
 4. activate cloud-init metadata and pass some data over it
 
 actual result: the system boots from hard disk, not from
 the attached iso.
 
 Is this not possible or am I doing it wrong?
 
 Any hints would be appreciated!
 

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

2014-02-13 Thread Shahar Havivi
On 13.02.14 20:17, Tejesh M wrote:
 1. The Version is RHEV-M 3.3  Cloud-init is
 cloud-init-0.6.3-0.12.bzr532.el6.noarch
 
 2. In Webadmin, i don't find any option to set Cloud-init data's. I checked
 under New VM-Initial Run.. Am i looking at the right place?
 How to enable cloud-init support in engine?
You will not found it since you are working in 3.3 and this feature presented
in 3.4.
In 3.3 you can try to set the Cloud-Init via the Run-Once button.

 
 I have installed cloud-init package in RHEV-M  also in Template.
 
 Please suggest.
 
 
 On Thu, Feb 13, 2014 at 7:31 PM, Juan Hernandez jhern...@redhat.com wrote:
 
  On 02/13/2014 02:39 PM, Tejesh M wrote:
   Hi All,
  
   Thanks alot.
  
   I have created one VM with minimal installation  installed cloud-init
   package. And, converted that VM into Template. Then executed the code
   given in
   http://lists.ovirt.org/pipermail/users/2014-February/021302.html , but
   no luck, the code is not setting root password.
  
 
  What version of the engine are you running? I may not have the required
  cloud-init support.
 
  Try to run the application in debug mode:
 
Api api = new Api(
  https://whatever/api;,
  user@domain,
  password,
  null,
  null,
  null,
  null,
  true,
  null,
  true  // - This is to enable debug mode
);
 
  It will send to the log the actual XML documents sent to the server. We
  can use it to see if the request is generated correctly.
 
  It may also happen that cloud-init support isn't working correctly. To
  verify this try to use the cloud-init support manually from webadmin.
  Does it work from there?
 
   Also, there is no option to set *Hostname *for the VM.
  
 
  To set the host name you need to add something like this:
 
Host hostData = new Host();
hostData.setAddress(the.host.name);
cloudData.setHost(hostData);
 
  
  
   _*Code:*_
  
   /*Begin Customize VM*/
   // Generate the random password, using whatever mechanism you
 // prefer:
 String password = cJql3P9XLQG4drCYVG/6Q/;
  
 // You need to know the name of the template, the cluster and
 // the VM you are going to create:
 String templateName = rhel2_temp;
 String clusterName = testCluster;
 String vmName = myvm;
  
 // Prepare the data to create the VM from the template:
 org.ovirt.engine.sdk.entities.Template templateData = new
   Template();
 templateData.setName(templateName);
 org.ovirt.engine.sdk.entities.Cluster clusterData = new
  Cluster();
 clusterData.setName(clusterName);
 org.ovirt.engine.sdk.entities.VM vmDataForCreate = new VM();
 vmDataForCreate.setName(vmName);
 vmDataForCreate.setCluster(clusterData);
 vmDataForCreate.setTemplate(templateData);
  
 // Send the request to create the VM to the server:
 api.getVMs().add(vmDataForCreate);
 String state;
 // White till the VM is down (it will be locked for a while):
 for (;;) {
state = api.getVMs().get(vmName).getStatus().getState();
   if (down.equals(state)) {
 break;
   }
   Thread.sleep(1000);
 }
 System.out.println(System Status:+state);
 // Populate parameters for the action to start the VM with
   cloud-init:
 org.ovirt.engine.sdk.entities.User userData = new User();
 userData.setUserName(root);
 userData.setPassword(password);
 Users usersData = new Users();
 usersData.getUsers().add(userData);
 CloudInit cloudData = new CloudInit();
 cloudData.setUsers(usersData);
  
 Initialization initData = new Initialization();
 initData.setCloudInit(cloudData);
 VM vmDataForStart = new VM();
 vmDataForStart.setInitialization(initData);
 Action actionData = new Action();
 actionData.setVm(vmDataForStart);
  
 // Send the request to start the VM to the server:
 api.getVMs().get(vmName).start(actionData);
 System.out.println(After :
   +api.getVMs().get(vmName).getStatus());
 /*End Customize VM*/
  
  
  
   Thanks  Regards,
   Tejesh
  
  
  
   On Thu, Feb 13, 2014 at 2:26 PM, Juan Hernandez jhern...@redhat.com
   mailto:jhern...@redhat.com wrote:
  
   On 02/13/2014 09:29 AM, Shahar Havivi wrote:
On 13.02.14 00:59, Oved Ourfalli wrote:
   
   
- Original Message -
From: Shahar Havivi shah...@redhat.com
   mailto:shah...@redhat.com
To: users@ovirt.org mailto:users@ovirt.org
Cc: Juan Antonio Hernandez Fernandez jhern...@redhat.com
   

Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

2014-02-13 Thread Juan Hernandez
On 02/13/2014 03:59 PM, Shahar Havivi wrote:
 On 13.02.14 20:17, Tejesh M wrote:
 1. The Version is RHEV-M 3.3  Cloud-init is
 cloud-init-0.6.3-0.12.bzr532.el6.noarch

 2. In Webadmin, i don't find any option to set Cloud-init data's. I checked
 under New VM-Initial Run.. Am i looking at the right place?
 How to enable cloud-init support in engine?
 You will not found it since you are working in 3.3 and this feature presented
 in 3.4.
 In 3.3 you can try to set the Cloud-Init via the Run-Once button.
 

In 3.3 you need first to create the VM. Once it is created select it,
click the Run Once button, then click on the plus sign next to
Initial Run, check the Cloud-Init box, and populate the fields you want.


 I have installed cloud-init package in RHEV-M  also in Template.

 Please suggest.


 On Thu, Feb 13, 2014 at 7:31 PM, Juan Hernandez jhern...@redhat.com wrote:

 On 02/13/2014 02:39 PM, Tejesh M wrote:
 Hi All,

 Thanks alot.

 I have created one VM with minimal installation  installed cloud-init
 package. And, converted that VM into Template. Then executed the code
 given in
 http://lists.ovirt.org/pipermail/users/2014-February/021302.html , but
 no luck, the code is not setting root password.


 What version of the engine are you running? I may not have the required
 cloud-init support.

 Try to run the application in debug mode:

   Api api = new Api(
 https://whatever/api;,
 user@domain,
 password,
 null,
 null,
 null,
 null,
 true,
 null,
 true  // - This is to enable debug mode
   );

 It will send to the log the actual XML documents sent to the server. We
 can use it to see if the request is generated correctly.

 It may also happen that cloud-init support isn't working correctly. To
 verify this try to use the cloud-init support manually from webadmin.
 Does it work from there?

 Also, there is no option to set *Hostname *for the VM.


 To set the host name you need to add something like this:

   Host hostData = new Host();
   hostData.setAddress(the.host.name);
   cloudData.setHost(hostData);



 _*Code:*_

 /*Begin Customize VM*/
 // Generate the random password, using whatever mechanism you
   // prefer:
   String password = cJql3P9XLQG4drCYVG/6Q/;

   // You need to know the name of the template, the cluster and
   // the VM you are going to create:
   String templateName = rhel2_temp;
   String clusterName = testCluster;
   String vmName = myvm;

   // Prepare the data to create the VM from the template:
   org.ovirt.engine.sdk.entities.Template templateData = new
 Template();
   templateData.setName(templateName);
   org.ovirt.engine.sdk.entities.Cluster clusterData = new
 Cluster();
   clusterData.setName(clusterName);
   org.ovirt.engine.sdk.entities.VM vmDataForCreate = new VM();
   vmDataForCreate.setName(vmName);
   vmDataForCreate.setCluster(clusterData);
   vmDataForCreate.setTemplate(templateData);

   // Send the request to create the VM to the server:
   api.getVMs().add(vmDataForCreate);
   String state;
   // White till the VM is down (it will be locked for a while):
   for (;;) {
  state = api.getVMs().get(vmName).getStatus().getState();
 if (down.equals(state)) {
   break;
 }
 Thread.sleep(1000);
   }
   System.out.println(System Status:+state);
   // Populate parameters for the action to start the VM with
 cloud-init:
   org.ovirt.engine.sdk.entities.User userData = new User();
   userData.setUserName(root);
   userData.setPassword(password);
   Users usersData = new Users();
   usersData.getUsers().add(userData);
   CloudInit cloudData = new CloudInit();
   cloudData.setUsers(usersData);

   Initialization initData = new Initialization();
   initData.setCloudInit(cloudData);
   VM vmDataForStart = new VM();
   vmDataForStart.setInitialization(initData);
   Action actionData = new Action();
   actionData.setVm(vmDataForStart);

   // Send the request to start the VM to the server:
   api.getVMs().get(vmName).start(actionData);
   System.out.println(After :
 +api.getVMs().get(vmName).getStatus());
   /*End Customize VM*/



 Thanks  Regards,
 Tejesh



 On Thu, Feb 13, 2014 at 2:26 PM, Juan Hernandez jhern...@redhat.com
 mailto:jhern...@redhat.com wrote:

 On 02/13/2014 09:29 AM, Shahar Havivi wrote:
  On 13.02.14 00:59, Oved Ourfalli wrote:
 
 
  - Original Message -
  From: Shahar Havivi shah...@redhat.com
 mailto:shah...@redhat.com
  To: users@ovirt.org mailto:users@ovirt.org
  Cc: Juan Antonio Hernandez 

Re: [Users] possible to attach cloud-init data to vm started from cd rom?

2014-02-13 Thread Sven Kieske
Here is the BZ, I also found 2 maybe related BZs which are already
closed:

https://bugzilla.redhat.com/show_bug.cgi?id=1064927

Am 12.02.2014 13:37, schrieb Sven Kieske:
 Hi,
 
 I would like to know if the following scenario is supported in ovirt
 (currently testing 3.3.2).
 
 You have a vm with an attached disk.
 You want to start this vm with an attached iso image via cd-rom
 you want to pass to this started system cloud-init metadata via
 run once or REST.
 
 I know that ovirt passes the metadata by creating an ISO and
 attaching this ISO to the VM as an CD-ROM itself.
 
 My tests so far included the following:
 
 1. shut down the vm
 2. click run once
 3. switch boot order to boot from cd-rom, attach an ISO
 4. activate cloud-init metadata and pass some data over it
 
 actual result: the system boots from hard disk, not from
 the attached iso.
 
 Second test:
 
 1. shut down the vm
 2. edit the vm, change boot order to boot from cd-rom, attach iso
 2. click run once
 4. activate cloud-init metadata and pass some data over it
 
 actual result: the system boots from hard disk, not from
 the attached iso.
 
 Is this not possible or am I doing it wrong?
 
 Any hints would be appreciated!
 

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] ovirt reports

2014-02-13 Thread Alessandro Bianchi

  
  



  Il 10/02/2014 10:55, Yaniv Dary ha
scritto:
  


  Please check the dwh log for error and check the history
database for data.
  
  You should be able to select any datacenter you like. You can
not select multiple datacenters.
  Input controls should list all the living entities by default
and you can click on the dropdown to get a list.  
  
  
  
  
  Yaniv
  
Ok

I see no errors log in the log but I can view two  DIFFERENT DC in
different reports (I have 4 different DC) as they get selected per
default

Per example in Hosts Inventory I can only see a DC named "GlusterSD"
while in many others (Active Virtual Machine by OS per example) I
can only see Default DC selected as default

If I try to type anything in the "Data Center" filter field, every
character gets suddenly deleted

If I click on the magnifier button nothing happens

The same happens in every other field in the input contolrols filter
window

I have no idea about what to check to discover 

I'm using Firefox 28 on Linux but the same happens with Chrome

Any idea anyone?

Thank you and best regards

Alessandro

-- 
  
  
  
  
  
  
  
  
  SkyNet SRL
  Via Maggiate 67/a - 28021 Borgomanero (NO) -
tel.
+39 0322-836487/834765 - fax +39 0322-836608
  http://www.skynet.it
  Autorizzazione Ministeriale n.197
  Le informazioni contenute in questo messaggio sono
riservate e confidenziali ed è vietata la diffusione in
qualunque
modo eseguita.
Qualora Lei non fosse la persona a cui il presente
messaggio è destinato, La invitiamo ad eliminarlo ed a
distruggerlo
non divulgandolo, dandocene gentilmente comunicazione. 
Per
qualsiasi informazione si prega di contattare i...@skynet.it
(e-mail dell'azienda). Rif. D.L. 196/2003

  

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] engine-backup --restore

2014-02-13 Thread Juan Pablo Lorier
Thanks Alon, you were right.


On 12/02/14 17:13, Alon Bar-Lev wrote:

 - Original Message -
 From: Juan Pablo Lorier jplor...@gmail.com
 To: Yedidyah Bar David d...@redhat.com
 Cc: users users@ovirt.org
 Sent: Wednesday, February 12, 2014 9:10:43 PM
 Subject: Re: [Users] engine-backup --restore

 Well, too soon to say boodbye.
 Thought I used --change-db-credentials in the restore, the engine seems
 to be unable to connect to the database. I assume that it didn't get the
 new password, so, is there a way to tell the engine about the new password?
 Regards,
 /etc/ovirt-engine/engine.conf/10-setup-database.conf or similar.
 Look for ENGINE_DB_* variables.

 On 12/02/14 16:03, Yedidyah Bar David wrote:
 - Original Message -
 From: Juan Pablo Lorier jplor...@gmail.com
 To: Yedidyah Bar David d...@redhat.com
 Cc: Sahina Bose sab...@redhat.com, users users@ovirt.org
 Sent: Wednesday, February 12, 2014 7:55:35 PM
 Subject: Re: [Users] Problems accesing the database

 Hi Yedidyah,

 But If I run engine-setup and then engine-backup restore shuldn't it
 import the data to the existing db created by engine-setup?
 That's shown everywhere so I thought it's a valid way to migrate
 No.

 There is a specific case in which this works automatically:
 All on the same host:
 1. engine-setup
 2. engine-backup --mode=backup
 (perhaps do other stuff here)
 3. engine-cleanup
 4. engine-backup --mode=restore

 Why does this work? Because 'engine-cleanup', since 3.3, does not drop
 the database nor user inside postgres. So when restore tries to access
 this database using this user and password it succeeds.

 In general, if you do the restore on another machine, and do there
 'engine-setup; engine-cleanup' as a quick-postgres-provisioning-tool,
 you end up almost ready, but not quite - because the password is random,
 and therefore different between the installations. In principle you could
 have provided just the password to restore, but we decided that if you
 need to change the credentials, you should pass all of them (except for
 defaults).

 Hope this clarifies,


 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users





signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] engine-backup --restore

2014-02-13 Thread Juan Pablo Lorier
Hi David,

It ended correctly and password was changed in the
10-setup-database.conf but there were still errors in the engine log
pointing to an authentication problem against the database.
I'm starting over again with some hints from another post, lets see what
happens.
Regards,

On 13/02/14 04:23, Yedidyah Bar David wrote:
 - Original Message -
 From: Alon Bar-Lev alo...@redhat.com
 To: Juan Pablo Lorier jplor...@gmail.com
 Cc: Yedidyah Bar David d...@redhat.com, users users@ovirt.org
 Sent: Wednesday, February 12, 2014 9:13:30 PM
 Subject: Re: [Users] engine-backup --restore



 - Original Message -
 From: Juan Pablo Lorier jplor...@gmail.com
 To: Yedidyah Bar David d...@redhat.com
 Cc: users users@ovirt.org
 Sent: Wednesday, February 12, 2014 9:10:43 PM
 Subject: Re: [Users] engine-backup --restore

 Well, too soon to say boodbye.
 Thought I used --change-db-credentials in the restore, the engine seems
 to be unable to connect to the database. I assume that it didn't get the
 new password, so, is there a way to tell the engine about the new password?
 Regards,
 /etc/ovirt-engine/engine.conf/10-setup-database.conf or similar.
 Look for ENGINE_DB_* variables.
 Indeed, but this should happen automatically if you passed correct
 credentials and restore succeeded. See e.g. the other report posted.
 Did restore succeed?

 Thanks,




signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Memory usage

2014-02-13 Thread david van zeebroeck
doron this is the balloon bug :
https://bugzilla.redhat.com/show_bug.cgi?id=1035297




On Thu, Feb 13, 2014 at 2:05 PM, Doron Fediuck dfedi...@redhat.com wrote:



 - Original Message -
  From: Koen Vanoppen vanoppen.k...@gmail.com
  To: users@ovirt.org
  Sent: Thursday, February 13, 2014 12:18:24 PM
  Subject: Re: [Users] Memory usage
 
 
 
  We can't turn off the memory balloon option because we are running the
 3.3.2
  with the bug of the memory balloon. Thx for the help!

 Which balloon bug?

  On Feb 13, 2014 10:51 AM, Doron Fediuck  dfedi...@redhat.com  wrote:
 
 
 
 
  - Original Message -
   From: René Koch  rk...@linuxland.at 
   To: Doron Fediuck  dfedi...@redhat.com 
   Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org ,
 Martin
   Sivak  msi...@redhat.com 
   Sent: Thursday, February 13, 2014 11:16:27 AM
   Subject: Re: [Users] Memory usage
  
   On Thu, 2014-02-13 at 03:49 -0500, Doron Fediuck wrote:
   
- Original Message -
 From: René Koch  rk...@linuxland.at 
 To: Doron Fediuck  dfedi...@redhat.com 
 Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org ,
 Martin
 Sivak  msi...@redhat.com 
 Sent: Wednesday, February 12, 2014 7:31:47 PM
 Subject: Re: [Users] Memory usage

 On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:
 
  - Original Message -
   From: René Koch  rk...@linuxland.at 
   To: Koen Vanoppen  vanoppen.k...@gmail.com 
   Cc: users@ovirt.org
   Sent: Wednesday, February 12, 2014 4:18:37 PM
   Subject: Re: [Users] Memory usage
  
   On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
In The GUI, it says it's using 25% of the memory.
  
  
   I guess it's the real value, right?
   The same happened for the memcached vm, someone reported to me
 -
   negative value in REST-API, but correct graph in oVirt webadmin
   GUI.
  
   I fear I have no idea how this can happen - so maybe someone
 else
   can
   help you troubleshoot this issue.
   
   
   
2014-02-12 15:10 GMT+01:00 Koen Vanoppen 
vanoppen.k...@gmail.com :
Thanks for the quick respons, but there is no memcached
running on that VM.
   
   
Kind regards
   
   
   
2014-02-12 15:06 GMT+01:00 René Koch  rk...@linuxland.at :
   
On Wed, 2014-02-12 at 14:55 +0100, Koen Vanoppen
wrote:
 Dear all,


 When we monitor one of our machines, we noticed
 that
there was one vm
 that was constantly giving a error of memory
 usage.
But when we took a
 look at it, there is actually nothing wrong with
 it.
Now we looked
 furhter then that. We looked at the API of the
machine and noticed
 something very strange:

 statistic

   
 href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08
   
 id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
used (agent)/descriptionvalues
   
 type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit


 It's a negative...
   
   
   
Do you have memcached running in this vm?
   
I heard about this issue with memcached, but never
tested memcached in
my oVirt environment. You get the real usage value
with
memory.used = memory.installed + memory.used
   
   
Regards,
René
   


 What could be the problem?


 Kind regards,

 koen

   
 
  Guys,
  these values are usually a result of overcommitment mechanism
 usage.
  For example, if KSM is effective, it will free a lot of memory
 pages,
  and total-free-committed becomes negative.


 Thanks a lot for the information.


 
  This was reported in
  https://bugzilla.redhat.com/show_bug.cgi?id=977758
  and the engine is using memFree reported by vdsm, which is more
  accurate.
 
  The API reports the old version due to backwards compatibility.


 I just had a look at the bugzilla report and the RHEV documentation
 which says Current memory in bytes used by the virtual machine..
 So this means, the reported values are totally useless for
 monitoring
 memory usage of a virtual machine if KSM is active. I would expect
 to
 get the memory usage of a virtual machine and not how much memory
 is
 consumed on the hypervisor (this is pretty useless information for
 me).

 Is it planned to report the memory usage in a virtual machine in
 the
 API
 as well?


 Regards,
 René


   
René,
started digging into this, but 

Re: [Users] Memory usage

2014-02-13 Thread david van zeebroeck
in attachement is the output of vdsclient




On Thu, Feb 13, 2014 at 2:26 PM, Martin Sivak msi...@redhat.com wrote:

 Hi everybody,

 would it be possible to add the output of vdsClient getVmStats affected
 vm id from the affected host here and to the bug?

 Also can we please get the bug number that tracks this issue? I could not
 find it in BZ.

 --
 Martin Sivák
 msi...@redhat.com
 Red Hat Czech
 RHEV-M SLA / Brno, CZ

 - Original Message -
 
 
  - Original Message -
   From: Koen Vanoppen vanoppen.k...@gmail.com
   To: users@ovirt.org
   Sent: Thursday, February 13, 2014 12:18:24 PM
   Subject: Re: [Users] Memory usage
  
  
  
   We can't turn off the memory balloon option because we are running the
   3.3.2
   with the bug of the memory balloon. Thx for the help!
 
  Which balloon bug?
 
   On Feb 13, 2014 10:51 AM, Doron Fediuck  dfedi...@redhat.com 
 wrote:
  
  
  
  
   - Original Message -
From: René Koch  rk...@linuxland.at 
To: Doron Fediuck  dfedi...@redhat.com 
Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org ,
Martin
Sivak  msi...@redhat.com 
Sent: Thursday, February 13, 2014 11:16:27 AM
Subject: Re: [Users] Memory usage
   
On Thu, 2014-02-13 at 03:49 -0500, Doron Fediuck wrote:

 - Original Message -
  From: René Koch  rk...@linuxland.at 
  To: Doron Fediuck  dfedi...@redhat.com 
  Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org,
  Martin
  Sivak  msi...@redhat.com 
  Sent: Wednesday, February 12, 2014 7:31:47 PM
  Subject: Re: [Users] Memory usage
 
  On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:
  
   - Original Message -
From: René Koch  rk...@linuxland.at 
To: Koen Vanoppen  vanoppen.k...@gmail.com 
Cc: users@ovirt.org
Sent: Wednesday, February 12, 2014 4:18:37 PM
Subject: Re: [Users] Memory usage
   
On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
 In The GUI, it says it's using 25% of the memory.
   
   
I guess it's the real value, right?
The same happened for the memcached vm, someone reported to
 me -
negative value in REST-API, but correct graph in oVirt
 webadmin
GUI.
   
I fear I have no idea how this can happen - so maybe someone
 else
can
help you troubleshoot this issue.



 2014-02-12 15:10 GMT+01:00 Koen Vanoppen 
 vanoppen.k...@gmail.com :
 Thanks for the quick respons, but there is no memcached
 running on that VM.


 Kind regards



 2014-02-12 15:06 GMT+01:00 René Koch  rk...@linuxland.at:

 On Wed, 2014-02-12 at 14:55 +0100, Koen Vanoppen
 wrote:
  Dear all,
 
 
  When we monitor one of our machines, we noticed
  that
 there was one vm
  that was constantly giving a error of memory
  usage.
 But when we took a
  look at it, there is actually nothing wrong with
  it.
 Now we looked
  furhter then that. We looked at the API of the
 machine and noticed
  something very strange:
 
  statistic
 

 href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08

 id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
 used (agent)/descriptionvalues

 type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit
 
 
  It's a negative...



 Do you have memcached running in this vm?

 I heard about this issue with memcached, but never
 tested memcached in
 my oVirt environment. You get the real usage value
 with
 memory.used = memory.installed + memory.used


 Regards,
 René

 
 
  What could be the problem?
 
 
  Kind regards,
 
  koen
 

  
   Guys,
   these values are usually a result of overcommitment mechanism
   usage.
   For example, if KSM is effective, it will free a lot of memory
   pages,
   and total-free-committed becomes negative.
 
 
  Thanks a lot for the information.
 
 
  
   This was reported in
   https://bugzilla.redhat.com/show_bug.cgi?id=977758
   and the engine is using memFree reported by vdsm, which is more
   accurate.
  
   The API reports the old version due to backwards compatibility.
 
 
  I just had a look at the bugzilla report and the RHEV
 documentation
  which says Current memory in bytes used by the virtual
 machine..
  So this means, the reported values 

Re: [Users] snapshots not shown in webadmin on 3.3.3

2014-02-13 Thread Juan Pablo Lorier
It's done:

*Bug 1064946* https://bugzilla.redhat.com/show_bug.cgi?id=1064946
-Snapshots are not shown

Regards,

On 12/02/14 19:41, Eli Mesika wrote:

 - Original Message -
 From: Juan Pablo Lorier jplor...@gmail.com
 To: users users@ovirt.org
 Sent: Wednesday, February 12, 2014 6:37:28 PM
 Subject: [Users] snapshots not shown in webadmin on 3.3.3

 Hi,

 I've updated to 3.3.3 last week and now I find that the snapshots are
 not shown in webadmin. I've taken some new ones to see if it was due to
 the migration, but though they finish correctly, they are not shown in
 the webadmin tab.
 Is there a way to list the snapshots other than the webadmin?
 Juan
 I had reproduced that in 3.4 beta 2 , can you please open a bug on that ?
 Thanks

 Eli


 Regards,


 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users




signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Fwd: Re: Memory usage

2014-02-13 Thread Koen Vanoppen
-- Forwarded message --
From: david van zeebroeck da...@analytics.brusselsairport.be
Date: Feb 13, 2014 4:31 PM
Subject: Re: [Users] Memory usage
To: Martin Sivak msi...@redhat.com
Cc: Doron Fediuck dfedi...@redhat.com, Koen Vanoppen 
vanoppen.k...@gmail.com, users@ovirt.org

in attachement is the output of vdsclient




On Thu, Feb 13, 2014 at 2:26 PM, Martin Sivak msi...@redhat.com wrote:

 Hi everybody,

 would it be possible to add the output of vdsClient getVmStats affected
 vm id from the affected host here and to the bug?

 Also can we please get the bug number that tracks this issue? I could not
 find it in BZ.

 --
 Martin Sivák
 msi...@redhat.com
 Red Hat Czech
 RHEV-M SLA / Brno, CZ

 - Original Message -
 
 
  - Original Message -
   From: Koen Vanoppen vanoppen.k...@gmail.com
   To: users@ovirt.org
   Sent: Thursday, February 13, 2014 12:18:24 PM
   Subject: Re: [Users] Memory usage
  
  
  
   We can't turn off the memory balloon option because we are running the
   3.3.2
   with the bug of the memory balloon. Thx for the help!
 
  Which balloon bug?
 
   On Feb 13, 2014 10:51 AM, Doron Fediuck  dfedi...@redhat.com 
 wrote:
  
  
  
  
   - Original Message -
From: René Koch  rk...@linuxland.at 
To: Doron Fediuck  dfedi...@redhat.com 
Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org ,
Martin
Sivak  msi...@redhat.com 
Sent: Thursday, February 13, 2014 11:16:27 AM
Subject: Re: [Users] Memory usage
   
On Thu, 2014-02-13 at 03:49 -0500, Doron Fediuck wrote:

 - Original Message -
  From: René Koch  rk...@linuxland.at 
  To: Doron Fediuck  dfedi...@redhat.com 
  Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org,
  Martin
  Sivak  msi...@redhat.com 
  Sent: Wednesday, February 12, 2014 7:31:47 PM
  Subject: Re: [Users] Memory usage
 
  On Wed, 2014-02-12 at 11:22 -0500, Doron Fediuck wrote:
  
   - Original Message -
From: René Koch  rk...@linuxland.at 
To: Koen Vanoppen  vanoppen.k...@gmail.com 
Cc: users@ovirt.org
Sent: Wednesday, February 12, 2014 4:18:37 PM
Subject: Re: [Users] Memory usage
   
On Wed, 2014-02-12 at 15:14 +0100, Koen Vanoppen wrote:
 In The GUI, it says it's using 25% of the memory.
   
   
I guess it's the real value, right?
The same happened for the memcached vm, someone reported to
 me -
negative value in REST-API, but correct graph in oVirt
 webadmin
GUI.
   
I fear I have no idea how this can happen - so maybe someone
 else
can
help you troubleshoot this issue.



 2014-02-12 15:10 GMT+01:00 Koen Vanoppen 
 vanoppen.k...@gmail.com :
 Thanks for the quick respons, but there is no memcached
 running on that VM.


 Kind regards



 2014-02-12 15:06 GMT+01:00 René Koch  rk...@linuxland.at:

 On Wed, 2014-02-12 at 14:55 +0100, Koen Vanoppen
 wrote:
  Dear all,
 
 
  When we monitor one of our machines, we noticed
  that
 there was one vm
  that was constantly giving a error of memory
  usage.
 But when we took a
  look at it, there is actually nothing wrong with
  it.
 Now we looked
  furhter then that. We looked at the API of the
 machine and noticed
  something very strange:
 
  statistic
 

 href=/api/vms/3b9aa245-75ff-42e8-b921-1c9ce61826bf/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08

 id=b7499508-c1c3-32f0-8174-c1783e57bb08namememory.used/namedescriptionMemory
 used (agent)/descriptionvalues

 type=INTEGERvaluedatum-944892806/datum/value/valuestypeGAUGE/typeunitBYTES/unit
 
 
  It's a negative...



 Do you have memcached running in this vm?

 I heard about this issue with memcached, but never
 tested memcached in
 my oVirt environment. You get the real usage value
 with
 memory.used = memory.installed + memory.used


 Regards,
 René

 
 
  What could be the problem?
 
 
  Kind regards,
 
  koen
 

  
   Guys,
   these values are usually a result of overcommitment mechanism
   usage.
   For example, if KSM is effective, it will free a lot of memory
   pages,
   and total-free-committed becomes negative.
 
 
  Thanks a lot for the information.
 
 
  
   This was reported in
   https://bugzilla.redhat.com/show_bug.cgi?id=977758
   and the engine is using memFree reported by vdsm, which is more
  

Re: [Users] snapshots not shown in webadmin on 3.3.3

2014-02-13 Thread Juan Pablo Lorier
Hi Jiri,

You are right, chrome shows the snapshots. I'll change the bz to reflect
this, you may mark it as a duplicate then.
Regards,
On 13/02/14 06:27, Jiri Belka wrote:
 On Wed, 12 Feb 2014 16:41:06 -0500 (EST)
 Eli Mesika emes...@redhat.com wrote:


 - Original Message -
 From: Juan Pablo Lorier jplor...@gmail.com
 To: users users@ovirt.org
 Sent: Wednesday, February 12, 2014 6:37:28 PM
 Subject: [Users] snapshots not shown in webadmin on 3.3.3

 Hi,

 I've updated to 3.3.3 last week and now I find that the snapshots are
 not shown in webadmin. I've taken some new ones to see if it was due to
 the migration, but though they finish correctly, they are not shown in
 the webadmin tab.
 Is there a way to list the snapshots other than the webadmin?
 Juan
 I had reproduced that in 3.4 beta 2 , can you please open a bug on that ?
 Thanks

 Eli
 If this is just Web UI issue than it is known for long time. But there's
 no clear reproducer (BZ was filled for RHEVM 3.3). This has something
 to do with Firefox cache. With clear FF profile snapshots are visible.
 But after some time when are not visible until full reload of the page.

 j.




signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] engine-backup --restore

2014-02-13 Thread Trey Dockendorf
A wiki page is a good idea, glad the steps worked in more than my case.

- Trey

On Thu, Feb 13, 2014 at 9:37 AM, Juan Pablo Lorier jplor...@gmail.com wrote:
 Hi Trey,

 Following your procedure, I was able to get the engine running. THANKS A
 LOT TO EVERYONE!!
 If you allow me, I'll create a wiki page with this mentioning you so
 others can get this easily.
 Regards,

 On 12/02/14 17:32, Trey Dockendorf wrote:
 I was having the same issue (and posted about it today, with full
 steps).  I'd reply to my current post to list but I don't seem to
 receive my own posts.

 I have since taken these steps (as root)

 $ su - postgres -c dropdb engine
 $ su - postgres -c psql -c \create user engine password 'PASSWORD'\
 $ su - postgres -c psql -c \create database engine owner engine
 template template0 encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype
 'en_US.UTF-8'\
 $ engine-backup --mode=restore --scope=all
 --file=engine-20140211-1457.tar.bz2 --log=engine-backup.log
 --change-db-credentials --db-host=localhost --db-port=5432
 --db-user=engine --db-name=engine --db-password=PASSWORD
 Restoring...
 Rewriting /etc/ovirt-engine/engine.conf.d/10-setup-database.conf
 Note: you might need to manually fix:
 - iptables/firewalld configuration
 - autostart of ovirt-engine service
 You can now start the engine service and then restart httpd
 Done.

 $ engine-setup

 I believe I initially created the database incorrectly (ran 'createdb
 engine' as postgres user).  I was getting errors during engine-setup
 that indicated the database could not be accessed.

 After the steps above, everything looks good.

 - Trey


 On Wed, Feb 12, 2014 at 1:10 PM, Juan Pablo Lorier jplor...@gmail.com 
 wrote:
 Well, too soon to say boodbye.
 Thought I used --change-db-credentials in the restore, the engine seems
 to be unable to connect to the database. I assume that it didn't get the
 new password, so, is there a way to tell the engine about the new password?
 Regards,

 On 12/02/14 16:03, Yedidyah Bar David wrote:
 - Original Message -
 From: Juan Pablo Lorier jplor...@gmail.com
 To: Yedidyah Bar David d...@redhat.com
 Cc: Sahina Bose sab...@redhat.com, users users@ovirt.org
 Sent: Wednesday, February 12, 2014 7:55:35 PM
 Subject: Re: [Users] Problems accesing the database

 Hi Yedidyah,

 But If I run engine-setup and then engine-backup restore shuldn't it
 import the data to the existing db created by engine-setup?
 That's shown everywhere so I thought it's a valid way to migrate
 No.

 There is a specific case in which this works automatically:
 All on the same host:
 1. engine-setup
 2. engine-backup --mode=backup
 (perhaps do other stuff here)
 3. engine-cleanup
 4. engine-backup --mode=restore

 Why does this work? Because 'engine-cleanup', since 3.3, does not drop
 the database nor user inside postgres. So when restore tries to access
 this database using this user and password it succeeds.

 In general, if you do the restore on another machine, and do there
 'engine-setup; engine-cleanup' as a quick-postgres-provisioning-tool,
 you end up almost ready, but not quite - because the password is random,
 and therefore different between the installations. In principle you could
 have provided just the password to restore, but we decided that if you
 need to change the credentials, you should pass all of them (except for
 defaults).

 Hope this clarifies,


 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] ovirt reports

2014-02-13 Thread Yaniv Dary
- Original Message -

 From: Alessandro Bianchi a.bian...@skynet.it
 To: Yaniv Dary yd...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, February 13, 2014 5:11:21 PM
 Subject: Re: [Users] ovirt reports

 Il 10/02/2014 10:55, Yaniv Dary ha scritto:

  Please check the dwh log for error and check the history database for data.
 
  You should be able to select any datacenter you like. You can not select
  multiple datacenters.
 
  Input controls should list all the living entities by default and you can
  click on the dropdown to get a list.
 

  Yaniv
 

 Ok

 I see no errors log in the log but I can view two DIFFERENT DC in different
 reports (I have 4 different DC) as they get selected per default

 Per example in Hosts Inventory I can only see a DC named GlusterSD while in
 many others (Active Virtual Machine by OS per example) I can only see
 Default DC selected as default
This is because filter are set by the subject of the reports. Host Inventory 
will only list dcs with hosts while vm reports will only list dcs with vms. 

 If I try to type anything in the Data Center filter field, every character
 gets suddenly deleted
 If I click on the magnifier button nothing happens

 The same happens in every other field in the input contolrols filter window
Please elaborate on this and add screen shots. 

 I have no idea about what to check to discover

 I'm using Firefox 28 on Linux but the same happens with Chrome

 Any idea anyone?

 Thank you and best regards

 Alessandro

 --

 SkyNet SRL

 Via Maggiate 67/a - 28021 Borgomanero (NO) - tel. +39 0322-836487/834765 -
 fax +39 0322-836608

 http://www.skynet.it

 Autorizzazione Ministeriale n.197

 Le informazioni contenute in questo messaggio sono riservate e confidenziali
 ed è vietata la diffusione in qualunque modo eseguita.
 Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La
 invitiamo ad eliminarlo ed a distruggerlo non divulgandolo, dandocene
 gentilmente comunicazione.
 Per qualsiasi informazione si prega di contattare i...@skynet.it (e-mail
 dell'azienda). Rif. D.L. 196/2003
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] engine-backup --restore

2014-02-13 Thread Juan Pablo Lorier
I'll do then next week.
Regards and again, thanks to everyone.

On 13/02/14 13:50, Trey Dockendorf wrote:
 A wiki page is a good idea, glad the steps worked in more than my case.

 - Trey

 On Thu, Feb 13, 2014 at 9:37 AM, Juan Pablo Lorier jplor...@gmail.com wrote:
 Hi Trey,

 Following your procedure, I was able to get the engine running. THANKS A
 LOT TO EVERYONE!!
 If you allow me, I'll create a wiki page with this mentioning you so
 others can get this easily.
 Regards,

 On 12/02/14 17:32, Trey Dockendorf wrote:
 I was having the same issue (and posted about it today, with full
 steps).  I'd reply to my current post to list but I don't seem to
 receive my own posts.

 I have since taken these steps (as root)

 $ su - postgres -c dropdb engine
 $ su - postgres -c psql -c \create user engine password 'PASSWORD'\
 $ su - postgres -c psql -c \create database engine owner engine
 template template0 encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype
 'en_US.UTF-8'\
 $ engine-backup --mode=restore --scope=all
 --file=engine-20140211-1457.tar.bz2 --log=engine-backup.log
 --change-db-credentials --db-host=localhost --db-port=5432
 --db-user=engine --db-name=engine --db-password=PASSWORD
 Restoring...
 Rewriting /etc/ovirt-engine/engine.conf.d/10-setup-database.conf
 Note: you might need to manually fix:
 - iptables/firewalld configuration
 - autostart of ovirt-engine service
 You can now start the engine service and then restart httpd
 Done.

 $ engine-setup

 I believe I initially created the database incorrectly (ran 'createdb
 engine' as postgres user).  I was getting errors during engine-setup
 that indicated the database could not be accessed.

 After the steps above, everything looks good.

 - Trey


 On Wed, Feb 12, 2014 at 1:10 PM, Juan Pablo Lorier jplor...@gmail.com 
 wrote:
 Well, too soon to say boodbye.
 Thought I used --change-db-credentials in the restore, the engine seems
 to be unable to connect to the database. I assume that it didn't get the
 new password, so, is there a way to tell the engine about the new password?
 Regards,

 On 12/02/14 16:03, Yedidyah Bar David wrote:
 - Original Message -
 From: Juan Pablo Lorier jplor...@gmail.com
 To: Yedidyah Bar David d...@redhat.com
 Cc: Sahina Bose sab...@redhat.com, users users@ovirt.org
 Sent: Wednesday, February 12, 2014 7:55:35 PM
 Subject: Re: [Users] Problems accesing the database

 Hi Yedidyah,

 But If I run engine-setup and then engine-backup restore shuldn't it
 import the data to the existing db created by engine-setup?
 That's shown everywhere so I thought it's a valid way to migrate
 No.

 There is a specific case in which this works automatically:
 All on the same host:
 1. engine-setup
 2. engine-backup --mode=backup
 (perhaps do other stuff here)
 3. engine-cleanup
 4. engine-backup --mode=restore

 Why does this work? Because 'engine-cleanup', since 3.3, does not drop
 the database nor user inside postgres. So when restore tries to access
 this database using this user and password it succeeds.

 In general, if you do the restore on another machine, and do there
 'engine-setup; engine-cleanup' as a quick-postgres-provisioning-tool,
 you end up almost ready, but not quite - because the password is random,
 and therefore different between the installations. In principle you could
 have provided just the password to restore, but we decided that if you
 need to change the credentials, you should pass all of them (except for
 defaults).

 Hope this clarifies,

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users






signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK

2014-02-13 Thread Tejesh M
Actually, i want to automate the vm provisioning through java sdk. and this
urgent requirement.  Is it possible to automate setting hostname, root
password n nic info by any means in 3.3? Also in windows administration
password as similar to linux.. kindly help as im new to this..
On 13 Feb 2014 20:32, Juan Hernandez jhern...@redhat.com wrote:

 On 02/13/2014 03:59 PM, Shahar Havivi wrote:
  On 13.02.14 20:17, Tejesh M wrote:
  1. The Version is RHEV-M 3.3  Cloud-init is
  cloud-init-0.6.3-0.12.bzr532.el6.noarch
 
  2. In Webadmin, i don't find any option to set Cloud-init data's. I
 checked
  under New VM-Initial Run.. Am i looking at the right place?
  How to enable cloud-init support in engine?
  You will not found it since you are working in 3.3 and this feature
 presented
  in 3.4.
  In 3.3 you can try to set the Cloud-Init via the Run-Once button.
 

 In 3.3 you need first to create the VM. Once it is created select it,
 click the Run Once button, then click on the plus sign next to
 Initial Run, check the Cloud-Init box, and populate the fields you
 want.

 
  I have installed cloud-init package in RHEV-M  also in Template.
 
  Please suggest.
 
 
  On Thu, Feb 13, 2014 at 7:31 PM, Juan Hernandez jhern...@redhat.com
 wrote:
 
  On 02/13/2014 02:39 PM, Tejesh M wrote:
  Hi All,
 
  Thanks alot.
 
  I have created one VM with minimal installation  installed cloud-init
  package. And, converted that VM into Template. Then executed the code
  given in
  http://lists.ovirt.org/pipermail/users/2014-February/021302.html ,
 but
  no luck, the code is not setting root password.
 
 
  What version of the engine are you running? I may not have the required
  cloud-init support.
 
  Try to run the application in debug mode:
 
Api api = new Api(
  https://whatever/api;,
  user@domain,
  password,
  null,
  null,
  null,
  null,
  true,
  null,
  true  // - This is to enable debug mode
);
 
  It will send to the log the actual XML documents sent to the server. We
  can use it to see if the request is generated correctly.
 
  It may also happen that cloud-init support isn't working correctly. To
  verify this try to use the cloud-init support manually from webadmin.
  Does it work from there?
 
  Also, there is no option to set *Hostname *for the VM.
 
 
  To set the host name you need to add something like this:
 
Host hostData = new Host();
hostData.setAddress(the.host.name);
cloudData.setHost(hostData);
 
 
 
  _*Code:*_
 
  /*Begin Customize VM*/
  // Generate the random password, using whatever mechanism you
// prefer:
String password = cJql3P9XLQG4drCYVG/6Q/;
 
// You need to know the name of the template, the cluster
 and
// the VM you are going to create:
String templateName = rhel2_temp;
String clusterName = testCluster;
String vmName = myvm;
 
// Prepare the data to create the VM from the template:
org.ovirt.engine.sdk.entities.Template templateData = new
  Template();
templateData.setName(templateName);
org.ovirt.engine.sdk.entities.Cluster clusterData = new
  Cluster();
clusterData.setName(clusterName);
org.ovirt.engine.sdk.entities.VM vmDataForCreate = new VM();
vmDataForCreate.setName(vmName);
vmDataForCreate.setCluster(clusterData);
vmDataForCreate.setTemplate(templateData);
 
// Send the request to create the VM to the server:
api.getVMs().add(vmDataForCreate);
String state;
// White till the VM is down (it will be locked for a
 while):
for (;;) {
   state = api.getVMs().get(vmName).getStatus().getState();
  if (down.equals(state)) {
break;
  }
  Thread.sleep(1000);
}
System.out.println(System Status:+state);
// Populate parameters for the action to start the VM with
  cloud-init:
org.ovirt.engine.sdk.entities.User userData = new User();
userData.setUserName(root);
userData.setPassword(password);
Users usersData = new Users();
usersData.getUsers().add(userData);
CloudInit cloudData = new CloudInit();
cloudData.setUsers(usersData);
 
Initialization initData = new Initialization();
initData.setCloudInit(cloudData);
VM vmDataForStart = new VM();
vmDataForStart.setInitialization(initData);
Action actionData = new Action();
actionData.setVm(vmDataForStart);
 
// Send the request to start the VM to the server:
api.getVMs().get(vmName).start(actionData);
System.out.println(After :
  +api.getVMs().get(vmName).getStatus());

Re: [Users] SPICE behind NAT

2014-02-13 Thread Alan Murrell

Quoting Andrew Lau and...@andrewklau.com:


Your value for SpiceDefaultProxy should be your external IP
address/hostname otherwise external users will never know where to connect
to.


So the spice proxy would be going out the firewall then looping back  
in (also known as hairpinning), which in my experience is usually a  
behaviour denied by many firewalls as standard, which is what I  
believe is happening here.



This then becomes more of a firewall issue as you're spice proxy is


I agree.  Would you be willing to share the current IPTables rules on  
your external firewall so I can confirm this? (sanitised appropriately  
for actual IPs and/or hostnames, of course)  You can contact me  
off-list if you prefer.  This is more for curiousity/confirmation than  
anything else.


I know that when I was on the same LAN as the oVirt box, I had to edit  
my local hosts file to point the proxy value to the oVirt box itself  
for the remote-viewer to connect to the Windows desktop.


If that is indeed what is happening here, I think a better (and more  
universal) solution would be to have a VPN connection from the remote  
end user to the network where the oVirt/RHEV server is (site-to-site  
if the users are in an office and road warrior for remote  
individuals).  Not sure how much of a performance hit that might make,  
though.  Will need to do some testing.



working. But just to confirm, if you open up console through chrome it
should download a console.vv file rather than opening up remote-viewer
natively, before you run it; open it with a text editor you'll see the
proxy settings there.


I took a look and the proxy settings are correct.


The windows issue is probably just related to non proper drives installed.


On the machine I am connecting from or the virtual machine I am  
connecting to?  I downloaded the client from the link here:


 http://www.spice-space.org/download.html

Is there a different SPICE client for Windows that is recommended?

-Alan
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] about live snapshot and qemu-kvm

2014-02-13 Thread Douglas Schilling Landgraf

On 01/01/2014 06:24 AM, Gianluca Cecchi wrote:

On Wed, Jan 1, 2014 at 4:38 AM, R P Herrold  wrote:



Out of curiousity, _what_ build environment 'flags' do you
all, participating in this thread, refer to? -- the thread
does not enumerate them explicitly, and one cannot expect to
hit by 'indirect fire', a target not exposed

With best regards, this New Year's eve


I'm far from being a programmer, but as I went to compare build
environments, between
qemu-kvm-rhev-0.12.1.2-2.415.el6_5.3.src.rpm
and
qemu-kvm-0.12.1.2-2.415.el6_5.3.src.rpm
in related spec file I see
[g.cecchi@tekkaman SPECS]$ diff qemu-kvm.spec.upstream qemu-kvm.spec.rhev
3c3
 %define rhev 0
---

%define rhev 1

12928a12929

rhel-6.5


and apart other probably not trivial implications, such as guest agent
part, I see that the configure command takes one extra argument in
base RH EL 6.5, that is

--disable-rhev-features

The only patch file containing this keyword is

kvm-Block-streaming-disable-for-RHEL.patch

and inside it there are these lines that impacts configure options and
related built qemu-kvm:

--- a/configure
+++ b/configure
@@ -286,6 +286,7 @@ spice=
  smartcard=
  smartcard_nss=
  live_snapshots=yes
+block_stream=yes
  usb_redir=

  # OS specific
@@ -686,10 +687,22 @@ for opt do
;;
--enable-live-snapshots) live_snapshots=yes
;;
+  --disable-block-stream) block_stream=no
+  ;;
+  --enable-block-stream) block_stream=yes
+  ;;
--disable-usb-redir) usb_redir=no
;;
--enable-usb-redir) usb_redir=yes
;;
+  --disable-rhev-features)
+   live_snapshots=no;
+   block_stream=no;
+  ;;
+  --enable-rhev-features)
+   live_snapshots=yes;
+   block_stream=yes;
+  ;;
*) echo ERROR: unknown option $opt; show_help=yes
;;
esac
@@ -863,8 +876,12 @@ echo   --disable-smartcard-nss  disable
smartcard nss support
  echo   --enable-smartcard-nss   enable smartcard nss support
  echo   --disable-live-snapshots disable live block device snapshot support
  echo   --enable-live-snapshots  enable live block device snapshot support
+echo   --disable-block-stream   disable block streaming support
+echo   --enable-block-streamenable block streaming support
  echo   --disable-usb-redir  disable usb network redirection support
  echo   --enable-usb-redir   enable usb network redirection support
+echo   --disable-rhev-features  disable RHEV-only features
+echo   --enable-rhev-features   enable RHEV-only features
  echo 
  echo NOTE: The object files are built at the place where configure
is launched
  exit 1
@@ -2271,6 +2288,7 @@ echo Trace backend $trace_backend
  echo spice support $spice
  echo nss used  $smartcard_nss
  echo Live snapshots$live_snapshots
+echo Block streaming   $block_stream
  echo xfsctl support$xfs
  echo usb net redir $usb_redir

@@ -2526,6 +2544,10 @@ if test $live_snapshots = yes ; then
echo CONFIG_LIVE_SNAPSHOTS=y  $config_host_mak
  fi

+if test $block_stream = yes ; then
+  echo CONFIG_BLOCK_STREAM=y  $config_host_mak
+fi
+
  if test $usb_redir = yes ; then
echo CONFIG_USB_REDIR=y  $config_host_mak
  fi

I don't think the rhev argument has instead implications in upstream
source qemu-kvm-0.12.1.2.tar.gz
So I think that if you want to dig more and if you have more
competences, you have to see the full spec file and the full patch
above.

Files downloaded here:

upstream
http://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/qemu-kvm-0.12.1.2-2.415.el6_5.3.src.rpm

rhev
http://ftp.redhat.com/redhat/linux/enterprise/6Server/en/RHEV/SRPMS/qemu-kvm-rhev-0.12.1.2-2.415.el6_5.3.src.rpm



Just for the record, we have setup a jenkins job to rebuild qemu-kvm for 
el6 until we get it officially from centos:

http://jenkins.ovirt.org/view/Packaging/job/qemu-kvm-rhev_create_rpms_el6/

--
Cheers
Douglas
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] about live snapshot and qemu-kvm

2014-02-13 Thread Gianluca Cecchi
On Thu, Feb 13, 2014 at 8:42 PM, Douglas Schilling Landgraf wrote:


 Just for the record, we have setup a jenkins job to rebuild qemu-kvm for el6
 until we get it officially from centos:
 http://jenkins.ovirt.org/view/Packaging/job/qemu-kvm-rhev_create_rpms_el6/


Great! And thanks!

Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Call for Participation: FISL

2014-02-13 Thread Brian Proffitt
Leonardo Vaz is organizing a participation of Open Source projects sponsored by 
Red Hat at FISL, the largest FOSS conference in LATAM which will happen from
7th to 10th of May in Porto Alegre, Brazil:

http://softwarelivre.org/fisl15

The call for papers for the conference ends next Monday, February 17th and the 
talks can be submitted in the URL below:

http://papers.softwarelivre.org/papers_ng

If you have any question about the conference, feel free to contact Leo at 
l...@redhat.com.

Peace,
Brian

-- 
Brian Proffitt - oVirt Community Manager
Open Source and Standards, Red Hat - http://community.redhat.com
Phone: +1 312 477 4320 / Cell: +1 574 383 9BKP
IRC: bkp
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Opaque project on wiki?

2014-02-13 Thread Brian Proffitt
Iordan:

Yes, let's get together and figure out what content you need to post!

BKP

- Original Message -
From: i iordanov iiorda...@gmail.com
To: users@ovirt.org
Sent: Thursday, February 13, 2014 8:41:01 AM
Subject: [Users] Opaque project on wiki?

Hey guys, 

I was wondering if you're interested in featuring the Opaque project somewhere 
on the wiki? If so, where? 

It's now in production, and the source code (GPLv3) is released in my 
repository housing all my remote desktop client software here: 

https://github.com/iiordanov/remote-desktop-clients 

Thanks! 
iordan 

-- 
The conscious mind has only one thread of execution. 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Google Summer of Code 2014

2014-02-13 Thread Federico Simoncelli
Hi everyone, I started a wiki page to list ideas for Google Summer
of Code 2014:

http://www.ovirt.org/Summer_of_Code

The deadline for the submission is really soon (14th of Feb) but
please feel free to try and add any idea that you may have.

For more information about Google Summer of Code please refer to:

https://developers.google.com/open-source/soc/

If you can't edit the wiki page please follow up to this thread
with your proposals.

Thanks,
-- 
Federico
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] eninge-cleanup left db non-empty (was: Downgrading to 3.3.3 after 3.4.0 beta 2 testing)

2014-02-13 Thread Trey Dockendorf
On Thu, Feb 13, 2014 at 1:55 AM, Yedidyah Bar David d...@redhat.com wrote:
 - Original Message -
 From: Yedidyah Bar David d...@redhat.com
 To: Trey Dockendorf treyd...@gmail.com
 Cc: users users@ovirt.org, in...@ovirt.org
 Sent: Thursday, February 13, 2014 8:32:01 AM
 Subject: eninge-cleanup left db non-empty (was: [Users] Downgrading to 3.3.3 
 after 3.4.0 beta 2 testing)

 - Original Message -
  From: Trey Dockendorf treyd...@gmail.com
  To: users users@ovirt.org
  Sent: Wednesday, February 12, 2014 8:19:25 PM
  Subject: [Users] Downgrading to 3.3.3 after 3.4.0 beta 2 testing
  $ engine-cleanup
  $ engine-backup --mode=restore --scope=all
  --file=engine-20140211-1457.tar.bz2 --log=engine-backup.log
  Restoring...
  FATAL: Database is not empty
 
  Attached are the two engine-cleanup logs from both attempts.  The
  first (from 20140211) was answering Yes only to remove Engine DB
  content.  The second (from 20140212, today) was Yes to remove all
  components.

 Apparently engine-cleanup does not clean up everything. We tried to
 make it do that, and I am pretty certain it used to at some point...

 1. You might want to open a bug about this. As you already posted,
 manually dropping and creating the database still works...
 2. Adding infra@ - I think we should add a jenkins job to verify
 that engine-cleanup cleans up at least the database, perhaps other
 things. I am pretty certain it should be so for 3.3, didn't check
 3.4 yet.

 Well, I now tried that with 3.4.0-beta2 and did not manage to reproduce -
 database was empty after engine-cleanup.

 If you manage to reproduce, please post the output of:
 pg_dump engine | grep -i ^create
 (as postgres, or passing credentials as needed).
 It should only output one line:
 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;

 If it outputs anything else it's probably a bug.

 Thanks, FYI,
 --
 Didi

With 3.3.3 I got this after engine-cleanup.

(/root/pgpass was created by me mimicking what's created by engine-backup).

$ PGPASSFILE=/root/pgpass pg_dump -U engine -h localhost -p 5432
engine | grep -vi '^create extension' | grep -i '^create'
CREATE PROCEDURAL LANGUAGE plpgsql;

The grep statements above mimic what was executed by the engine-backup
which resulted in a message FATAL: Database is not empty.

I will try and reproduce with 3.4.0-beta2.

Should I file a bug for this issue against 3.3.x?

Thanks
- Trey
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [ovirt-test-day-2] Possible bug while testing vm-init-persistent feature

2014-02-13 Thread Vojtech Szocs
Thank you, Shahar.

I suspected that NPE would be due to empty domain :P (I forgot to mention that 
in my email)

However, for me, even Run Once without Sysprep didn't work, I got an exception 
that seems to come from VDS broker backend component.

Now I realize that I might have been using bad libvirt version. On my Fedora 19 
host I have:

# rpm -qa libvirt*
libvirt-daemon-driver-qemu-1.1.3.2-1.fc19.x86_64
libvirt-daemon-driver-nodedev-1.1.3.2-1.fc19.x86_64
libvirt-daemon-driver-storage-1.1.3.2-1.fc19.x86_64
libvirt-daemon-kvm-1.1.3.2-1.fc19.x86_64
libvirt-client-1.1.3.2-1.fc19.x86_64
libvirt-daemon-driver-network-1.1.3.2-1.fc19.x86_64
libvirt-daemon-driver-nwfilter-1.1.3.2-1.fc19.x86_64
libvirt-daemon-driver-interface-1.1.3.2-1.fc19.x86_64
libvirt-lock-sanlock-1.1.3.2-1.fc19.x86_64
libvirt-python-1.1.3.2-1.fc19.x86_64
libvirt-daemon-1.1.3.2-1.fc19.x86_64
libvirt-daemon-driver-secret-1.1.3.2-1.fc19.x86_64
libvirt-daemon-config-nwfilter-1.1.3.2-1.fc19.x86_64
libvirt-daemon-qemu-1.1.3.2-1.fc19.x86_64

I'll try to test Sysprep some more in future.

Thanks,
Vojtech


- Original Message -
 From: Shahar Havivi shah...@redhat.com
 To: Vojtech Szocs vsz...@redhat.com
 Cc: users users@ovirt.org, Einav Cohen eco...@redhat.com
 Sent: Wednesday, February 12, 2014 1:17:08 PM
 Subject: Re: [ovirt-test-day-2] Possible bug while testing vm-init-persistent 
 feature
 
 Thanks Vojtech,
 There is a bug (and a fix) here:
 https://bugzilla.redhat.com/1063883
 
 Shahar.
 
 On 11.02.14 18:20, Vojtech Szocs wrote:
  Hello,
  
  I think I found a possible bug while testing Shahar's vm-init-persistent
  feature, not sure if related to vm-init-persistent or Engine vs. vdsm RPC
  issue.
  
  Followed steps in [1,2] to install ovirt-engine on F19, then used it to
  setup another F19 node as host via WebAdmin GUI.
  
  [1] http://www.ovirt.org/OVirt_3.4_TestDay#Installation_notes
  [2] http://www.ovirt.org/OVirt_3.4.0_release_notes#SECOND_BETA_RELEASE
  
  On engine:
  # rpm -qa ovirt-engine*
  ovirt-engine-setup-base-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-webadmin-portal-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-websocket-proxy-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-dbscripts-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-setup-plugin-websocket-proxy-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-setup-plugin-ovirt-engine-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-tools-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-cli-3.4.0.3-1.fc19.noarch
  ovirt-engine-setup-plugin-ovirt-engine-common-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-setup-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-backend-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-setup-plugin-allinone-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-sdk-python-3.4.0.3-1.fc19.noarch
  ovirt-engine-restapi-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-lib-3.4.0-0.7.beta2.fc19.noarch
  ovirt-engine-userportal-3.4.0-0.7.beta2.fc19.noarch
  
  On host:
  # rpm -qa vdsm*
  vdsm-python-zombiereaper-4.14.2-0.fc19.noarch
  vdsm-xmlrpc-4.14.2-0.fc19.noarch
  vdsm-4.14.2-0.fc19.x86_64
  vdsm-cli-4.14.2-0.fc19.noarch
  vdsm-python-4.14.2-0.fc19.x86_64
  
  Using default 3.4 DataCenter/Cluster, created WinXP VM via WebAdmin GUI
  *without* Sysprep enabled.
  
  Trying to Run Once with WinXP ISO attached, I get:
  
Error while executing action Run VM once: Network error during
communication with the Host.
  
  Relevant log part attached as XmlRpcExtensionException-part.log
  
Command org.ovirt.engine.core.bll.RunVmOnceCommand throw Vdc Bll
exception. With error message VdcBLLException:
org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException:
org.apache.xmlrpc.common.XmlRpcExtensionException: Null values aren't
supported, if isEnabledForExtensions() == false (Failed with error
VDS_NETWORK_ERROR and code 5022)
  
  Second try, created WinXP VM via WebAdmin GUI *with* Sysprep enabled.
  On Initial Run tab, checked Configure Time Zone and providing VM OS
  specific timezone override, whose value is different than in System
  tab's (general) Time Zone field.
  
  Trying to Run Once with Sysprep enabled  WinXP ISO attached, I get:
  
Cannot run VM. VM is running.
  
  Relevant log part attached as VmIsRunning-part.log
  
Command CreateVmVDSCommand(HostName = f19-host-34beta2, HostId =
02a21a1a-47d6-4d90-8059-a69f0724feff,
vmId=cd3722b0-3139-4d23-8ad4-f01875e85a63, vm=VM [winxp-foo]) execution
failed. Exception: RuntimeException: java.lang.NullPointerException
..
CanDoAction of action RunVmOnce failed.

  Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,VAR__ACTION__RUN,VAR__TYPE__VM,ACTION_TYPE_FAILED_VM_IS_RUNNING
  
  Checking if VM is really running on host (it's not):
  # vdsClient -s 0 list table
  (no results)
  
  Full engine.log + vdsm.log attached. I can provide WebAdmin GUI link
  and more details if needed. It's possible that there's something wrong
  with my engine/host, but I'm clueless as 

Re: [Users] [ovirt-test-day-2] Possible bug while testing vm-init-persistent feature

2014-02-13 Thread Shahar Havivi
On 13.02.14 12:35, Vojtech Szocs wrote:
 Thank you, Shahar.
 
 I suspected that NPE would be due to empty domain :P (I forgot to mention 
 that in my email)
 
 However, for me, even Run Once without Sysprep didn't work, I got an 
 exception that seems to come from VDS broker backend component.
 
 Now I realize that I might have been using bad libvirt version. On my Fedora 
 19 host I have:
 
 # rpm -qa libvirt*
 libvirt-daemon-driver-qemu-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-driver-nodedev-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-driver-storage-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-kvm-1.1.3.2-1.fc19.x86_64
 libvirt-client-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-driver-network-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-driver-nwfilter-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-driver-interface-1.1.3.2-1.fc19.x86_64
 libvirt-lock-sanlock-1.1.3.2-1.fc19.x86_64
 libvirt-python-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-driver-secret-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-config-nwfilter-1.1.3.2-1.fc19.x86_64
 libvirt-daemon-qemu-1.1.3.2-1.fc19.x86_64
 
 I'll try to test Sysprep some more in future.
 
 Thanks,
 Vojtech
 
Please note that I push few hours ago a 7 patches related to VmInit that fix
some bugs including the one that you reported.

Thank you for your help,

Shahar.
 
 - Original Message -
  From: Shahar Havivi shah...@redhat.com
  To: Vojtech Szocs vsz...@redhat.com
  Cc: users users@ovirt.org, Einav Cohen eco...@redhat.com
  Sent: Wednesday, February 12, 2014 1:17:08 PM
  Subject: Re: [ovirt-test-day-2] Possible bug while testing 
  vm-init-persistent feature
  
  Thanks Vojtech,
  There is a bug (and a fix) here:
  https://bugzilla.redhat.com/1063883
  
  Shahar.
  
  On 11.02.14 18:20, Vojtech Szocs wrote:
   Hello,
   
   I think I found a possible bug while testing Shahar's vm-init-persistent
   feature, not sure if related to vm-init-persistent or Engine vs. vdsm RPC
   issue.
   
   Followed steps in [1,2] to install ovirt-engine on F19, then used it to
   setup another F19 node as host via WebAdmin GUI.
   
   [1] http://www.ovirt.org/OVirt_3.4_TestDay#Installation_notes
   [2] http://www.ovirt.org/OVirt_3.4.0_release_notes#SECOND_BETA_RELEASE
   
   On engine:
   # rpm -qa ovirt-engine*
   ovirt-engine-setup-base-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-webadmin-portal-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-websocket-proxy-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-dbscripts-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-setup-plugin-websocket-proxy-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-setup-plugin-ovirt-engine-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-tools-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-cli-3.4.0.3-1.fc19.noarch
   ovirt-engine-setup-plugin-ovirt-engine-common-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-setup-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-backend-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-setup-plugin-allinone-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-sdk-python-3.4.0.3-1.fc19.noarch
   ovirt-engine-restapi-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-lib-3.4.0-0.7.beta2.fc19.noarch
   ovirt-engine-userportal-3.4.0-0.7.beta2.fc19.noarch
   
   On host:
   # rpm -qa vdsm*
   vdsm-python-zombiereaper-4.14.2-0.fc19.noarch
   vdsm-xmlrpc-4.14.2-0.fc19.noarch
   vdsm-4.14.2-0.fc19.x86_64
   vdsm-cli-4.14.2-0.fc19.noarch
   vdsm-python-4.14.2-0.fc19.x86_64
   
   Using default 3.4 DataCenter/Cluster, created WinXP VM via WebAdmin GUI
   *without* Sysprep enabled.
   
   Trying to Run Once with WinXP ISO attached, I get:
   
 Error while executing action Run VM once: Network error during
 communication with the Host.
   
   Relevant log part attached as XmlRpcExtensionException-part.log
   
 Command org.ovirt.engine.core.bll.RunVmOnceCommand throw Vdc Bll
 exception. With error message VdcBLLException:
 org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException:
 org.apache.xmlrpc.common.XmlRpcExtensionException: Null values aren't
 supported, if isEnabledForExtensions() == false (Failed with error
 VDS_NETWORK_ERROR and code 5022)
   
   Second try, created WinXP VM via WebAdmin GUI *with* Sysprep enabled.
   On Initial Run tab, checked Configure Time Zone and providing VM OS
   specific timezone override, whose value is different than in System
   tab's (general) Time Zone field.
   
   Trying to Run Once with Sysprep enabled  WinXP ISO attached, I get:
   
 Cannot run VM. VM is running.
   
   Relevant log part attached as VmIsRunning-part.log
   
 Command CreateVmVDSCommand(HostName = f19-host-34beta2, HostId =
 02a21a1a-47d6-4d90-8059-a69f0724feff,
 vmId=cd3722b0-3139-4d23-8ad4-f01875e85a63, vm=VM [winxp-foo]) execution
 failed. Exception: RuntimeException: java.lang.NullPointerException
 ..
 CanDoAction of action RunVmOnce failed.
 
   

[Users] oVirt all-in-one install on an already in production server

2014-02-13 Thread Gordon Thagard
I have several questions as I have ZERO experience with oVirt and I'm
hoping to save myself any headaches before diving in.

For the sake of argument, I have a Centos 6.5 box running KVM with
several VMs already active. The storage is local, hardware RAID 5 and is
set to libvirt default /var/lib/libvirt/images. I would make ISO storage
something like /home/iso as that's where I have available space for
20-30 gigs of ISOs.

1. Is this proper in the first place or should I be using freshly
installed Virtualization enabled machine? Otherwise:

2. For storage type should I say POSIXFS, ie ext4?

3. Is there any issue with just pointing storage to the libvirt
default /var/lib/libvirt/images where my VMs currently live?

Thank you for your time.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] issues with live snapshot

2014-02-13 Thread Douglas Schilling Landgraf

On 02/13/2014 12:41 PM, andreas.ew...@cbc.de wrote:

Hi,

I installed the jenkins rpms. Now creation of live snapshots works fine. Next 
thing is to take a quiescent snap. I think to update my guest agent..
Thanks!




Thanks a lot for your feedback!


--
Cheers
Douglas
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Live Migrate Disks

2014-02-13 Thread Maurice James
Is it possible to live migrate disks like storage vMotion?

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Live Migrate Disks

2014-02-13 Thread Gianluca Cecchi
On Thu, Feb 13, 2014 at 8:56 PM, Maurice James wrote:
 Is it possible to live migrate disks like storage vMotion?


It should be supported since 3.2. See
http://www.ovirt.org/OVirt_3.2_release_notes

So in current stable 3.3.3 it should be ok.
take in mind that it depends on live snapshots, so limitation on RHEL
/ CerntOS 6.5 apply.
In that case you should use the recent qemu-kvm rebuilt from jenkins
job, as noted in other threads today:
http://jenkins.ovirt.org/view/Packaging/job/qemu-kvm-rhev_create_rpms_el6/

HIH,
Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] SPICE behind NAT

2014-02-13 Thread Andrew Lau
You just need some proper DST and SRC Nat rules and you should be fine.

I use mikrotik so its slightly different but the same concept applies. For
windows, I don't know, never really cared much as no one uses windows on
our ovirt setup :)

But the client tools you linked are for the client accessing the spice
session.
On Feb 14, 2014 3:20 AM, Alan Murrell a...@murrell.ca wrote:

 Quoting Andrew Lau and...@andrewklau.com:

  Your value for SpiceDefaultProxy should be your external IP
 address/hostname otherwise external users will never know where to connect
 to.


 So the spice proxy would be going out the firewall then looping back in
 (also known as hairpinning), which in my experience is usually a
 behaviour denied by many firewalls as standard, which is what I believe is
 happening here.

  This then becomes more of a firewall issue as you're spice proxy is


 I agree.  Would you be willing to share the current IPTables rules on your
 external firewall so I can confirm this? (sanitised appropriately for
 actual IPs and/or hostnames, of course)  You can contact me off-list if you
 prefer.  This is more for curiousity/confirmation than anything else.

 I know that when I was on the same LAN as the oVirt box, I had to edit my
 local hosts file to point the proxy value to the oVirt box itself for the
 remote-viewer to connect to the Windows desktop.

 If that is indeed what is happening here, I think a better (and more
 universal) solution would be to have a VPN connection from the remote end
 user to the network where the oVirt/RHEV server is (site-to-site if the
 users are in an office and road warrior for remote individuals).  Not
 sure how much of a performance hit that might make, though.  Will need to
 do some testing.

  working. But just to confirm, if you open up console through chrome it
 should download a console.vv file rather than opening up remote-viewer
 natively, before you run it; open it with a text editor you'll see the
 proxy settings there.


 I took a look and the proxy settings are correct.

  The windows issue is probably just related to non proper drives installed.


 On the machine I am connecting from or the virtual machine I am connecting
 to?  I downloaded the client from the link here:

  http://www.spice-space.org/download.html

 Is there a different SPICE client for Windows that is recommended?

 -Alan
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v fail - GuestfsHandle.pm error + Redhat.pm error

2014-02-13 Thread david
Matthew Booth mbooth@... writes:


 
 I'd need to know exactly which version of virt-v2v you're running in
 order to diagnose the above. I think the unknown fd0 was fixed a while
 back, though. Are you running the latest available version?
 
 Matt

FWIW, I've wasted hours on this one too, and just commented out the line 
above.

I'm running a completely clean install on a Fedora 19 server, and the client 
is running Fedora 20 that I'm trying to v2v from KVM to oVirt.

As a side note, It'd be nice, especially in the case that there might be some 
ignored, and other fatal errors, that errors that live on a die line also 
state DIE or FATAL ERROR in the output they give to the console.



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Live Migrate Disks

2014-02-13 Thread Maurice James
Im running oVirt 3.4.0-0.7.beta2.el6

rpm -qa |grep qemu-kvm
qemu-kvm-tools-0.12.1.2-2.415.el6_5.3.x86_64
qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64

And its failing with this error in the engine.log

2014-02-13 22:42:12,782 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand] 
(org.ovirt.thread.pool-6-thread-12) Failed in SnapshotVDS method
2014-02-13 22:42:12,785 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand] 
(org.ovirt.thread.pool-6-thread-12) Command SnapshotVDSCommand(HostName = 
Titan, HostId = 5869805e-5b95-485a-bd8a-07b472d3fcaf, 
vmId=dfe6ab9e-1f61-4202-ade9-18ade4757a5e) execution failed. Exception: 
VDSErrorException: VDSGenericException: VDSErrorException: Failed to 
SnapshotVDS, error = Snapshot failed, code = 48
2014-02-13 22:42:13,016 ERROR 
[org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand] 
(org.ovirt.thread.pool-6-thread-12) Command 
org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand throw Vdc Bll 
exception. With error message VdcBLLException: Auto-generated live snapshot for 
VM dfe6ab9e-1f61-4202-ade9-18ade4757a5e failed (Failed with error imageErr and 
code 13)
2014-02-13 22:42:13,017 ERROR 
[org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand] 
(org.ovirt.thread.pool-6-thread-12) Reverting task unknown, handler: 
org.ovirt.engine.core.bll.lsm.LiveSnapshotTaskHandler




-Original Message-
From: Gianluca Cecchi [mailto:gianluca.cec...@gmail.com] 
Sent: Thursday, February 13, 2014 4:09 PM
To: Maurice James
Cc: users
Subject: Re: [Users] Live Migrate Disks

On Thu, Feb 13, 2014 at 8:56 PM, Maurice James wrote:
 Is it possible to live migrate disks like storage vMotion?


It should be supported since 3.2. See
http://www.ovirt.org/OVirt_3.2_release_notes

So in current stable 3.3.3 it should be ok.
take in mind that it depends on live snapshots, so limitation on RHEL / CerntOS 
6.5 apply.
In that case you should use the recent qemu-kvm rebuilt from jenkins job, as 
noted in other threads today:
http://jenkins.ovirt.org/view/Packaging/job/qemu-kvm-rhev_create_rpms_el6/

HIH,
Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users