Re: [Users] SPICE on OSX

2014-01-20 Thread Itamar Heim

On 01/20/2014 08:54 AM, Karli Sjöberg wrote:

On Fri, 2014-01-17 at 16:25 +0100, cferg...@redhat.com wrote:

Hey,

On Fri, Jan 17, 2014 at 02:49:42PM +, Karli Sjöberg wrote:

On Fri, 2014-01-17 at 15:39 +0100, Juan Hernandez wrote:

On 01/17/2014 03:14 PM, Karli Sjöberg wrote:

Hi Juan!

I´ve read a post you made about packaging Remote-Viewer for OS X. I
tested extracting and running this[1] package on a 10.7.5 machine,
logging in to our webadmin portal with Firefox, clicking for console on
a VM, remote-viewer starts up but doesn´t seems to load the console.vv
file (the VM´s console never shows up). Is it something I´m missing?

oVirt 3.3.1-2.el6

[1]
http://people.freedesktop.org/~teuf/spice-gtk-osx/dmg/0.5.7/RemoteViewer-0.5.7-1.dmg


So Christophe, is there anything more needed to make Remote-Viewer show
my VM´s console in OS X? I mean, the application works, it starts up
just fine, it just doesn´t show my VM´s console window...




Yes this is a known issue, if you start remote-viewer foo.vv from a
terminal, it should connect. When started from a browser, the filename is
not passed in the same way as if the program was started from the command
line, and this is very specific to OSX, so this bit is not implemented.
remote-viewer patches to add support for this are very welcome ;)

Christophe


Ah, I see. Yes, running:

$ /Applications/RemoteViewer.app/Contents/MacOS/RemoteViewer
Downloads/console.vv

Works! I haz SPICE on OSX now:) Thanks a bunch man!





Karli - since this seems to be a common question (saw it on irc several 
times this week) - can you please wikify vnc and spice status on OSX?


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


Re: [Users] How to Modify Network with Hosted Engine

2014-01-20 Thread Doron Fediuck


- Original Message -
 From: Mike Kolesnik mkole...@redhat.com
 To: Andrew Lau and...@andrewklau.com
 Cc: users users@ovirt.org
 Sent: Monday, January 20, 2014 7:49:27 AM
 Subject: Re: [Users] How to Modify Network with Hosted Engine
 
 
 
 
 
 
 My mistake, it seems I'm able to modify other networks but trying to modify
 ovirtmgmt or having an unsync'd ovirtmgmt will prevent any changes.
 Well the VDSM complains because the ovirtmgmt is used by oVirt engine itself
 and it doesn't want to change it under the engine's feet.
 
 
 
 
 I manually modified ovirtmgmt in the ifcfg file and just restarted the engine
 service instead.
 Yes that would probably work fine, but for hosted engine it seems to me like
 a nuisance to have to do this manually and would expect VDSM to better
 handle it.
 Perhaps it's worth opening a bug to VDSM with the log that you have from the
 host?
 

Andrew, can you open another bug for hosted-engine here?

Thanks,
Doron
 
 
 
 On Mon, Jan 20, 2014 at 12:09 AM, Andrew Lau  and...@andrewklau.com  wrote:
 
 
 
 
 On Sun, Jan 19, 2014 at 11:51 PM, Mike Kolesnik  mkole...@redhat.com 
 wrote:
 
 
 
 
 
 
 
 
 
 Hi,
 
 Now that I finally stepped through and have a working hosted engine setup
 (after opening numerous BZs)..
 
 How do I modify network configuration (eg. assign new VLANs to hosts), when I
 attempt to modify a network it gives the error:
 Which network are you talking about?
 
 And hjow are you trying to modify it?
 
 eg. I want to add another VLAN or modify the MTU on ovirtmgmt
 
 When I try to modify it through the engine I get that error.
 
 
 
 
 
 
 
 Error while executing action Setup Networks: Network is currently being used
 
 Is there a recommended way to set up these extra networks, or must all of
 these be not managed by the engine?
 
 Thanks,
 Andrew
 
 ___
 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] Disk error

2014-01-20 Thread Meital Bourvine
Hi Koen, 

What is the error that you got when live storage migration failed? 
Can you please attach vdsm.log and engine.log 

 From: Koen Vanoppen vanoppen.k...@gmail.com
 To: users@ovirt.org
 Sent: Monday, January 20, 2014 5:30:51 AM
 Subject: [Users] Disk error

 Hi all!

 I got a kind of a strange error in ovirt. THere was a problem with a vm that
 was complaining about low disk space. (in terms of storage space of the
 storage center). So I did a live migration of the vm's disk. This failed, so
 I did a shutdown of the vm, to see if that would help, but now I can't get
 the VM back up again. Neither can I remove the disk or deactivate the dis.
 This is the error:
 Keep in mind that the vm is down and he had 2 disks...

 While trying to deactivate the disk:

 Error while executing action:

 KV-virt-v2v:

 * Cannot hot unplug Virtual Machine Disk. Disk KV-virt-v2v_Disk2 is being
 moved or copied.

 When I try to simply remove the vm:

 Error while executing action:

 KV-virt-v2v:

 * Cannot remove VM. Disk KV-virt-v2v_Disk2 is being moved or copied.
 * Cannot remove VM. Disk LargeTemplate_Disk1 is being moved or copied.

 Kind regards,

 Koen

 ___
 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] SPICE on OSX

2014-01-20 Thread Karli Sjöberg
On Mon, 2014-01-20 at 10:06 +0200, Itamar Heim wrote:
 On 01/20/2014 08:54 AM, Karli Sjöberg wrote:
  On Fri, 2014-01-17 at 16:25 +0100, cferg...@redhat.com wrote:
  Hey,
 
  On Fri, Jan 17, 2014 at 02:49:42PM +, Karli Sjöberg wrote:
  On Fri, 2014-01-17 at 15:39 +0100, Juan Hernandez wrote:
  On 01/17/2014 03:14 PM, Karli Sjöberg wrote:
  Hi Juan!
 
  I´ve read a post you made about packaging Remote-Viewer for OS X. I
  tested extracting and running this[1] package on a 10.7.5 machine,
  logging in to our webadmin portal with Firefox, clicking for console on
  a VM, remote-viewer starts up but doesn´t seems to load the console.vv
  file (the VM´s console never shows up). Is it something I´m missing?
 
  oVirt 3.3.1-2.el6
 
  [1]
  http://people.freedesktop.org/~teuf/spice-gtk-osx/dmg/0.5.7/RemoteViewer-0.5.7-1.dmg
 
  So Christophe, is there anything more needed to make Remote-Viewer show
  my VM´s console in OS X? I mean, the application works, it starts up
  just fine, it just doesn´t show my VM´s console window...
 
 
 
  Yes this is a known issue, if you start remote-viewer foo.vv from a
  terminal, it should connect. When started from a browser, the filename is
  not passed in the same way as if the program was started from the command
  line, and this is very specific to OSX, so this bit is not implemented.
  remote-viewer patches to add support for this are very welcome ;)
 
  Christophe
 
  Ah, I see. Yes, running:
 
  $ /Applications/RemoteViewer.app/Contents/MacOS/RemoteViewer
  Downloads/console.vv
 
  Works! I haz SPICE on OSX now:) Thanks a bunch man!
 
 
 
 
 Karli - since this seems to be a common question (saw it on irc several 
 times this week) - can you please wikify vnc and spice status on OSX?
 
 thanks,
 Itamar

Well that´s not a bad idea at all!:) I can do that:

http://www.ovirt.org/SPICE_Remote-Viewer_on_OS_X


-- 

Med Vänliga Hälsningar

---
Karli Sjöberg
Swedish University of Agricultural Sciences Box 7079 (Visiting Address
Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjob...@slu.se
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Dafna Ron

I am not sure this is a hosted engine question as much as a qemu question.
qemu-kvm will not support auto start of vm's after EIO because of remote 
possibility of corruption.


On 01/20/2014 05:46 AM, Andrew Lau wrote:

Hi,

Quick question, in the scenario eg. the NFS server becomes unreachable 
and the hosted-engine goes into a paused state. Will other hosts 
attempt to bring it back up? Should there be a command eg. 
 hosted-engine --vm-resume ?


When this happened, I manually forced it to resume using virsh


On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David d...@redhat.com 
mailto:d...@redhat.com wrote:


Thanks a lot for your efforts and the report!
-- 
Didi




*From: *Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com
*To: *users users@ovirt.org mailto:users@ovirt.org
*Sent: *Saturday, January 18, 2014 3:20:22 PM
*Subject: *Re: [Users] Issues starting hosted engine VM


I believe I found the issue and have reported it here
https://bugzilla.redhat.com/show_bug.cgi?id=1055059

On Sat, Jan 18, 2014 at 11:33 PM, Andrew Lau
and...@andrewklau.com mailto:and...@andrewklau.com wrote:

The interesting thing - trying it with the paused option
vdsm seems to create the VM

hosted-engine --vm-start-paused

vdsm.log http://www.fpaste.org/69604/13900482/

But I'm not sure how to then proceed to resume it.

On Sat, Jan 18, 2014 at 10:23 PM, Andrew Lau
and...@andrewklau.com mailto:and...@andrewklau.com wrote:

Hi,

With the great help from sbonazzo, I managed to step
past the initial bug with the hosted-engine-setup but
appear to have run into another show stopper.

I ran through the install process successfully up to
the stage where it completed and the engine VM was to
be shutdown. (The engine has already been installed on
the VM and the host has been connected to the engine).

The issue starts here that the host finds itself not
able to start the VM up again.

VDSM Logs: http://www.fpaste.org/69592/00427141/
ovirt-hosted-engine-ha agent.log
http://www.fpaste.org/69595/43609139/

It seems to keep failing to start the VM.. when I
restart the agent I can see the score drop to 0 after
3 boot attempts.  The interesting thing seems to be in
the VDSM Logs 'Virtual machine does not exist',
'code': 1}}

I'm not sure where else to look. Suggestions?

Cheers,

Andrew




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




-- 
Didi





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



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


Re: [Users] Disk error

2014-01-20 Thread Dafna Ron

from the errors you are getting, disk status in db is locked.


On 01/20/2014 08:38 AM, Meital Bourvine wrote:

Hi Koen,

What is the error that you got when live storage migration failed?
Can you please attach vdsm.log and engine.log

*From: *Koen Vanoppen vanoppen.k...@gmail.com
*To: *users@ovirt.org
*Sent: *Monday, January 20, 2014 5:30:51 AM
*Subject: *[Users] Disk error

Hi all!

I got a kind of a strange error in ovirt. THere was a problem with
a vm that was complaining about low disk space. (in terms of
storage space of the storage center). So I did a live migration of
the vm's disk. This failed, so I did a shutdown of the vm, to see
if that would help, but now I can't get the VM back up again.
Neither can I remove the disk or deactivate the dis. This is the
error:
Keep in mind that the vm is down and he had 2 disks...

While trying to deactivate the disk:

Error while executing action:

KV-virt-v2v:

  * Cannot hot unplug Virtual Machine Disk. Disk KV-virt-v2v_Disk2
is being moved or copied.


When I try to simply remove the vm:

Error while executing action:

KV-virt-v2v:

  * Cannot remove VM. Disk KV-virt-v2v_Disk2 is being moved or copied.
  * Cannot remove VM. Disk LargeTemplate_Disk1 is being moved or
copied.


Kind regards,

Koen

___
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
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] get VM events via API?

2014-01-20 Thread Sven Kieske
Hi Itamar,

I think this is some part of what I was looking
for. But in webadmin I can see also some other
data, like the currently logged in user via
ovirt-guest-agent.
Is this stuff also exposed via API?

That would be cool.

Am 17.01.2014 21:14, schrieb Itamar Heim:
 On 01/17/2014 04:30 PM, Sven Kieske wrote:
 Hi,

 this seems to work, but as far as I see
 I just get the events from the last start of the vm
 until now?

 Can the time range or the number of reported events
 be influenced in some way?

 Additionally I didn't find this function in REST-API
 yet. Maybe I'm looking in the wrong direction..
 
 this doesn't work for you?
 https://engine-name/api/events?search=Vms.id=e6e5f31d-2aac-4170-b617-c9e0f5ec5ea0


-- 
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] [Spice-devel] Windows guest

2014-01-20 Thread Alon Levy
On 01/19/2014 11:40 PM, Maurice James wrote:
 Is it on the roadmap?
 

There is ongoing work to get a WDDM driver, and there is work to get 3d
local rendering that is unrelated but useful to spice, virgl. Once those
two are done then we can talk about direct3d.

 -Original Message-
 From: Alon Levy [mailto:al...@redhat.com] 
 Sent: Sunday, January 19, 2014 9:06 AM
 To: Itamar Heim; Maurice James; users@ovirt.org; spice-devel
 Subject: Re: [Spice-devel] [Users] Windows guest
 
 On 01/18/2014 12:36 AM, Itamar Heim wrote:
 On 01/16/2014 04:22 PM, Maurice James wrote:
 Does anyone know if directdraw/directx works on windows guests in Ovirt?


 adding spice devel
 
 There is no direct3d or directdraw implementation in the driver we provide.
 
 ___
 Spice-devel mailing list
 spice-de...@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/spice-devel
 

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


Re: [Users] VM MAC-Ranges and setting custom MACs via API

2014-01-20 Thread Sven Kieske
Thanks for your clarification.
I forwarded this information to my devs.

Am 18.01.2014 16:08, schrieb Juan Hernandez:
 We are making this change in order to use exactly the same names in the
 XML and JSON representations. The change only affects the JSON
 representation, and it basically means that the names used in JSON will
 use underscores to separate words instead of changes in case. For
 example, instead of deleteProtected you will get delete_protected,
 instead of keyboardLayout you will get keyboard_layout, so on.
 
 In general, if you want to know what will be the new name, you can look
 at the current XML representation, the names used in the JSON
 representation will be exactly the same.

-- 
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] Making v2v easier?

2014-01-20 Thread Sander Grendelman
FWIW, importing directly from an ESX server still works:

virt-v2v-host:
- RHEL/CentOS 6.5 physical host ( virt-v2v uses qemu-kvm = extra++ slow on a VM)
- Packages:
  virt-v2v-0.9.1-5.el6_5.x86_64
  libguestfs-winsupport-1.0-7.el6.x86_64
  libguestfs-tools-c-1.20.11-2.el6.x86_64
  libguestfs-tools-1.20.11-2.el6.x86_64
  libguestfs-1.20.11-2.el6.x86_64
  virtio-win-1.6.7-2.el6.noarch ( RHEL only? )
- network acces to:
oVirt export domain (NFS)
esx host(s) to import from (HTTPS)
- virt-v2v has to run as root to mount the oVirt NFS export domain
- Edit ~/.netrc and add a line for the esx host(s) to import from
(change the  parts):
machine esx.host.fqdn login esxuser password esxpassword
- Fix permissions on netrc file:
chmod 600 ~/.netrc
- Run virt-v2v ( again: change the  parts, ?no_verify=1 is needed
when esx uses self signed certs)
LIBGUESTFS_DEBUG=1 virt-v2v -ic esx://esx.host.fqdn/?no_verify=1 -o
rhev -os rhev.export.domain.host:/var/exports/export_domain
--network target_network_name vmname

Conversion can take quite some time after the disk copy,
especially when virt-v2v removes the vmware tools.
Running on a physical host (or using nested virtualization) helps.

On Mon, Jan 20, 2014 at 8:59 AM, Sander Grendelman
san...@grendelman.com wrote:
 https://rhn.redhat.com/errata/RHBA-2013-1749.html

 
 This update fixes the following bug:

 * An update to virt-v2v included upstream support for the import of OVA images
 exported by VMware servers. Unfortunately, testing has shown that VMDK images
 created by recent versions of VMware ESX cannot be reliably supported, thus 
 this
 feature has been withdrawn. (BZ#1028983)

 Users of virt-v2v are advised to upgrade to this updated package, which fixes
 this bug.
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Andrew Lau
I was more interested in how the score process would be calculated, the
vm-status option considered the VM in a bad state.

I left it for a few minutes and nothing seemed to have changed, I think it
relates to hosted engine as virsh requires authentication. Should I still
open a bz?

Cheers,
Andrew.
On Jan 20, 2014 7:48 PM, Dafna Ron d...@redhat.com wrote:

 I am not sure this is a hosted engine question as much as a qemu question.
 qemu-kvm will not support auto start of vm's after EIO because of remote
 possibility of corruption.

 On 01/20/2014 05:46 AM, Andrew Lau wrote:

 Hi,

 Quick question, in the scenario eg. the NFS server becomes unreachable
 and the hosted-engine goes into a paused state. Will other hosts attempt to
 bring it back up? Should there be a command eg.  hosted-engine --vm-resume ?

 When this happened, I manually forced it to resume using virsh


 On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David d...@redhat.commailto:
 d...@redhat.com wrote:

 Thanks a lot for your efforts and the report!
 -- Didi

 
 

 *From: *Andrew Lau and...@andrewklau.com
 mailto:and...@andrewklau.com
 *To: *users users@ovirt.org mailto:users@ovirt.org
 *Sent: *Saturday, January 18, 2014 3:20:22 PM
 *Subject: *Re: [Users] Issues starting hosted engine VM


 I believe I found the issue and have reported it here
 https://bugzilla.redhat.com/show_bug.cgi?id=1055059

 On Sat, Jan 18, 2014 at 11:33 PM, Andrew Lau
 and...@andrewklau.com mailto:and...@andrewklau.com wrote:

 The interesting thing - trying it with the paused option
 vdsm seems to create the VM

 hosted-engine --vm-start-paused

 vdsm.log http://www.fpaste.org/69604/13900482/

 But I'm not sure how to then proceed to resume it.

 On Sat, Jan 18, 2014 at 10:23 PM, Andrew Lau
 and...@andrewklau.com mailto:and...@andrewklau.com wrote:

 Hi,

 With the great help from sbonazzo, I managed to step
 past the initial bug with the hosted-engine-setup but
 appear to have run into another show stopper.

 I ran through the install process successfully up to
 the stage where it completed and the engine VM was to
 be shutdown. (The engine has already been installed on
 the VM and the host has been connected to the engine).

 The issue starts here that the host finds itself not
 able to start the VM up again.

 VDSM Logs: http://www.fpaste.org/69592/00427141/
 ovirt-hosted-engine-ha agent.log
 http://www.fpaste.org/69595/43609139/

 It seems to keep failing to start the VM.. when I
 restart the agent I can see the score drop to 0 after
 3 boot attempts.  The interesting thing seems to be in
 the VDSM Logs 'Virtual machine does not exist',
 'code': 1}}

 I'm not sure where else to look. Suggestions?

 Cheers,

 Andrew




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




 -- Didi




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



 --
 Dafna Ron

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


Re: [Users] Disk error

2014-01-20 Thread Meital Bourvine
First of all, I opened a bug about 'Drive' object has no attribute 'format':
https://bugzilla.redhat.com/show_bug.cgi?id=1055437

Please send me the output of `rpm -q vdsm` so I'll update the version in the 
bug.

Also, it's better to send the logs to the list (and not only to me), so more 
people will be able to help you debug it.

- Original Message -
 From: Dafna Ron d...@redhat.com
 To: Meital Bourvine mbour...@redhat.com
 Cc: Koen Vanoppen vanoppen.k...@gmail.com, users@ovirt.org
 Sent: Monday, January 20, 2014 8:49:32 AM
 Subject: Re: [Users] Disk error
 
 from the errors you are getting, disk status in db is locked.
 
 
 On 01/20/2014 08:38 AM, Meital Bourvine wrote:
  Hi Koen,
 
  What is the error that you got when live storage migration failed?
  Can you please attach vdsm.log and engine.log
 
  *From: *Koen Vanoppen vanoppen.k...@gmail.com
  *To: *users@ovirt.org
  *Sent: *Monday, January 20, 2014 5:30:51 AM
  *Subject: *[Users] Disk error
 
  Hi all!
 
  I got a kind of a strange error in ovirt. THere was a problem with
  a vm that was complaining about low disk space. (in terms of
  storage space of the storage center). So I did a live migration of
  the vm's disk. This failed, so I did a shutdown of the vm, to see
  if that would help, but now I can't get the VM back up again.
  Neither can I remove the disk or deactivate the dis. This is the
  error:
  Keep in mind that the vm is down and he had 2 disks...
 
  While trying to deactivate the disk:
 
  Error while executing action:
 
  KV-virt-v2v:
 
* Cannot hot unplug Virtual Machine Disk. Disk KV-virt-v2v_Disk2
  is being moved or copied.
 
 
  When I try to simply remove the vm:
 
  Error while executing action:
 
  KV-virt-v2v:
 
* Cannot remove VM. Disk KV-virt-v2v_Disk2 is being moved or copied.
* Cannot remove VM. Disk LargeTemplate_Disk1 is being moved or
  copied.
 
 
  Kind regards,
 
  Koen
 
  ___
  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
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] get VM events via API?

2014-01-20 Thread Itamar Heim

On 01/20/2014 11:08 AM, Sven Kieske wrote:

Hi Itamar,

I think this is some part of what I was looking
for. But in webadmin I can see also some other
data, like the currently logged in user via
ovirt-guest-agent.
Is this stuff also exposed via API?


it should, but do you see that under events or the vm info?



That would be cool.

Am 17.01.2014 21:14, schrieb Itamar Heim:

On 01/17/2014 04:30 PM, Sven Kieske wrote:

Hi,

this seems to work, but as far as I see
I just get the events from the last start of the vm
until now?

Can the time range or the number of reported events
be influenced in some way?

Additionally I didn't find this function in REST-API
yet. Maybe I'm looking in the wrong direction..


this doesn't work for you?
https://engine-name/api/events?search=Vms.id=e6e5f31d-2aac-4170-b617-c9e0f5ec5ea0





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


Re: [Users] Disk error

2014-01-20 Thread Meital Bourvine
It seems that your setup is completely messed up. I see the following 3 errors 
all the time (I couldn't actually find the live storage migration error, since 
there are too many errors): 

Thread-118::ERROR::2014-01-20 07:59:17,066::sampling::355::vm.Vm::(collect) 
vmId=`f8c6190c-b722-4fcd-af17-21572151fcef`::Stats function failed: 
AdvancedStatsFunction _highWrite at 0x27b41b8 
Traceback (most recent call last): 
File /usr/share/vdsm/sampling.py, line 351, in collect 
statsFunction() 
File /usr/share/vdsm/sampling.py, line 226, in __call__ 
retValue = self._function(*args, **kwargs) 
File /usr/share/vdsm/vm.py, line 509, in _highWrite 
if not vmDrive.blockDev or vmDrive.format != 'cow': 
AttributeError: 'Drive' object has no attribute 'format' 

PolicyEngine::DEBUG::2014-01-20 
07:59:17,198::libvirtconnection::108::libvirtconnection::(wrapper) Unknown 
libvirterror: ecode: 8 edom: 10 level: 2 message: invalid argument: cannot set 
memory higher than max memory 
PolicyEngine::ERROR::2014-01-20 07:59:17,199::vm::4359::vm.Vm::(reportError) 
vmId=`ce626f90-41c4-4417-9e53-bf4066ad062d`::Set new balloon target failed 
Traceback (most recent call last): 
File /usr/share/vdsm/vm.py, line 4371, in setBalloonTarget 
self._dom.setMemory(target) 
File /usr/share/vdsm/vm.py, line 835, in f 
ret = attr(*args, **kwargs) 
File /usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, line 76, 
in wrapper 
ret = f(*args, **kwargs) 
File /usr/lib64/python2.6/site-packages/libvirt.py, line 1410, in setMemory 
if ret == -1: raise libvirtError ('virDomainSetMemory() failed', dom=self) 
libvirtError: invalid argument: cannot set memory higher than max memory 

Thread-51::ERROR::2014-01-20 07:59:22,109::sampling::355::vm.Vm::(collect) 
vmId=`493128c0-aba9-4b38-bf18-2778b910917f`::Stats function failed: 
AdvancedStatsFunction _highWrite at 0x27b41b8 
Traceback (most recent call last): 
File /usr/share/vdsm/sampling.py, line 351, in collect 
statsFunction() 
File /usr/share/vdsm/sampling.py, line 226, in __call__ 
retValue = self._function(*args, **kwargs) 
File /usr/share/vdsm/vm.py, line 513, in _highWrite 
self._vm._dom.blockInfo(vmDrive.path, 0) 
File /usr/share/vdsm/vm.py, line 835, in f 
ret = attr(*args, **kwargs) 
File /usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, line 76, 
in wrapper 
ret = f(*args, **kwargs) 
File /usr/lib64/python2.6/site-packages/libvirt.py, line 1797, in blockInfo 
if ret is None: raise libvirtError ('virDomainGetBlockInfo() failed', dom=self) 
libvirtError: invalid argument: invalid path 
/rhev/data-center/mnt/blockSD/f8ddd1d1-5266-493b-879b-f79c128751e2/images/b8da8541-9a0d-4c18-8aa8-50fc6225f18a/ff674bce-aa94-4b46-9f9d-d4182eab1e49
 not assigned to domain 

- Original Message -

 From: Koen Vanoppen vanoppen.k...@gmail.com
 To: users@ovirt.org, Meital Bourvine mbour...@redhat.com
 Sent: Monday, January 20, 2014 9:39:10 AM
 Subject: Re: [Users] Disk error

 vdsm-4.13.0-11.el6.x86_64
 :-)

 2014/1/20 Meital Bourvine  mbour...@redhat.com 

  First of all, I opened a bug about 'Drive' object has no attribute
  'format':
 
  https://bugzilla.redhat.com/show_bug.cgi?id=1055437
 

  Please send me the output of `rpm -q vdsm` so I'll update the version in
  the
  bug.
 

  Also, it's better to send the logs to the list (and not only to me), so
  more
  people will be able to help you debug it.
 

  - Original Message -
 
   From: Dafna Ron  d...@redhat.com 
 
   To: Meital Bourvine  mbour...@redhat.com 
 
   Cc: Koen Vanoppen  vanoppen.k...@gmail.com , users@ovirt.org
 
   Sent: Monday, January 20, 2014 8:49:32 AM
 
   Subject: Re: [Users] Disk error
 
  
 
   from the errors you are getting, disk status in db is locked.
 
  
 
  
 
   On 01/20/2014 08:38 AM, Meital Bourvine wrote:
 
Hi Koen,
 
   
 
What is the error that you got when live storage migration failed?
 
Can you please attach vdsm.log and engine.log
 
   
 
*From: *Koen Vanoppen  vanoppen.k...@gmail.com 
 
*To: * users@ovirt.org
 
*Sent: *Monday, January 20, 2014 5:30:51 AM
 
*Subject: *[Users] Disk error
 
   
 
Hi all!
 
   
 
I got a kind of a strange error in ovirt. THere was a problem with
 
a vm that was complaining about low disk space. (in terms of
 
storage space of the storage center). So I did a live migration of
 
the vm's disk. This failed, so I did a shutdown of the vm, to see
 
if that would help, but now I can't get the VM back up again.
 
Neither can I remove the disk or deactivate the dis. This is the
 
error:
 
Keep in mind that the vm is down and he had 2 disks...
 
   
 
While trying to deactivate the disk:
 
   
 
Error while executing action:
 
   
 
KV-virt-v2v:
 
   
 
* Cannot hot unplug Virtual Machine Disk. Disk KV-virt-v2v_Disk2
 
is being moved or copied.
 
   
 
   
 
When I try to simply remove the vm:
 
   
 
Error while executing action:
 
   
 
KV-virt-v2v:
 
   
 
* 

Re: [Users] Making v2v easier?

2014-01-20 Thread Richard W.M. Jones
On Fri, Jan 17, 2014 at 05:06:13PM +0100, Sander Grendelman wrote:
 On Fri, Jan 17, 2014 at 4:19 PM, Itamar Heim ih...@redhat.com wrote:
  I see a lot of threads about v2v pains (mostly from ESX?)
 
  I'm interested to see if we can make this simpler/easier.
 hear hear!
 
 
  if you have experience with this, please describe the steps you are using
  (also the source platform),
 
 Sources:
 - Existing KVM (virt-manager/libvirt) platform
 - ESX
 - ova/ovf templates from several sources
 
 Methods:
 - KVM:
   virt-v2v with libvirtxml option, works reasonably well, most issues
 are with windows guests where virt-v2v needs libguestfs-winsupport and
 virtio-win (RHEL only)
 - ESX:
   virt-v2v which works reasonably well _if_ the right packages
 (libguestfs-winsupport virtio-win) are installed.
   virt-v2v can be used directly from ESX/ESX host (configure .netrc
 first) but this is quite slow
   another option is to export the VM as an OVA and then import it with 
 virt-v2v
 - ova/ovf templates:
   hit and miss with virt-v2v, especially if they contain something
 that is not a regular windows/linux guest.
   Another option is to do a direct copy of the disks on a pre-created
 VM, clumsy.
 
  and how you would like to see this make simpler
  (I'm assuming that would start from somewhere in the webadmin probably).
 
 Webadmin would be nice, but better behaviour from existing tools would be
 a nice start too.
 
 For example: the flow with virt-v2v is
 1) Analyze source, look for disks
 2) Convert/copy disks to ovirt export domain
 3) Try to add virtio stuff to the copied disks on the export domain
 
 If step 3 fails ( which happens a LOT), the copied disks are removed.
 This is very frustrating if you just waited a couple of hours for a large
 VM (e.g. 200GB) to be copied :(

 Some kind of graceful abort/resume would be VERY welcome.

The above basically come down to the fact that currently virt-v2v does
the copy first and the v2v step second.  It was my understanding
[Matt?] that guestconv is supposed to do the v2v step first followed
by the copy, which should solve all of that.

 Another issue with virt-v2v is that it _always_ tries to add virtio
 drivers.  I have a virtual appliance that contains some kind of
 proprietary embedded OS: adding drivers will always fail, give me
 some option to override that and configure simple ide / e1000
 hardware for the VM

I suspect in this case what you really should be doing is just copying
the source disk image, without using virt-v2v at all.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v: too many IDE bus:

2014-01-20 Thread Richard W.M. Jones
On Sun, Jan 19, 2014 at 02:07:20PM +, Markus Stockhausen wrote:
 Hello,
 
 we are currently encountering the above error during virt-v2v
 migration. There was an older post about it here:
 http://lists.ovirt.org/pipermail/users/2013-December/018379.html
 
 The answers suggest that this is already fixed upstream
 and that you only need virt-v2v for OS disks. Could someone,
 explain
 
 - how to migrate only the OS disk and to dd the data disks.
 - if there exist any offical patches to fix the bug.

Matt can answer these better than I could.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Node not connecting

2014-01-20 Thread Nauman Abbas
Hello there

Seem to be going in a problem again. I had installed oVirt node on my
server and was running the engine on another machine. Now I had to change
the engine machine since that was just a test PC so I got rid of the engine
machine. Installed the engine on another machine and now i'm trying to add
the node to it. It goes on all well until it reaches the 'termination'
stage and then it gives an error Installation failed. Network error during
communication with the host.

PS
SELinux/ebtables is off on both machines.

A little help would be great.

Regards

Nauman Abbas
Assistant System Administrator (LMS),
Room No. A-207, SEECS,
National University of Sciences  Technology,
+ 92 321 5359946
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v: invalid backend appliance

2014-01-20 Thread Richard W.M. Jones
On Sun, Jan 19, 2014 at 07:56:22PM +, Markus Stockhausen wrote:
 Hello,
 
 just tried to run virt-v2v on Fedora 20. Disk conversion works
 flawlessly but in the end the process fails with:
 
 libguestfs: create: flags = 0, handle = 0x4fe26a0, program = perl
 invalid backend: appliance at 
 /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 83.
 libguestfs: closing guestfs handle 0x4fe26a0 (state 0)
 
 I'm using the same scripts  configuration files with Fedora 19.
 No problems there.
 
 Any ideas what is going wrong?

This is a bug in libguestfs:

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

A workaround is to edit the virt-v2v source (one of the *.pm files)
and change s/appliance/direct/.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Node not connecting

2014-01-20 Thread Itamar Heim

On 01/20/2014 11:59 AM, Nauman Abbas wrote:

Hello there

Seem to be going in a problem again. I had installed oVirt node on my
server and was running the engine on another machine. Now I had to
change the engine machine since that was just a test PC so I got rid of
the engine machine. Installed the engine on another machine and now i'm
trying to add the node to it. It goes on all well until it reaches the
'termination' stage and then it gives an error Installation failed.
Network error during communication with the host.

PS
SELinux/ebtables is off on both machines.

A little help would be great.

Regards

Nauman Abbas
Assistant System Administrator (LMS),
Room No. A-207, SEECS,
National University of Sciences  Technology,
+ 92 321 5359946


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



sounds like http://gerrit.ovirt.org/#/c/23207/
i think it missed 3.3.3 and is currently in 3.3.4.

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


Re: [Users] How to Modify Network with Hosted Engine

2014-01-20 Thread Andrew Lau
Sure - BZ 1055454


On Mon, Jan 20, 2014 at 7:17 PM, Doron Fediuck dfedi...@redhat.com wrote:



 - Original Message -
  From: Mike Kolesnik mkole...@redhat.com
  To: Andrew Lau and...@andrewklau.com
  Cc: users users@ovirt.org
  Sent: Monday, January 20, 2014 7:49:27 AM
  Subject: Re: [Users] How to Modify Network with Hosted Engine
 
 
 
 
 
 
  My mistake, it seems I'm able to modify other networks but trying to
 modify
  ovirtmgmt or having an unsync'd ovirtmgmt will prevent any changes.
  Well the VDSM complains because the ovirtmgmt is used by oVirt engine
 itself
  and it doesn't want to change it under the engine's feet.
 
 
 
 
  I manually modified ovirtmgmt in the ifcfg file and just restarted the
 engine
  service instead.
  Yes that would probably work fine, but for hosted engine it seems to me
 like
  a nuisance to have to do this manually and would expect VDSM to better
  handle it.
  Perhaps it's worth opening a bug to VDSM with the log that you have from
 the
  host?
 

 Andrew, can you open another bug for hosted-engine here?

 Thanks,
 Doron

 
 
  On Mon, Jan 20, 2014 at 12:09 AM, Andrew Lau  and...@andrewklau.com 
 wrote:
 
 
 
 
  On Sun, Jan 19, 2014 at 11:51 PM, Mike Kolesnik  mkole...@redhat.com 
  wrote:
 
 
 
 
 
 
 
 
 
  Hi,
 
  Now that I finally stepped through and have a working hosted engine setup
  (after opening numerous BZs)..
 
  How do I modify network configuration (eg. assign new VLANs to hosts),
 when I
  attempt to modify a network it gives the error:
  Which network are you talking about?
 
  And hjow are you trying to modify it?
 
  eg. I want to add another VLAN or modify the MTU on ovirtmgmt
 
  When I try to modify it through the engine I get that error.
 
 
 
 
 
 
 
  Error while executing action Setup Networks: Network is currently being
 used
 
  Is there a recommended way to set up these extra networks, or must all of
  these be not managed by the engine?
 
  Thanks,
  Andrew
 
  ___
  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] Making v2v easier?

2014-01-20 Thread Itamar Heim

On 01/20/2014 11:53 AM, Richard W.M. Jones wrote:

On Fri, Jan 17, 2014 at 05:06:13PM +0100, Sander Grendelman wrote:

On Fri, Jan 17, 2014 at 4:19 PM, Itamar Heim ih...@redhat.com wrote:

I see a lot of threads about v2v pains (mostly from ESX?)

I'm interested to see if we can make this simpler/easier.

hear hear!



if you have experience with this, please describe the steps you are using
(also the source platform),


Sources:
- Existing KVM (virt-manager/libvirt) platform
- ESX
- ova/ovf templates from several sources

Methods:
- KVM:
   virt-v2v with libvirtxml option, works reasonably well, most issues
are with windows guests where virt-v2v needs libguestfs-winsupport and
virtio-win (RHEL only)
- ESX:
   virt-v2v which works reasonably well _if_ the right packages
(libguestfs-winsupport virtio-win) are installed.
   virt-v2v can be used directly from ESX/ESX host (configure .netrc
first) but this is quite slow
   another option is to export the VM as an OVA and then import it with virt-v2v
- ova/ovf templates:
   hit and miss with virt-v2v, especially if they contain something
that is not a regular windows/linux guest.
   Another option is to do a direct copy of the disks on a pre-created
VM, clumsy.


and how you would like to see this make simpler
(I'm assuming that would start from somewhere in the webadmin probably).


Webadmin would be nice, but better behaviour from existing tools would be
a nice start too.

For example: the flow with virt-v2v is
1) Analyze source, look for disks
2) Convert/copy disks to ovirt export domain
3) Try to add virtio stuff to the copied disks on the export domain

If step 3 fails ( which happens a LOT), the copied disks are removed.
This is very frustrating if you just waited a couple of hours for a large
VM (e.g. 200GB) to be copied :(

Some kind of graceful abort/resume would be VERY welcome.


The above basically come down to the fact that currently virt-v2v does
the copy first and the v2v step second.  It was my understanding
[Matt?] that guestconv is supposed to do the v2v step first followed
by the copy, which should solve all of that.


would we focus on integrating with guestconv? how different from 
virt-v2v from integration perspective?





Another issue with virt-v2v is that it _always_ tries to add virtio
drivers.  I have a virtual appliance that contains some kind of
proprietary embedded OS: adding drivers will always fail, give me
some option to override that and configure simple ide / e1000
hardware for the VM


I suspect in this case what you really should be doing is just copying
the source disk image, without using virt-v2v at all.

Rich.



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


[Users] Volume Group does not exist. Blame device-mapper ?

2014-01-20 Thread Nicolas Ecarnot

Hi,

oVirt 3.3, no big issue since the recent snapshot joke, but all in all 
running fine.


All my VM are stored in a iSCSI SAN. The VM usually are using only one 
or two disks (1: system, 2: data) and it is OK.


Friday, I created a new LUN. Inside a VM, I linked to it via iscsiadm 
and successfully login to the Lun (session, automatic attach on boot, 
read, write) : nice.


Then after detaching it and shuting down the MV, and for the first time, 
I tried to make use of the feature direct attach to attach the disk 
directly from oVirt, login the session via oVirt.
I connected nice and I saw the disk appear in my VM as /dev/sda or 
whatever. I was able to mount it, read and write.


Then disaster stoke all this : many nodes suddenly began to become 
unresponsive, quickly migrating their VM to the remaining nodes.
Hopefully, the migrations ran fine and I lost no VM nor downtime, but I 
had to reboot every concerned node (other actions failed).


In the failing nodes, /var/log/messages showed the log you can read in 
the end of this message.
I first get device-mapper warnings, then the host unable to collaborate 
with the logical volumes.


The 3 volumes are the three main storage domains, perfectly up and 
running where I store my oVirt VMs.


My reflexions :
- I'm not sure device-mapper is to blame. I frequently see device mapper 
complaining and nothing is getting worse (not oVirt specifically)
- I have not change my network settings for months (bonding, linking...) 
The only new factor is the usage of direct attach LUN.
- This morning I was able to reproduce the bug, just by trying again 
this attachement, and booting the VM. No mounting of the LUN, just VM 
booting, waiting, and this is enough to crash oVirt.
- when the disaster happens, usually, amongst the nodes, only three 
nodes gets stroke, the only one that run VMs. Obviously, after 
migration, different nodes are hosting the VMs, and those new nodes are 
the one that then get stroke.


This is quite reproductible.

And frightening.


The log :

Jan 20 10:20:45 serv-vm-adm11 kernel: device-mapper: table: 253:36: 
multipath: error getting device
Jan 20 10:20:45 serv-vm-adm11 kernel: device-mapper: ioctl: error adding 
target to table
Jan 20 10:20:45 serv-vm-adm11 kernel: device-mapper: table: 253:36: 
multipath: error getting device
Jan 20 10:20:45 serv-vm-adm11 kernel: device-mapper: ioctl: error adding 
target to table
Jan 20 10:20:47 serv-vm-adm11 vdsm TaskManager.Task ERROR 
Task=`847653e6-8b23-4429-ab25-257538b35293`::Unexpected 
error#012Traceback (most recent call last):#012  File 
/usr/share/vdsm/storage/task.py, line 857, in _run#012return 
fn(*args, **kargs)#012  File /usr/share/vdsm/logUtils.py, line 45, in 
wrapper#012res = f(*args, **kwargs)#012  File 
/usr/share/vdsm/storage/hsm.py, line 3053, in getVolumeSize#012 
volUUID, bs=1))#012  File /usr/share/vdsm/storage/volume.py, line 333, 
in getVSize#012mysd = sdCache.produce(sdUUID=sdUUID)#012  File 
/usr/share/vdsm/storage/sdc.py, line 98, in produce#012 
domain.getRealDomain()#012  File /usr/share/vdsm/storage/sdc.py, line 
52, in getRealDomain#012return 
self._cache._realProduce(self._sdUUID)#012  File 
/usr/share/vdsm/storage/sdc.py, line 122, in _realProduce#012 
domain = self._findDomain(sdUUID)#012  File 
/usr/share/vdsm/storage/sdc.py, line 141, in _findDomain#012dom = 
findMethod(sdUUID)#012  File /usr/share/vdsm/storage/blockSD.py, line 
1288, in findDomain#012return 
BlockStorageDomain(BlockStorageDomain.findDomainPath(sdUUID))#012  File 
/usr/share/vdsm/storage/blockSD.py, line 414, in __init__#012 
lvm.checkVGBlockSizes(sdUUID, (self.logBlkSize, self.phyBlkSize))#012 
File /usr/share/vdsm/storage/lvm.py, line 976, in 
checkVGBlockSizes#012raise se.VolumeGroupDoesNotExist(vg_uuid: %s 
% vgUUID)#012VolumeGroupDoesNotExist: Volume Group does not exist: 
('vg_uuid: 1429ffe2-4137-416c-bb38-63fd73f4bcc1',)
Jan 20 10:20:47 serv-vm-adm11 ¿11vdsm vm.Vm ERROR 
vmId=`2c0bbb51-0f94-4bf1-9579-4e897260f88e`::Unable to update the volume 
80bac371-6899-4fbe-a8e1-272037186bfb (domain: 
1429ffe2-4137-416c-bb38-63fd73f4bcc1 image: 
a5995c25-cdc9-4499-b9b4-08394a38165c) for the drive vda
Jan 20 10:20:48 serv-vm-adm11 vdsm TaskManager.Task ERROR 
Task=`886e07bd-637b-4286-8a44-08dce5c8b207`::Unexpected 
error#012Traceback (most recent call last):#012  File 
/usr/share/vdsm/storage/task.py, line 857, in _run#012return 
fn(*args, **kargs)#012  File /usr/share/vdsm/logUtils.py, line 45, in 
wrapper#012res = f(*args, **kwargs)#012  File 
/usr/share/vdsm/storage/hsm.py, line 3053, in getVolumeSize#012 
volUUID, bs=1))#012  File /usr/share/vdsm/storage/volume.py, line 333, 
in getVSize#012mysd = sdCache.produce(sdUUID=sdUUID)#012  File 
/usr/share/vdsm/storage/sdc.py, line 98, in produce#012 
domain.getRealDomain()#012  File /usr/share/vdsm/storage/sdc.py, line 
52, in getRealDomain#012return 
self._cache._realProduce(self._sdUUID)#012  File 

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Andrew Lau
I have opened this BZ 1055461 anyway just in case


On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau and...@andrewklau.com wrote:

 I was more interested in how the score process would be calculated, the
 vm-status option considered the VM in a bad state.

 I left it for a few minutes and nothing seemed to have changed, I think it
 relates to hosted engine as virsh requires authentication. Should I still
 open a bz?

 Cheers,
 Andrew.
 On Jan 20, 2014 7:48 PM, Dafna Ron d...@redhat.com wrote:

 I am not sure this is a hosted engine question as much as a qemu question.
 qemu-kvm will not support auto start of vm's after EIO because of remote
 possibility of corruption.

 On 01/20/2014 05:46 AM, Andrew Lau wrote:

 Hi,

 Quick question, in the scenario eg. the NFS server becomes unreachable
 and the hosted-engine goes into a paused state. Will other hosts attempt to
 bring it back up? Should there be a command eg.  hosted-engine --vm-resume ?

 When this happened, I manually forced it to resume using virsh


 On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David d...@redhat.commailto:
 d...@redhat.com wrote:

 Thanks a lot for your efforts and the report!
 -- Didi

 
 

 *From: *Andrew Lau and...@andrewklau.com
 mailto:and...@andrewklau.com
 *To: *users users@ovirt.org mailto:users@ovirt.org
 *Sent: *Saturday, January 18, 2014 3:20:22 PM
 *Subject: *Re: [Users] Issues starting hosted engine VM


 I believe I found the issue and have reported it here
 https://bugzilla.redhat.com/show_bug.cgi?id=1055059

 On Sat, Jan 18, 2014 at 11:33 PM, Andrew Lau
 and...@andrewklau.com mailto:and...@andrewklau.com wrote:

 The interesting thing - trying it with the paused option
 vdsm seems to create the VM

 hosted-engine --vm-start-paused

 vdsm.log http://www.fpaste.org/69604/13900482/

 But I'm not sure how to then proceed to resume it.

 On Sat, Jan 18, 2014 at 10:23 PM, Andrew Lau
 and...@andrewklau.com mailto:and...@andrewklau.com
 wrote:

 Hi,

 With the great help from sbonazzo, I managed to step
 past the initial bug with the hosted-engine-setup but
 appear to have run into another show stopper.

 I ran through the install process successfully up to
 the stage where it completed and the engine VM was to
 be shutdown. (The engine has already been installed on
 the VM and the host has been connected to the engine).

 The issue starts here that the host finds itself not
 able to start the VM up again.

 VDSM Logs: http://www.fpaste.org/69592/00427141/
 ovirt-hosted-engine-ha agent.log
 http://www.fpaste.org/69595/43609139/

 It seems to keep failing to start the VM.. when I
 restart the agent I can see the score drop to 0 after
 3 boot attempts.  The interesting thing seems to be in
 the VDSM Logs 'Virtual machine does not exist',
 'code': 1}}

 I'm not sure where else to look. Suggestions?

 Cheers,

 Andrew




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




 -- Didi




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



 --
 Dafna Ron


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


Re: [Users] virt-v2v: too many IDE bus:

2014-01-20 Thread Matthew Booth
On 19/01/14 14:07, Markus Stockhausen wrote:
 Hello,
 
 we are currently encountering the above error during virt-v2v
 migration. There was an older post about it here:
 http://lists.ovirt.org/pipermail/users/2013-December/018379.html
 
 The answers suggest that this is already fixed upstream
 and that you only need virt-v2v for OS disks. Could someone,
 explain
 
 - how to migrate only the OS disk and to dd the data disks.
 - if there exist any offical patches to fix the bug.

Unfortunately it isn't fixed upstream. The only current workaround is to
edit GuestfsHandle.pm on the machine running virt-v2v. Change:

$g-add_drive_opts($path,
   format = $format,
   iface = $interface,
   name = $name);

to:

$g-add_drive_opts($path,
   format = $format,
   name = $name);

and:

# Add the transfer iso if there is one
$g-add_drive_opts($transfer,
   format = 'raw', iface = $interface,
readonly = 1)
if defined($transfer);

to:

# Add the transfer iso if there is one
$g-add_drive_opts($transfer,
   format = 'raw', readonly = 1)
if defined($transfer);

However, this is known to cause problems when converting guests running
older versions of RHEL (RHEL 3 and possibly 4).

Matt

-- 
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team

GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v: invalid backend appliance

2014-01-20 Thread Markus Stockhausen
Von: Richard W.M. Jones [rjo...@redhat.com]
 Gesendet: Montag, 20. Januar 2014 10:59
 An: Markus Stockhausen
 Cc: ovirt-users; mbo...@redhat.com
 Betreff: Re: [Users] virt-v2v: invalid backend appliance
 
 On Sun, Jan 19, 2014 at 07:56:22PM +, Markus Stockhausen wrote:
  Hello,
 
  just tried to run virt-v2v on Fedora 20. Disk conversion works
  flawlessly but in the end the process fails with:
 
  libguestfs: create: flags = 0, handle = 0x4fe26a0, program = perl
  invalid backend: appliance at 
  /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 83.
  libguestfs: closing guestfs handle 0x4fe26a0 (state 0)
 
  I'm using the same scripts  configuration files with Fedora 19.
  No problems there.
 
  Any ideas what is going wrong?
 
 This is a bug in libguestfs:
 
 https://bugzilla.redhat.com/show_bug.cgi?id=1055452
 
 A workaround is to edit the virt-v2v source (one of the *.pm files)
 and change s/appliance/direct/.

Thanks for opening a bug, Before destroing the sources... Is there
any possibility to set an environment variable to set attach mode
to DIRECT again?

Markus
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

Über das Internet versandte E-Mails können unter fremden Namen erstellt oder
manipuliert werden. Deshalb ist diese als E-Mail verschickte Nachricht keine
rechtsverbindliche Willenserklärung.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

Vorstand:
Kadir Akin
Dr. Michael Höhnerbach

Vorsitzender des Aufsichtsrates:
Hans Kristian Langva

Registergericht: Amtsgericht Köln
Registernummer: HRB 52 497

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

e-mails sent over the internet may have been written under a wrong name or
been manipulated. That is why this message sent as an e-mail is not a
legally binding declaration of intention.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

executive board:
Kadir Akin
Dr. Michael Höhnerbach

President of the supervisory board:
Hans Kristian Langva

Registry office: district court Cologne
Register number: HRB 52 497


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


Re: [Users] Disk error

2014-01-20 Thread Dafna Ron

let's try to sift through :)

can you run vdsClient -s 0 getStorageDomainsList?




On 01/20/2014 09:52 AM, Meital Bourvine wrote:
It seems that your setup is completely messed up. I see the following 
3 errors all the time (I couldn't actually find the live storage 
migration error, since there are too many errors):


Thread-118::ERROR::2014-01-20 
07:59:17,066::sampling::355::vm.Vm::(collect) 
vmId=`f8c6190c-b722-4fcd-af17-21572151fcef`::Stats function failed: 
AdvancedStatsFunction _highWrite at 0x27b41b8

Traceback (most recent call last):
  File /usr/share/vdsm/sampling.py, line 351, in collect
statsFunction()
  File /usr/share/vdsm/sampling.py, line 226, in __call__
retValue = self._function(*args, **kwargs)
  File /usr/share/vdsm/vm.py, line 509, in _highWrite
if not vmDrive.blockDev or vmDrive.format != 'cow':
AttributeError: 'Drive' object has no attribute 'format'

PolicyEngine::DEBUG::2014-01-20 
07:59:17,198::libvirtconnection::108::libvirtconnection::(wrapper) 
Unknown libvirterror: ecode: 8 edom: 10 level: 2 message: invalid 
argument: cannot set memory higher than max memory
PolicyEngine::ERROR::2014-01-20 
07:59:17,199::vm::4359::vm.Vm::(reportError) 
vmId=`ce626f90-41c4-4417-9e53-bf4066ad062d`::Set new balloon target failed

Traceback (most recent call last):
  File /usr/share/vdsm/vm.py, line 4371, in setBalloonTarget
self._dom.setMemory(target)
  File /usr/share/vdsm/vm.py, line 835, in f
ret = attr(*args, **kwargs)
  File /usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, 
line 76, in wrapper

ret = f(*args, **kwargs)
  File /usr/lib64/python2.6/site-packages/libvirt.py, line 1410, in 
setMemory
if ret == -1: raise libvirtError ('virDomainSetMemory() failed', 
dom=self)

libvirtError: invalid argument: cannot set memory higher than max memory

Thread-51::ERROR::2014-01-20 
07:59:22,109::sampling::355::vm.Vm::(collect) 
vmId=`493128c0-aba9-4b38-bf18-2778b910917f`::Stats function failed: 
AdvancedStatsFunction _highWrite at 0x27b41b8

Traceback (most recent call last):
  File /usr/share/vdsm/sampling.py, line 351, in collect
statsFunction()
  File /usr/share/vdsm/sampling.py, line 226, in __call__
retValue = self._function(*args, **kwargs)
  File /usr/share/vdsm/vm.py, line 513, in _highWrite
self._vm._dom.blockInfo(vmDrive.path, 0)
  File /usr/share/vdsm/vm.py, line 835, in f
ret = attr(*args, **kwargs)
  File /usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, 
line 76, in wrapper

ret = f(*args, **kwargs)
  File /usr/lib64/python2.6/site-packages/libvirt.py, line 1797, in 
blockInfo
if ret is None: raise libvirtError ('virDomainGetBlockInfo() 
failed', dom=self)
libvirtError: invalid argument: invalid path 
/rhev/data-center/mnt/blockSD/f8ddd1d1-5266-493b-879b-f79c128751e2/images/b8da8541-9a0d-4c18-8aa8-50fc6225f18a/ff674bce-aa94-4b46-9f9d-d4182eab1e49 
not assigned to domain





*From: *Koen Vanoppen vanoppen.k...@gmail.com
*To: *users@ovirt.org, Meital Bourvine mbour...@redhat.com
*Sent: *Monday, January 20, 2014 9:39:10 AM
*Subject: *Re: [Users] Disk error

vdsm-4.13.0-11.el6.x86_64
:-)



2014/1/20 Meital Bourvine mbour...@redhat.com
mailto:mbour...@redhat.com

First of all, I opened a bug about 'Drive' object has no
attribute 'format':
https://bugzilla.redhat.com/show_bug.cgi?id=1055437

Please send me the output of `rpm -q vdsm` so I'll update the
version in the bug.

Also, it's better to send the logs to the list (and not only
to me), so more people will be able to help you debug it.

- Original Message -
 From: Dafna Ron d...@redhat.com mailto:d...@redhat.com
 To: Meital Bourvine mbour...@redhat.com
mailto:mbour...@redhat.com
 Cc: Koen Vanoppen vanoppen.k...@gmail.com
mailto:vanoppen.k...@gmail.com, users@ovirt.org
mailto:users@ovirt.org
 Sent: Monday, January 20, 2014 8:49:32 AM
 Subject: Re: [Users] Disk error

 from the errors you are getting, disk status in db is locked.


 On 01/20/2014 08:38 AM, Meital Bourvine wrote:
  Hi Koen,
 
  What is the error that you got when live storage migration
failed?
  Can you please attach vdsm.log and engine.log
 
  *From: *Koen Vanoppen vanoppen.k...@gmail.com
mailto:vanoppen.k...@gmail.com
  *To: *users@ovirt.org mailto:users@ovirt.org
  *Sent: *Monday, January 20, 2014 5:30:51 AM
  *Subject: *[Users] Disk error
 
  Hi all!
 
  I got a kind of a strange error in ovirt. THere was a
problem with
  a vm that was complaining about low disk space. (in
terms of
  storage space of the storage center). So I did a 

Re: [Users] Making v2v easier?

2014-01-20 Thread Matthew Booth
On 20/01/14 09:53, Richard W.M. Jones wrote:
 On Fri, Jan 17, 2014 at 05:06:13PM +0100, Sander Grendelman wrote:
 On Fri, Jan 17, 2014 at 4:19 PM, Itamar Heim ih...@redhat.com wrote:
 I see a lot of threads about v2v pains (mostly from ESX?)

 I'm interested to see if we can make this simpler/easier.
 hear hear!


 if you have experience with this, please describe the steps you are using
 (also the source platform),

 Sources:
 - Existing KVM (virt-manager/libvirt) platform
 - ESX
 - ova/ovf templates from several sources

 Methods:
 - KVM:
   virt-v2v with libvirtxml option, works reasonably well, most issues
 are with windows guests where virt-v2v needs libguestfs-winsupport and
 virtio-win (RHEL only)
 - ESX:
   virt-v2v which works reasonably well _if_ the right packages
 (libguestfs-winsupport virtio-win) are installed.
   virt-v2v can be used directly from ESX/ESX host (configure .netrc
 first) but this is quite slow
   another option is to export the VM as an OVA and then import it with 
 virt-v2v
 - ova/ovf templates:
   hit and miss with virt-v2v, especially if they contain something
 that is not a regular windows/linux guest.
   Another option is to do a direct copy of the disks on a pre-created
 VM, clumsy.

 and how you would like to see this make simpler
 (I'm assuming that would start from somewhere in the webadmin probably).

 Webadmin would be nice, but better behaviour from existing tools would be
 a nice start too.

 For example: the flow with virt-v2v is
 1) Analyze source, look for disks
 2) Convert/copy disks to ovirt export domain
 3) Try to add virtio stuff to the copied disks on the export domain

 If step 3 fails ( which happens a LOT), the copied disks are removed.
 This is very frustrating if you just waited a couple of hours for a large
 VM (e.g. 200GB) to be copied :(

 Some kind of graceful abort/resume would be VERY welcome.
 
 The above basically come down to the fact that currently virt-v2v does
 the copy first and the v2v step second.  It was my understanding
 [Matt?] that guestconv is supposed to do the v2v step first followed
 by the copy, which should solve all of that.

guestconv doesn't address this problem directly. We need smarter copying
for that :/

 
 Another issue with virt-v2v is that it _always_ tries to add virtio
 drivers.  I have a virtual appliance that contains some kind of
 proprietary embedded OS: adding drivers will always fail, give me
 some option to override that and configure simple ide / e1000
 hardware for the VM

guestconv *does* address that.

 I suspect in this case what you really should be doing is just copying
 the source disk image, without using virt-v2v at all.

Matt
-- 
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team

GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] VM Migration failed

2014-01-20 Thread Dafna Ron
when you booted the vm's for the first time, did you specify the ISO in 
vm's boot sequence or did you use run-once?


On 01/20/2014 09:53 AM, Edgars M. wrote:

Hi again

I tried to reproduce this issue and unfortunately I couldn't. So there 
must be something else, but I cannot figure out what is wrong, because 
it is happening only with some VMs. Nonetheless I attached new log 
files to investigate.


And here is some more info:
ovirt-engine-setup-3.3.2-1.el6.noarch
ovirt-engine-webadmin-portal-3.3.2-1.el6.noarch
ovirt-host-deploy-java-1.1.2-1.el6.noarch
ovirt-engine-restapi-3.3.2-1.el6.noarch
ovirt-image-uploader-3.3.1-1.el6.noarch
ovirt-release-el6-10-1.noarch
ovirt-engine-userportal-3.3.2-1.el6.noarch
ovirt-engine-backend-3.3.2-1.el6.noarch
ovirt-engine-websocket-proxy-3.3.2-1.el6.noarch
ovirt-engine-dbscripts-3.3.2-1.el6.noarch
ovirt-log-collector-3.3.1-1.el6.noarch
ovirt-engine-sdk-python-3.3.0.8-1.el6.noarch
ovirt-engine-cli-3.3.0.6-1.el6.noarch
ovirt-engine-tools-3.3.2-1.el6.noarch
ovirt-iso-uploader-3.3.1-1.el6.noarch
ovirt-engine-lib-3.3.2-1.el6.noarch
ovirt-engine-3.3.2-1.el6.noarch
ovirt-host-deploy-1.1.2-1.el6.noarch

vdsm-xmlrpc-4.13.2-1.el6.noarch
vdsm-python-4.13.2-1.el6.x86_64
vdsm-python-cpopen-4.13.2-1.el6.x86_64
vdsm-4.13.2-1.el6.x86_64
vdsm-cli-4.13.2-1.el6.noarch

libvirt-lock-sanlock-0.10.2-29.el6_5.2.x86_64
libvirt-client-0.10.2-29.el6_5.2.x86_64
libvirt-python-0.10.2-29.el6_5.2.x86_64
libvirt-0.10.2-29.el6_5.2.x86_64

CentOS 6.5 x86_64 on both Engine and Nodes.

SELinux disabled everywhere (I know, I know).
There is no any snapshots for these VMs. These VMs were installed by 
booting from ISO image.

There is nothing in libvirtd.log files


BR
Edgars



On Sat, Jan 18, 2014 at 6:39 PM, Dafna Ron d...@redhat.com 
mailto:d...@redhat.com wrote:


sounds like this is the issue to me... Edgars can you try to
confirm that? :)
Michal, was there a bug opened for this? I think that perhaps we
should also add a clear error message - it would help debug this
more easily.



On 01/18/2014 05:34 PM, Michal Skrivanek wrote:


On 18 Jan 2014, at 18:06, Itamar Heim ih...@redhat.com
mailto:ih...@redhat.com wrote:

On 01/18/2014 03:44 PM, Edgars M. wrote:
Hi

Thanks for your help. I will provide all log files a
little bit later,
but so far I have noticed some pattern when migration
fails. Those
particular VMs, which fails to migrate, were installed
from ISO image,
usual installation. So, I believe you can reproduce
the issue by this:

1. Upload ISO image to ISO domain
2. Install new OS by booting from ISO image and check
Attach CD in Boot
Options
3. Delete ISO image from ISO domain
4. Try to migrate VM to another host.


I have not tried this yet, but I have noticed that
only those VMs fails
which had been install from ISO image which is not in
ISO domain
anymore. I have also VMs created from templates and
those VMs I can
migrate just fine.

did you stop the VMs post install? did you try to start
them without the iso attached?
otherwise, you can't start them, as there is a missing iso
for the target qemu process

Indeed. That is a known libvirt/qemu issue that even though
the CD is defined as optional and VM can be started without it
on original host, it fails upon migration when destination is
being created.

Thanks,
michal

I will provide more log files later.

BR
Edgars


On Sat, Jan 18, 2014 at 1:05 PM, Dafna Ron
d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com wrote:

I looked at the logs log and only vdsm from node2
(which appears to
be the src node) seems to have full info.

Please attach the following complete logs:
vdsm log from dst node
engine log
libvirt logs from both nodes.

Also, can you please answer the following?
libvirt and vdsm you are using?
what is selinux status on both hosts
(enforcing/permissive)?
do you have snapshots on the vm or does it happen
on a newly created
disk?
when you create the disk, is it from a template or
is it a new image?

Thanks,

Dafna




On 01/17/2014 10:21 PM, 

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Dafna Ron
the question is what was the vm paused on... this can be found in the 
qemu vm log.
if the vm is paused it will not be auto started - so I am not sure what 
you expect to change? virsh requires authentication regardless to hosted 
engine :)

Leonid, did you do any testing there?

On 01/20/2014 10:13 AM, Andrew Lau wrote:

I have opened this BZ 1055461 anyway just in case


On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau and...@andrewklau.com 
mailto:and...@andrewklau.com wrote:


I was more interested in how the score process would be
calculated, the vm-status option considered the VM in a bad state.

I left it for a few minutes and nothing seemed to have changed, I
think it relates to hosted engine as virsh requires
authentication. Should I still open a bz?

Cheers,
Andrew.

On Jan 20, 2014 7:48 PM, Dafna Ron d...@redhat.com
mailto:d...@redhat.com wrote:

I am not sure this is a hosted engine question as much as a
qemu question.
qemu-kvm will not support auto start of vm's after EIO because
of remote possibility of corruption.

On 01/20/2014 05:46 AM, Andrew Lau wrote:

Hi,

Quick question, in the scenario eg. the NFS server becomes
unreachable and the hosted-engine goes into a paused
state. Will other hosts attempt to bring it back up?
Should there be a command eg.  hosted-engine --vm-resume ?

When this happened, I manually forced it to resume using virsh


On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David
d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com wrote:

Thanks a lot for your efforts and the report!
-- Didi

   



*From: *Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com
mailto:and...@andrewklau.com
mailto:and...@andrewklau.com
*To: *users users@ovirt.org
mailto:users@ovirt.org mailto:users@ovirt.org
mailto:users@ovirt.org
*Sent: *Saturday, January 18, 2014 3:20:22 PM
*Subject: *Re: [Users] Issues starting hosted
engine VM


I believe I found the issue and have reported it here
https://bugzilla.redhat.com/show_bug.cgi?id=1055059

On Sat, Jan 18, 2014 at 11:33 PM, Andrew Lau
and...@andrewklau.com
mailto:and...@andrewklau.com
mailto:and...@andrewklau.com
mailto:and...@andrewklau.com wrote:

The interesting thing - trying it with the
paused option
vdsm seems to create the VM

hosted-engine --vm-start-paused

vdsm.log http://www.fpaste.org/69604/13900482/

But I'm not sure how to then proceed to
resume it.

On Sat, Jan 18, 2014 at 10:23 PM, Andrew Lau
and...@andrewklau.com
mailto:and...@andrewklau.com
mailto:and...@andrewklau.com
mailto:and...@andrewklau.com wrote:

Hi,

With the great help from sbonazzo, I
managed to step
past the initial bug with the
hosted-engine-setup but
appear to have run into another show stopper.

I ran through the install process
successfully up to
the stage where it completed and the
engine VM was to
be shutdown. (The engine has already been
installed on
the VM and the host has been connected to
the engine).

The issue starts here that the host finds
itself not
able to start the VM up again.

VDSM Logs:
http://www.fpaste.org/69592/00427141/
ovirt-hosted-engine-ha agent.log
http://www.fpaste.org/69595/43609139/

It seems to keep failing to start the VM..
when I
restart the agent I can see the score drop
to 0 after
3 boot attempts.  The interesting thing
seems to be in
the VDSM Logs 'Virtual machine does not
exist',
'code': 1}}

I'm not sure where else to look. Suggestions?

Cheers,

Andrew





Re: [Users] VM Migration failed

2014-01-20 Thread Dafna Ron
so if you selected it as first boot device, after you installed did you 
shut down the vm and remove the vm from the boot?


On 01/20/2014 10:21 AM, Edgars M. wrote:

Hi

I specified ISO image and chose CD-ROM as first boot device.

Edgars


On Mon, Jan 20, 2014 at 11:19 AM, Dafna Ron d...@redhat.com 
mailto:d...@redhat.com wrote:


when you booted the vm's for the first time, did you specify the
ISO in vm's boot sequence or did you use run-once?


On 01/20/2014 09:53 AM, Edgars M. wrote:

Hi again

I tried to reproduce this issue and unfortunately I couldn't.
So there must be something else, but I cannot figure out what
is wrong, because it is happening only with some VMs.
Nonetheless I attached new log files to investigate.

And here is some more info:
ovirt-engine-setup-3.3.2-1.el6.noarch
ovirt-engine-webadmin-portal-3.3.2-1.el6.noarch
ovirt-host-deploy-java-1.1.2-1.el6.noarch
ovirt-engine-restapi-3.3.2-1.el6.noarch
ovirt-image-uploader-3.3.1-1.el6.noarch
ovirt-release-el6-10-1.noarch
ovirt-engine-userportal-3.3.2-1.el6.noarch
ovirt-engine-backend-3.3.2-1.el6.noarch
ovirt-engine-websocket-proxy-3.3.2-1.el6.noarch
ovirt-engine-dbscripts-3.3.2-1.el6.noarch
ovirt-log-collector-3.3.1-1.el6.noarch
ovirt-engine-sdk-python-3.3.0.8-1.el6.noarch
ovirt-engine-cli-3.3.0.6-1.el6.noarch
ovirt-engine-tools-3.3.2-1.el6.noarch
ovirt-iso-uploader-3.3.1-1.el6.noarch
ovirt-engine-lib-3.3.2-1.el6.noarch
ovirt-engine-3.3.2-1.el6.noarch
ovirt-host-deploy-1.1.2-1.el6.noarch

vdsm-xmlrpc-4.13.2-1.el6.noarch
vdsm-python-4.13.2-1.el6.x86_64
vdsm-python-cpopen-4.13.2-1.el6.x86_64
vdsm-4.13.2-1.el6.x86_64
vdsm-cli-4.13.2-1.el6.noarch

libvirt-lock-sanlock-0.10.2-29.el6_5.2.x86_64
libvirt-client-0.10.2-29.el6_5.2.x86_64
libvirt-python-0.10.2-29.el6_5.2.x86_64
libvirt-0.10.2-29.el6_5.2.x86_64

CentOS 6.5 x86_64 on both Engine and Nodes.

SELinux disabled everywhere (I know, I know).
There is no any snapshots for these VMs. These VMs were
installed by booting from ISO image.
There is nothing in libvirtd.log files


BR
Edgars



On Sat, Jan 18, 2014 at 6:39 PM, Dafna Ron d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com wrote:

sounds like this is the issue to me... Edgars can you try to
confirm that? :)
Michal, was there a bug opened for this? I think that
perhaps we
should also add a clear error message - it would help
debug this
more easily.



On 01/18/2014 05:34 PM, Michal Skrivanek wrote:


On 18 Jan 2014, at 18:06, Itamar Heim
ih...@redhat.com mailto:ih...@redhat.com
mailto:ih...@redhat.com
mailto:ih...@redhat.com wrote:

On 01/18/2014 03:44 PM, Edgars M. wrote:
Hi

Thanks for your help. I will provide all log
files a
little bit later,
but so far I have noticed some pattern when
migration
fails. Those
particular VMs, which fails to migrate, were
installed
from ISO image,
usual installation. So, I believe you can
reproduce
the issue by this:

1. Upload ISO image to ISO domain
2. Install new OS by booting from ISO image
and check
Attach CD in Boot
Options
3. Delete ISO image from ISO domain
4. Try to migrate VM to another host.


I have not tried this yet, but I have noticed that
only those VMs fails
which had been install from ISO image which is
not in
ISO domain
anymore. I have also VMs created from
templates and
those VMs I can
migrate just fine.

did you stop the VMs post install? did you try to
start
them without the iso attached?
otherwise, you can't start them, as there is a
missing iso
for the target qemu process

Indeed. That is a known libvirt/qemu issue that even
though
the CD is defined as optional and VM can be started
without it
on original host, it fails upon migration when
destination is
being created.

 

[Users] Gluster command [Non interactive user] failed on server ..

2014-01-20 Thread Andrew Lau
Hi,

I'm seeing this weird error on my host which runs the hosted-engine, it
only recently showed up and put the host into 'Non Operational' :
Gluster command [Non interactive user] failed on server HV01.

ovirt-engine.log
http://www.fpaste.org/69949/90213863/

Current running VMs continue to run. Has anyone seen this before?

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


Re: [Users] Making v2v easier?

2014-01-20 Thread Itamar Heim

On 01/20/2014 12:18 PM, Matthew Booth wrote:

On 20/01/14 09:53, Richard W.M. Jones wrote:

On Fri, Jan 17, 2014 at 05:06:13PM +0100, Sander Grendelman wrote:

On Fri, Jan 17, 2014 at 4:19 PM, Itamar Heim ih...@redhat.com wrote:

I see a lot of threads about v2v pains (mostly from ESX?)

I'm interested to see if we can make this simpler/easier.

hear hear!



if you have experience with this, please describe the steps you are using
(also the source platform),


Sources:
- Existing KVM (virt-manager/libvirt) platform
- ESX
- ova/ovf templates from several sources

Methods:
- KVM:
   virt-v2v with libvirtxml option, works reasonably well, most issues
are with windows guests where virt-v2v needs libguestfs-winsupport and
virtio-win (RHEL only)
- ESX:
   virt-v2v which works reasonably well _if_ the right packages
(libguestfs-winsupport virtio-win) are installed.
   virt-v2v can be used directly from ESX/ESX host (configure .netrc
first) but this is quite slow
   another option is to export the VM as an OVA and then import it with virt-v2v
- ova/ovf templates:
   hit and miss with virt-v2v, especially if they contain something
that is not a regular windows/linux guest.
   Another option is to do a direct copy of the disks on a pre-created
VM, clumsy.


and how you would like to see this make simpler
(I'm assuming that would start from somewhere in the webadmin probably).


Webadmin would be nice, but better behaviour from existing tools would be
a nice start too.

For example: the flow with virt-v2v is
1) Analyze source, look for disks
2) Convert/copy disks to ovirt export domain
3) Try to add virtio stuff to the copied disks on the export domain

If step 3 fails ( which happens a LOT), the copied disks are removed.
This is very frustrating if you just waited a couple of hours for a large
VM (e.g. 200GB) to be copied :(

Some kind of graceful abort/resume would be VERY welcome.


The above basically come down to the fact that currently virt-v2v does
the copy first and the v2v step second.  It was my understanding
[Matt?] that guestconv is supposed to do the v2v step first followed
by the copy, which should solve all of that.


guestconv doesn't address this problem directly. We need smarter copying
for that :/




Another issue with virt-v2v is that it _always_ tries to add virtio
drivers.  I have a virtual appliance that contains some kind of
proprietary embedded OS: adding drivers will always fail, give me
some option to override that and configure simple ide / e1000
hardware for the VM


guestconv *does* address that.


I suspect in this case what you really should be doing is just copying
the source disk image, without using virt-v2v at all.


Matt



is guestconv ready for adoption/testing instead of virt-v2v?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Leonid Natapov
1.hosted-engine --vm-start should start engine vm. There was no problem with it 
when I tested it.
2.hosted-engine --vm-start-paused was added for the case when something is 
wrong with engine vm and it can't start and requires user intervention. For 
example in case of kernel panic.
User can start engine vm in paused mode ,connect to it and try to fix the 
problem by booting in single user mode ,etc.
3.When the connectivity to shared storage is lost engine vm becomes paused. VM 
should be automatically unpaused after connectivity resumes (we introduced this 
feature in 3.3) but in case of NFS it could take quite time.so may be we should 
add something like --vm-resume in order to resume the engine vm manually.

Thanks,
Leonid.


- Original Message -
From: Andrew Lau and...@andrewklau.com
To: d...@redhat.com
Cc: Leonid Natapov lnata...@redhat.com, Yedidyah Bar David 
d...@redhat.com, users users@ovirt.org
Sent: Monday, January 20, 2014 12:28:15 PM
Subject: Re: [Users] Issues starting hosted engine VM

It was paused due to the connection loss to the NFS server, I would assume
once the connection is restored it could attempt to restore it? But I can
try dig up the vdsm logs if you want, they would only be a few hours old

I think having an option like --vm-resume would at least hide the reason of
having to dig into virsh and messing with authentication at the very least.

On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron d...@redhat.com wrote:

 the question is what was the vm paused on... this can be found in the qemu
 vm log.
 if the vm is paused it will not be auto started - so I am not sure what
 you expect to change? virsh requires authentication regardless to hosted
 engine :)
 Leonid, did you do any testing there?


 On 01/20/2014 10:13 AM, Andrew Lau wrote:

 I have opened this BZ 1055461 anyway just in case


 On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau and...@andrewklau.commailto:
 and...@andrewklau.com wrote:

 I was more interested in how the score process would be
 calculated, the vm-status option considered the VM in a bad state.

 I left it for a few minutes and nothing seemed to have changed, I
 think it relates to hosted engine as virsh requires
 authentication. Should I still open a bz?

 Cheers,
 Andrew.

 On Jan 20, 2014 7:48 PM, Dafna Ron d...@redhat.com
 mailto:d...@redhat.com wrote:

 I am not sure this is a hosted engine question as much as a
 qemu question.
 qemu-kvm will not support auto start of vm's after EIO because
 of remote possibility of corruption.

 On 01/20/2014 05:46 AM, Andrew Lau wrote:

 Hi,

 Quick question, in the scenario eg. the NFS server becomes
 unreachable and the hosted-engine goes into a paused
 state. Will other hosts attempt to bring it back up?
 Should there be a command eg.  hosted-engine --vm-resume ?

 When this happened, I manually forced it to resume using virsh


 On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David
 d...@redhat.com mailto:d...@redhat.com
 mailto:d...@redhat.com mailto:d...@redhat.com wrote:

 Thanks a lot for your efforts and the report!
 -- Didi

--
 --

 *From: *Andrew Lau and...@andrewklau.com
 mailto:and...@andrewklau.com
 mailto:and...@andrewklau.com

 mailto:and...@andrewklau.com
 *To: *users users@ovirt.org
 mailto:users@ovirt.org mailto:users@ovirt.org

 mailto:users@ovirt.org
 *Sent: *Saturday, January 18, 2014 3:20:22 PM
 *Subject: *Re: [Users] Issues starting hosted
 engine VM


 I believe I found the issue and have reported it here
 https://bugzilla.redhat.com/show_bug.cgi?id=1055059

 On Sat, Jan 18, 2014 at 11:33 PM, Andrew Lau
 and...@andrewklau.com
 mailto:and...@andrewklau.com
 mailto:and...@andrewklau.com

 mailto:and...@andrewklau.com wrote:

 The interesting thing - trying it with the
 paused option
 vdsm seems to create the VM

 hosted-engine --vm-start-paused

 vdsm.log http://www.fpaste.org/69604/13900482/

 But I'm not sure how to then proceed to
 resume it.

 On Sat, Jan 18, 2014 at 10:23 PM, Andrew Lau
 and...@andrewklau.com
 mailto:and...@andrewklau.com
 mailto:and...@andrewklau.com

 mailto:and...@andrewklau.com wrote:

 Hi,

 With the great help from 

Re: [Users] Making v2v easier?

2014-01-20 Thread Matthew Booth
On 20/01/14 10:36, Itamar Heim wrote:
 On 01/20/2014 12:18 PM, Matthew Booth wrote:
 On 20/01/14 09:53, Richard W.M. Jones wrote:
 On Fri, Jan 17, 2014 at 05:06:13PM +0100, Sander Grendelman wrote:
 On Fri, Jan 17, 2014 at 4:19 PM, Itamar Heim ih...@redhat.com wrote:
 I see a lot of threads about v2v pains (mostly from ESX?)

 I'm interested to see if we can make this simpler/easier.
 hear hear!


 if you have experience with this, please describe the steps you are
 using
 (also the source platform),

 Sources:
 - Existing KVM (virt-manager/libvirt) platform
 - ESX
 - ova/ovf templates from several sources

 Methods:
 - KVM:
virt-v2v with libvirtxml option, works reasonably well, most issues
 are with windows guests where virt-v2v needs libguestfs-winsupport and
 virtio-win (RHEL only)
 - ESX:
virt-v2v which works reasonably well _if_ the right packages
 (libguestfs-winsupport virtio-win) are installed.
virt-v2v can be used directly from ESX/ESX host (configure .netrc
 first) but this is quite slow
another option is to export the VM as an OVA and then import it
 with virt-v2v
 - ova/ovf templates:
hit and miss with virt-v2v, especially if they contain something
 that is not a regular windows/linux guest.
Another option is to do a direct copy of the disks on a pre-created
 VM, clumsy.

 and how you would like to see this make simpler
 (I'm assuming that would start from somewhere in the webadmin
 probably).

 Webadmin would be nice, but better behaviour from existing tools
 would be
 a nice start too.

 For example: the flow with virt-v2v is
 1) Analyze source, look for disks
 2) Convert/copy disks to ovirt export domain
 3) Try to add virtio stuff to the copied disks on the export domain

 If step 3 fails ( which happens a LOT), the copied disks are removed.
 This is very frustrating if you just waited a couple of hours for a
 large
 VM (e.g. 200GB) to be copied :(

 Some kind of graceful abort/resume would be VERY welcome.

 The above basically come down to the fact that currently virt-v2v does
 the copy first and the v2v step second.  It was my understanding
 [Matt?] that guestconv is supposed to do the v2v step first followed
 by the copy, which should solve all of that.

 guestconv doesn't address this problem directly. We need smarter copying
 for that :/


 Another issue with virt-v2v is that it _always_ tries to add virtio
 drivers.  I have a virtual appliance that contains some kind of
 proprietary embedded OS: adding drivers will always fail, give me
 some option to override that and configure simple ide / e1000
 hardware for the VM

 guestconv *does* address that.

 I suspect in this case what you really should be doing is just copying
 the source disk image, without using virt-v2v at all.

 Matt

 
 is guestconv ready for adoption/testing instead of virt-v2v?

No, it's not even functionally complete, yet. We're planning to get that
sorted soon.

Matt
-- 
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team

GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] VM Migration failed

2014-01-20 Thread Dafna Ron

so the vm still has the dc as it's first device in boot.
when you try to migrate, libvirt will try to create the vm on the other 
side with the cd as first device.

since the cd no lobger exists - create will fail.
can you try to shut down one of the vms that are failing - edit the 
boot to disk with no dc - run it - try to migrate.


On 01/20/2014 10:26 AM, Edgars M. wrote:

No, I did not that, but I did Eject under Change CD.

Edgars


On Mon, Jan 20, 2014 at 11:24 AM, Dafna Ron d...@redhat.com 
mailto:d...@redhat.com wrote:


so if you selected it as first boot device, after you installed
did you shut down the vm and remove the vm from the boot?


On 01/20/2014 10:21 AM, Edgars M. wrote:

Hi

I specified ISO image and chose CD-ROM as first boot device.

Edgars


On Mon, Jan 20, 2014 at 11:19 AM, Dafna Ron d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com wrote:

when you booted the vm's for the first time, did you
specify the
ISO in vm's boot sequence or did you use run-once?


On 01/20/2014 09:53 AM, Edgars M. wrote:

Hi again

I tried to reproduce this issue and unfortunately I
couldn't.
So there must be something else, but I cannot figure
out what
is wrong, because it is happening only with some VMs.
Nonetheless I attached new log files to investigate.

And here is some more info:
ovirt-engine-setup-3.3.2-1.el6.noarch
ovirt-engine-webadmin-portal-3.3.2-1.el6.noarch
ovirt-host-deploy-java-1.1.2-1.el6.noarch
ovirt-engine-restapi-3.3.2-1.el6.noarch
ovirt-image-uploader-3.3.1-1.el6.noarch
ovirt-release-el6-10-1.noarch
ovirt-engine-userportal-3.3.2-1.el6.noarch
ovirt-engine-backend-3.3.2-1.el6.noarch
ovirt-engine-websocket-proxy-3.3.2-1.el6.noarch
ovirt-engine-dbscripts-3.3.2-1.el6.noarch
ovirt-log-collector-3.3.1-1.el6.noarch
ovirt-engine-sdk-python-3.3.0.8-1.el6.noarch
ovirt-engine-cli-3.3.0.6-1.el6.noarch
ovirt-engine-tools-3.3.2-1.el6.noarch
ovirt-iso-uploader-3.3.1-1.el6.noarch
ovirt-engine-lib-3.3.2-1.el6.noarch
ovirt-engine-3.3.2-1.el6.noarch
ovirt-host-deploy-1.1.2-1.el6.noarch

vdsm-xmlrpc-4.13.2-1.el6.noarch
vdsm-python-4.13.2-1.el6.x86_64
vdsm-python-cpopen-4.13.2-1.el6.x86_64
vdsm-4.13.2-1.el6.x86_64
vdsm-cli-4.13.2-1.el6.noarch

libvirt-lock-sanlock-0.10.2-29.el6_5.2.x86_64
libvirt-client-0.10.2-29.el6_5.2.x86_64
libvirt-python-0.10.2-29.el6_5.2.x86_64
libvirt-0.10.2-29.el6_5.2.x86_64

CentOS 6.5 x86_64 on both Engine and Nodes.

SELinux disabled everywhere (I know, I know).
There is no any snapshots for these VMs. These VMs were
installed by booting from ISO image.
There is nothing in libvirtd.log files


BR
Edgars



On Sat, Jan 18, 2014 at 6:39 PM, Dafna Ron
d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com wrote:

sounds like this is the issue to me... Edgars can
you try to
confirm that? :)
Michal, was there a bug opened for this? I think that
perhaps we
should also add a clear error message - it would help
debug this
more easily.



On 01/18/2014 05:34 PM, Michal Skrivanek wrote:


On 18 Jan 2014, at 18:06, Itamar Heim
ih...@redhat.com mailto:ih...@redhat.com
mailto:ih...@redhat.com mailto:ih...@redhat.com
mailto:ih...@redhat.com
mailto:ih...@redhat.com

mailto:ih...@redhat.com mailto:ih...@redhat.com
wrote:

On 01/18/2014 03:44 PM, Edgars M. wrote:
Hi

Thanks for your help. I will provide
all log
files a
little bit later,
but so far I have noticed some pattern
when
migration
fails. Those
particular VMs, which fails to
migrate, were
installed

Re: [Users] Gluster command [Non interactive user] failed on server ..

2014-01-20 Thread Kanagaraj


From the log org.apache.xmlrpc.XmlRpcException: type 
'exceptions.Exception':method glusterHostsList is not supported


Looks like you don't have vdsm-gluster package installed on the host.

Thanks,
Kanagaraj

On 01/20/2014 04:05 PM, Andrew Lau wrote:

Hi,

I'm seeing this weird error on my host which runs the hosted-engine, 
it only recently showed up and put the host into 'Non Operational' :

Gluster command [Non interactive user] failed on server HV01.

ovirt-engine.log
http://www.fpaste.org/69949/90213863/

Current running VMs continue to run. Has anyone seen this before?

Thanks,
Andrew


___
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 error

2014-01-20 Thread Dafna Ron

can you please run:

vdsClient -s 0 getStorageDomainInfo f8ddd1d1-5266-493b-879b-f79c128751e2


On 01/20/2014 10:33 AM, Koen Vanoppen wrote:

[root@soyuz ~]# vdsClient -s 0 getStorageDomainsList
f3fd055b-2764-44ed-9d77-81bd58984842
94de241c-bf5c-4630-9af3-7e31b902ae77
f8ddd1d1-5266-493b-879b-f79c128751e2
50cf24a4-d1ef-4105-a9a5-b81d91339175
83b1867f-4aea-400e-9ce0-efbd5add4216

(soyuz=vdsmhost3)


2014/1/20 Dafna Ron d...@redhat.com mailto:d...@redhat.com

let's try to sift through :)

can you run vdsClient -s 0 getStorageDomainsList?





On 01/20/2014 09:52 AM, Meital Bourvine wrote:

It seems that your setup is completely messed up. I see the
following 3 errors all the time (I couldn't actually find the
live storage migration error, since there are too many errors):

Thread-118::ERROR::2014-01-20
07:59:17,066::sampling::355::vm.Vm::(collect)
vmId=`f8c6190c-b722-4fcd-af17-21572151fcef`::Stats function
failed: AdvancedStatsFunction _highWrite at 0x27b41b8
Traceback (most recent call last):
  File /usr/share/vdsm/sampling.py, line 351, in collect
statsFunction()
  File /usr/share/vdsm/sampling.py, line 226, in __call__
retValue = self._function(*args, **kwargs)
  File /usr/share/vdsm/vm.py, line 509, in _highWrite
if not vmDrive.blockDev or vmDrive.format != 'cow':
AttributeError: 'Drive' object has no attribute 'format'

PolicyEngine::DEBUG::2014-01-20
07:59:17,198::libvirtconnection::108::libvirtconnection::(wrapper)
Unknown libvirterror: ecode: 8 edom: 10 level: 2 message:
invalid argument: cannot set memory higher than max memory
PolicyEngine::ERROR::2014-01-20
07:59:17,199::vm::4359::vm.Vm::(reportError)
vmId=`ce626f90-41c4-4417-9e53-bf4066ad062d`::Set new balloon
target failed
Traceback (most recent call last):
  File /usr/share/vdsm/vm.py, line 4371, in setBalloonTarget
self._dom.setMemory(target)
  File /usr/share/vdsm/vm.py, line 835, in f
ret = attr(*args, **kwargs)
  File
/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, line
76, in wrapper
ret = f(*args, **kwargs)
  File /usr/lib64/python2.6/site-packages/libvirt.py, line
1410, in setMemory
if ret == -1: raise libvirtError ('virDomainSetMemory()
failed', dom=self)
libvirtError: invalid argument: cannot set memory higher than
max memory

Thread-51::ERROR::2014-01-20
07:59:22,109::sampling::355::vm.Vm::(collect)
vmId=`493128c0-aba9-4b38-bf18-2778b910917f`::Stats function
failed: AdvancedStatsFunction _highWrite at 0x27b41b8
Traceback (most recent call last):
  File /usr/share/vdsm/sampling.py, line 351, in collect
statsFunction()
  File /usr/share/vdsm/sampling.py, line 226, in __call__
retValue = self._function(*args, **kwargs)
  File /usr/share/vdsm/vm.py, line 513, in _highWrite
self._vm._dom.blockInfo(vmDrive.path, 0)
  File /usr/share/vdsm/vm.py, line 835, in f
ret = attr(*args, **kwargs)
  File
/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, line
76, in wrapper
ret = f(*args, **kwargs)
  File /usr/lib64/python2.6/site-packages/libvirt.py, line
1797, in blockInfo
if ret is None: raise libvirtError
('virDomainGetBlockInfo() failed', dom=self)
libvirtError: invalid argument: invalid path

/rhev/data-center/mnt/blockSD/f8ddd1d1-5266-493b-879b-f79c128751e2/images/b8da8541-9a0d-4c18-8aa8-50fc6225f18a/ff674bce-aa94-4b46-9f9d-d4182eab1e49
not assigned to domain






*From: *Koen Vanoppen vanoppen.k...@gmail.com
mailto:vanoppen.k...@gmail.com
*To: *users@ovirt.org mailto:users@ovirt.org, Meital
Bourvine mbour...@redhat.com mailto:mbour...@redhat.com
*Sent: *Monday, January 20, 2014 9:39:10 AM
*Subject: *Re: [Users] Disk error


vdsm-4.13.0-11.el6.x86_64
:-)



2014/1/20 Meital Bourvine mbour...@redhat.com
mailto:mbour...@redhat.com
mailto:mbour...@redhat.com mailto:mbour...@redhat.com


First of all, I opened a bug about 'Drive' object has no
attribute 'format':
https://bugzilla.redhat.com/show_bug.cgi?id=1055437

Please send me the output of `rpm -q vdsm` so I'll
update the
version in the bug.

Also, it's better to send the logs to the list (and
not only
to me), so more people will be able to help you debug it.

- Original Message -
 

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Dafna Ron

On 01/20/2014 10:38 AM, Leonid Natapov wrote:

1.hosted-engine --vm-start should start engine vm. There was no problem with it 
when I tested it.
2.hosted-engine --vm-start-paused was added for the case when something is 
wrong with engine vm and it can't start and requires user intervention. For 
example in case of kernel panic.
User can start engine vm in paused mode ,connect to it and try to fix the 
problem by booting in single user mode ,etc.
3.When the connectivity to shared storage is lost engine vm becomes paused. VM 
should be automatically unpaused after connectivity resumes (we introduced this 
feature in 3.3) but in case of NFS it could take quite time.so may be we should 
add something like --vm-resume in order to resume


Are we talking only on the hosted engine vm or all other vm's? if I have 
other vm's they will also stop, will they be auto started as well?

the engine vm manually.

Thanks,
Leonid.


- Original Message -
From: Andrew Lau and...@andrewklau.com
To: d...@redhat.com
Cc: Leonid Natapov lnata...@redhat.com, Yedidyah Bar David d...@redhat.com, 
users users@ovirt.org
Sent: Monday, January 20, 2014 12:28:15 PM
Subject: Re: [Users] Issues starting hosted engine VM

It was paused due to the connection loss to the NFS server, I would assume
once the connection is restored it could attempt to restore it? But I can
try dig up the vdsm logs if you want, they would only be a few hours old

I think having an option like --vm-resume would at least hide the reason of
having to dig into virsh and messing with authentication at the very least.

On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron d...@redhat.com wrote:


the question is what was the vm paused on... this can be found in the qemu
vm log.
if the vm is paused it will not be auto started - so I am not sure what
you expect to change? virsh requires authentication regardless to hosted
engine :)
Leonid, did you do any testing there?


On 01/20/2014 10:13 AM, Andrew Lau wrote:


I have opened this BZ 1055461 anyway just in case


On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau and...@andrewklau.commailto:
and...@andrewklau.com wrote:

 I was more interested in how the score process would be
 calculated, the vm-status option considered the VM in a bad state.

 I left it for a few minutes and nothing seemed to have changed, I
 think it relates to hosted engine as virsh requires
 authentication. Should I still open a bz?

 Cheers,
 Andrew.

 On Jan 20, 2014 7:48 PM, Dafna Ron d...@redhat.com
 mailto:d...@redhat.com wrote:

 I am not sure this is a hosted engine question as much as a
 qemu question.
 qemu-kvm will not support auto start of vm's after EIO because
 of remote possibility of corruption.

 On 01/20/2014 05:46 AM, Andrew Lau wrote:

 Hi,

 Quick question, in the scenario eg. the NFS server becomes
 unreachable and the hosted-engine goes into a paused
 state. Will other hosts attempt to bring it back up?
 Should there be a command eg.  hosted-engine --vm-resume ?

 When this happened, I manually forced it to resume using virsh


 On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David
 d...@redhat.com mailto:d...@redhat.com
 mailto:d...@redhat.com mailto:d...@redhat.com wrote:

 Thanks a lot for your efforts and the report!
 -- Didi

--
--

 *From: *Andrew Lau and...@andrewklau.com
 mailto:and...@andrewklau.com
 mailto:and...@andrewklau.com

 mailto:and...@andrewklau.com
 *To: *users users@ovirt.org
 mailto:users@ovirt.org mailto:users@ovirt.org

 mailto:users@ovirt.org
 *Sent: *Saturday, January 18, 2014 3:20:22 PM
 *Subject: *Re: [Users] Issues starting hosted
 engine VM


 I believe I found the issue and have reported it here
 https://bugzilla.redhat.com/show_bug.cgi?id=1055059

 On Sat, Jan 18, 2014 at 11:33 PM, Andrew Lau
 and...@andrewklau.com
 mailto:and...@andrewklau.com
 mailto:and...@andrewklau.com

 mailto:and...@andrewklau.com wrote:

 The interesting thing - trying it with the
 paused option
 vdsm seems to create the VM

 hosted-engine --vm-start-paused

 vdsm.log http://www.fpaste.org/69604/13900482/

 But I'm not sure how to then proceed to
 resume it.

 On Sat, Jan 18, 2014 at 10:23 PM, Andrew Lau
 and...@andrewklau.com
 mailto:and...@andrewklau.com

Re: [Users] Gluster command [Non interactive user] failed on server ..

2014-01-20 Thread Andrew Lau
Thanks for pointing that out - I'm surprised that wasn't considered a
dependency with the hosted-engine setup as it did have the dependencies for
glusterfs and glusterfs-fuse

Thanks,
Andrew


On Mon, Jan 20, 2014 at 9:41 PM, Kanagaraj kmayi...@redhat.com wrote:


 From the log org.apache.xmlrpc.XmlRpcException: type
 'exceptions.Exception':method glusterHostsList is not supported

 Looks like you don't have vdsm-gluster package installed on the host.

 Thanks,
 Kanagaraj


 On 01/20/2014 04:05 PM, Andrew Lau wrote:

  Hi,

  I'm seeing this weird error on my host which runs the hosted-engine, it
 only recently showed up and put the host into 'Non Operational' :
 Gluster command [Non interactive user] failed on server HV01.

  ovirt-engine.log
  http://www.fpaste.org/69949/90213863/

  Current running VMs continue to run. Has anyone seen this before?

  Thanks,
 Andrew


 ___
 Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users



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


Re: [Users] Making v2v easier?

2014-01-20 Thread Sander Grendelman
Is there a specification for the ovf/xml/directory structure in the
export domain we can use
to (semi)manually import an ovirt-compatible machine to an export domain?

On Mon, Jan 20, 2014 at 11:39 AM, Matthew Booth mbo...@redhat.com wrote:
 On 20/01/14 10:36, Itamar Heim wrote:
 On 01/20/2014 12:18 PM, Matthew Booth wrote:
 On 20/01/14 09:53, Richard W.M. Jones wrote:
 On Fri, Jan 17, 2014 at 05:06:13PM +0100, Sander Grendelman wrote:
 On Fri, Jan 17, 2014 at 4:19 PM, Itamar Heim ih...@redhat.com wrote:
 I see a lot of threads about v2v pains (mostly from ESX?)

 I'm interested to see if we can make this simpler/easier.
 hear hear!


 if you have experience with this, please describe the steps you are
 using
 (also the source platform),

 Sources:
 - Existing KVM (virt-manager/libvirt) platform
 - ESX
 - ova/ovf templates from several sources

 Methods:
 - KVM:
virt-v2v with libvirtxml option, works reasonably well, most issues
 are with windows guests where virt-v2v needs libguestfs-winsupport and
 virtio-win (RHEL only)
 - ESX:
virt-v2v which works reasonably well _if_ the right packages
 (libguestfs-winsupport virtio-win) are installed.
virt-v2v can be used directly from ESX/ESX host (configure .netrc
 first) but this is quite slow
another option is to export the VM as an OVA and then import it
 with virt-v2v
 - ova/ovf templates:
hit and miss with virt-v2v, especially if they contain something
 that is not a regular windows/linux guest.
Another option is to do a direct copy of the disks on a pre-created
 VM, clumsy.

 and how you would like to see this make simpler
 (I'm assuming that would start from somewhere in the webadmin
 probably).

 Webadmin would be nice, but better behaviour from existing tools
 would be
 a nice start too.

 For example: the flow with virt-v2v is
 1) Analyze source, look for disks
 2) Convert/copy disks to ovirt export domain
 3) Try to add virtio stuff to the copied disks on the export domain

 If step 3 fails ( which happens a LOT), the copied disks are removed.
 This is very frustrating if you just waited a couple of hours for a
 large
 VM (e.g. 200GB) to be copied :(

 Some kind of graceful abort/resume would be VERY welcome.

 The above basically come down to the fact that currently virt-v2v does
 the copy first and the v2v step second.  It was my understanding
 [Matt?] that guestconv is supposed to do the v2v step first followed
 by the copy, which should solve all of that.

 guestconv doesn't address this problem directly. We need smarter copying
 for that :/


 Another issue with virt-v2v is that it _always_ tries to add virtio
 drivers.  I have a virtual appliance that contains some kind of
 proprietary embedded OS: adding drivers will always fail, give me
 some option to override that and configure simple ide / e1000
 hardware for the VM

 guestconv *does* address that.

 I suspect in this case what you really should be doing is just copying
 the source disk image, without using virt-v2v at all.

 Matt


 is guestconv ready for adoption/testing instead of virt-v2v?

 No, it's not even functionally complete, yet. We're planning to get that
 sorted soon.

 Matt
 --
 Matthew Booth, RHCA, RHCSS
 Red Hat Engineering, Virtualisation Team

 GPG ID:  D33C3490
 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Node not connecting

2014-01-20 Thread Alon Bar-Lev
Hi,

/var/log/ovirt-enigne/engine.log please.
/var/log/ovirt-engine/host-deploy/*.log (relevant) please.

Thank you,
Alon

- Original Message -
 From: Nauman Abbas nauman.ab...@seecs.edu.pk
 To: users@ovirt.org
 Sent: Monday, January 20, 2014 11:59:00 AM
 Subject: [Users] Node not connecting
 
 Hello there
 
 Seem to be going in a problem again. I had installed oVirt node on my server
 and was running the engine on another machine. Now I had to change the
 engine machine since that was just a test PC so I got rid of the engine
 machine. Installed the engine on another machine and now i'm trying to add
 the node to it. It goes on all well until it reaches the 'termination' stage
 and then it gives an error Installation failed. Network error during
 communication with the host.
 
 PS
 SELinux/ebtables is off on both machines.
 
 A little help would be great.
 
 Regards
 
 Nauman Abbas
 Assistant System Administrator (LMS),
 Room No. A-207, SEECS,
 National University of Sciences  Technology,
 + 92 321 5359946
 
 ___
 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] VM Migration failed

2014-01-20 Thread Dafna Ron

I can explain the cause :)

when disk is first device, and the iso is unreachable the vm should not 
start (you can try it... create a new vm, give it an iso - deactivate 
the iso domain - try to start the vm - you will get an error in UI).


the vm configuration's boot sequence is a set one. it will not change if 
you eject the cd... so next time you try to run the vm it will still try 
to boot from the disk you ejected.


when you ran the vm, there is an xml file sent to libvirt and that is 
the vm configuration. even if you ejected the cd, the boot sequence in 
the xml still has the cd as first boot device. hence, when we try to 
re-create the vm in the target host, we will try to create the vm with 
the cd as first device - it does not exists anymore - we get an 
exception and fail migration.



On 01/20/2014 10:38 AM, Edgars M. wrote:
Ok, so I shut down VM, unchecked Attach CD, powered on VM and now 
migration succeeded. Go figure.


Thanks everyone for your help! I still dont know what is the cause of 
this issue, but at least I know how to fix it.


Edgars


On Mon, Jan 20, 2014 at 11:26 AM, Edgars M. edgars.maz...@gmail.com 
mailto:edgars.maz...@gmail.com wrote:


No, I did not that, but I did Eject under Change CD.

Edgars


On Mon, Jan 20, 2014 at 11:24 AM, Dafna Ron d...@redhat.com
mailto:d...@redhat.com wrote:

so if you selected it as first boot device, after you
installed did you shut down the vm and remove the vm from the
boot?


On 01/20/2014 10:21 AM, Edgars M. wrote:

Hi

I specified ISO image and chose CD-ROM as first boot device.

Edgars


On Mon, Jan 20, 2014 at 11:19 AM, Dafna Ron
d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com wrote:

when you booted the vm's for the first time, did you
specify the
ISO in vm's boot sequence or did you use run-once?


On 01/20/2014 09:53 AM, Edgars M. wrote:

Hi again

I tried to reproduce this issue and unfortunately
I couldn't.
So there must be something else, but I cannot
figure out what
is wrong, because it is happening only with some VMs.
Nonetheless I attached new log files to investigate.

And here is some more info:
ovirt-engine-setup-3.3.2-1.el6.noarch
ovirt-engine-webadmin-portal-3.3.2-1.el6.noarch
ovirt-host-deploy-java-1.1.2-1.el6.noarch
ovirt-engine-restapi-3.3.2-1.el6.noarch
ovirt-image-uploader-3.3.1-1.el6.noarch
ovirt-release-el6-10-1.noarch
ovirt-engine-userportal-3.3.2-1.el6.noarch
ovirt-engine-backend-3.3.2-1.el6.noarch
ovirt-engine-websocket-proxy-3.3.2-1.el6.noarch
ovirt-engine-dbscripts-3.3.2-1.el6.noarch
ovirt-log-collector-3.3.1-1.el6.noarch
ovirt-engine-sdk-python-3.3.0.8-1.el6.noarch
ovirt-engine-cli-3.3.0.6-1.el6.noarch
ovirt-engine-tools-3.3.2-1.el6.noarch
ovirt-iso-uploader-3.3.1-1.el6.noarch
ovirt-engine-lib-3.3.2-1.el6.noarch
ovirt-engine-3.3.2-1.el6.noarch
ovirt-host-deploy-1.1.2-1.el6.noarch

vdsm-xmlrpc-4.13.2-1.el6.noarch
vdsm-python-4.13.2-1.el6.x86_64
vdsm-python-cpopen-4.13.2-1.el6.x86_64
vdsm-4.13.2-1.el6.x86_64
vdsm-cli-4.13.2-1.el6.noarch

libvirt-lock-sanlock-0.10.2-29.el6_5.2.x86_64
libvirt-client-0.10.2-29.el6_5.2.x86_64
libvirt-python-0.10.2-29.el6_5.2.x86_64
libvirt-0.10.2-29.el6_5.2.x86_64

CentOS 6.5 x86_64 on both Engine and Nodes.

SELinux disabled everywhere (I know, I know).
There is no any snapshots for these VMs. These VMs
were
installed by booting from ISO image.
There is nothing in libvirtd.log files


BR
Edgars



On Sat, Jan 18, 2014 at 6:39 PM, Dafna Ron
d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com wrote:

sounds like this is the issue to me... Edgars
can you try to
confirm that? :)
Michal, was there a bug opened for this? I
think that
  

Re: [Users] Disk error

2014-01-20 Thread Dafna Ron
the disk ff674bce-aa94-4b46-9f9d-d4182eab1e49 does not exist in the 
domain - which is the master domain

My guess that it has to do with the failed migration.

can you run lvs and grep for ff674bce-aa94-4b46-9f9d-d4182eab1e49
lets see where this disk is...



On 01/20/2014 10:44 AM, Koen Vanoppen wrote:
[root@soyuz ~]# vdsClient -s 0 getStorageDomainInfo 
f8ddd1d1-5266-493b-879b-f79c128751e2

uuid = f8ddd1d1-5266-493b-879b-f79c128751e2
vguuid = i6QHH9-1fZR-HLcn-6Xuo-7jU7-66iu-iuzWfQ
lver = 13
state = OK
version = 3
role = Master
pool = ['5849b030-626e-47cb-ad90-3ce782d831b3']
spm_id = 1
type = ISCSI
class = Data
master_ver = 1
name = StoragePoolEva01

Thanx for the help!


2014/1/20 Dafna Ron d...@redhat.com mailto:d...@redhat.com

can you please run:

vdsClient -s 0 getStorageDomainInfo
f8ddd1d1-5266-493b-879b-f79c128751e2



On 01/20/2014 10:33 AM, Koen Vanoppen wrote:

[root@soyuz ~]# vdsClient -s 0 getStorageDomainsList
f3fd055b-2764-44ed-9d77-81bd58984842
94de241c-bf5c-4630-9af3-7e31b902ae77
f8ddd1d1-5266-493b-879b-f79c128751e2
50cf24a4-d1ef-4105-a9a5-b81d91339175
83b1867f-4aea-400e-9ce0-efbd5add4216

(soyuz=vdsmhost3)


2014/1/20 Dafna Ron d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com


let's try to sift through :)

can you run vdsClient -s 0 getStorageDomainsList?





On 01/20/2014 09:52 AM, Meital Bourvine wrote:

It seems that your setup is completely messed up. I
see the
following 3 errors all the time (I couldn't actually
find the
live storage migration error, since there are too many
errors):

Thread-118::ERROR::2014-01-20
07:59:17,066::sampling::355::vm.Vm::(collect)
vmId=`f8c6190c-b722-4fcd-af17-21572151fcef`::Stats
function
failed: AdvancedStatsFunction _highWrite at 0x27b41b8
Traceback (most recent call last):
  File /usr/share/vdsm/sampling.py, line 351, in collect
statsFunction()
  File /usr/share/vdsm/sampling.py, line 226, in
__call__
retValue = self._function(*args, **kwargs)
  File /usr/share/vdsm/vm.py, line 509, in _highWrite
if not vmDrive.blockDev or vmDrive.format != 'cow':
AttributeError: 'Drive' object has no attribute 'format'

PolicyEngine::DEBUG::2014-01-20
   
07:59:17,198::libvirtconnection::108::libvirtconnection::(wrapper)

Unknown libvirterror: ecode: 8 edom: 10 level: 2 message:
invalid argument: cannot set memory higher than max memory
PolicyEngine::ERROR::2014-01-20
07:59:17,199::vm::4359::vm.Vm::(reportError)
vmId=`ce626f90-41c4-4417-9e53-bf4066ad062d`::Set new
balloon
target failed
Traceback (most recent call last):
  File /usr/share/vdsm/vm.py, line 4371, in
setBalloonTarget
self._dom.setMemory(target)
  File /usr/share/vdsm/vm.py, line 835, in f
ret = attr(*args, **kwargs)
  File
   
/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, line

76, in wrapper
ret = f(*args, **kwargs)
  File
/usr/lib64/python2.6/site-packages/libvirt.py, line
1410, in setMemory
if ret == -1: raise libvirtError
('virDomainSetMemory()
failed', dom=self)
libvirtError: invalid argument: cannot set memory
higher than
max memory

Thread-51::ERROR::2014-01-20
07:59:22,109::sampling::355::vm.Vm::(collect)
vmId=`493128c0-aba9-4b38-bf18-2778b910917f`::Stats
function
failed: AdvancedStatsFunction _highWrite at 0x27b41b8
Traceback (most recent call last):
  File /usr/share/vdsm/sampling.py, line 351, in collect
statsFunction()
  File /usr/share/vdsm/sampling.py, line 226, in
__call__
retValue = self._function(*args, **kwargs)
  File /usr/share/vdsm/vm.py, line 513, in _highWrite
self._vm._dom.blockInfo(vmDrive.path, 0)
  File /usr/share/vdsm/vm.py, line 835, in f
ret = attr(*args, **kwargs)
  File
   
/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py, line

76, in wrapper
ret = f(*args, **kwargs)
  File

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Leonid Natapov
All vms. Check this PRD: https://bugzilla.redhat.com/show_bug.cgi?id=723055


- Original Message -
From: Dafna Ron d...@redhat.com
To: Leonid Natapov lnata...@redhat.com
Cc: Andrew Lau and...@andrewklau.com, Yedidyah Bar David 
d...@redhat.com, users users@ovirt.org
Sent: Monday, January 20, 2014 12:44:46 PM
Subject: Re: [Users] Issues starting hosted engine VM

On 01/20/2014 10:38 AM, Leonid Natapov wrote:
 1.hosted-engine --vm-start should start engine vm. There was no problem with 
 it when I tested it.
 2.hosted-engine --vm-start-paused was added for the case when something is 
 wrong with engine vm and it can't start and requires user intervention. For 
 example in case of kernel panic.
 User can start engine vm in paused mode ,connect to it and try to fix the 
 problem by booting in single user mode ,etc.
 3.When the connectivity to shared storage is lost engine vm becomes paused. 
 VM should be automatically unpaused after connectivity resumes (we introduced 
 this feature in 3.3) but in case of NFS it could take quite time.so may be we 
 should add something like --vm-resume in order to resume

Are we talking only on the hosted engine vm or all other vm's? if I have 
other vm's they will also stop, will they be auto started as well?
 the engine vm manually.

 Thanks,
 Leonid.


 - Original Message -
 From: Andrew Lau and...@andrewklau.com
 To: d...@redhat.com
 Cc: Leonid Natapov lnata...@redhat.com, Yedidyah Bar David 
 d...@redhat.com, users users@ovirt.org
 Sent: Monday, January 20, 2014 12:28:15 PM
 Subject: Re: [Users] Issues starting hosted engine VM

 It was paused due to the connection loss to the NFS server, I would assume
 once the connection is restored it could attempt to restore it? But I can
 try dig up the vdsm logs if you want, they would only be a few hours old

 I think having an option like --vm-resume would at least hide the reason of
 having to dig into virsh and messing with authentication at the very least.

 On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron d...@redhat.com wrote:

 the question is what was the vm paused on... this can be found in the qemu
 vm log.
 if the vm is paused it will not be auto started - so I am not sure what
 you expect to change? virsh requires authentication regardless to hosted
 engine :)
 Leonid, did you do any testing there?


 On 01/20/2014 10:13 AM, Andrew Lau wrote:

 I have opened this BZ 1055461 anyway just in case


 On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau and...@andrewklau.commailto:
 and...@andrewklau.com wrote:

  I was more interested in how the score process would be
  calculated, the vm-status option considered the VM in a bad state.

  I left it for a few minutes and nothing seemed to have changed, I
  think it relates to hosted engine as virsh requires
  authentication. Should I still open a bz?

  Cheers,
  Andrew.

  On Jan 20, 2014 7:48 PM, Dafna Ron d...@redhat.com
  mailto:d...@redhat.com wrote:

  I am not sure this is a hosted engine question as much as a
  qemu question.
  qemu-kvm will not support auto start of vm's after EIO because
  of remote possibility of corruption.

  On 01/20/2014 05:46 AM, Andrew Lau wrote:

  Hi,

  Quick question, in the scenario eg. the NFS server becomes
  unreachable and the hosted-engine goes into a paused
  state. Will other hosts attempt to bring it back up?
  Should there be a command eg.  hosted-engine --vm-resume ?

  When this happened, I manually forced it to resume using virsh


  On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David
  d...@redhat.com mailto:d...@redhat.com
  mailto:d...@redhat.com mailto:d...@redhat.com wrote:

  Thanks a lot for your efforts and the report!
  -- Didi

 --
 --

  *From: *Andrew Lau and...@andrewklau.com
  mailto:and...@andrewklau.com
  mailto:and...@andrewklau.com

  mailto:and...@andrewklau.com
  *To: *users users@ovirt.org
  mailto:users@ovirt.org mailto:users@ovirt.org

  mailto:users@ovirt.org
  *Sent: *Saturday, January 18, 2014 3:20:22 PM
  *Subject: *Re: [Users] Issues starting hosted
  engine VM


  I believe I found the issue and have reported it here
  https://bugzilla.redhat.com/show_bug.cgi?id=1055059

  On Sat, Jan 18, 2014 at 11:33 PM, Andrew Lau
  and...@andrewklau.com
  mailto:and...@andrewklau.com
  mailto:and...@andrewklau.com

  mailto:and...@andrewklau.com wrote:

  The interesting thing - trying it with the

Re: [Users] Disk error

2014-01-20 Thread Dafna Ron

you said that you shut down the vm after you tried migrating?
can you look at the vm in the UI and see if you have a snapshot created 
during the migration?

if so, can you try to delete just the snapshot?




On 01/20/2014 10:58 AM, Koen Vanoppen wrote:

[root@soyuz ~]# lvs | grep ff674bce-aa94-4b46-9f9d-d4182eab1e49
  Couldn't find device with uuid Y5m0SH-HbWl-8PNL-fGkk-oXNF-WyQk-Snhncm.
  ff674bce-aa94-4b46-9f9d-d4182eab1e49 
f8ddd1d1-5266-493b-879b-f79c128751e2 -wi-ao---  50,00g


Maybe it's already to another hypervisor or disk domain? If there is a 
*SAVE* way to remove these two disk, tell me. The data on it it's not 
THAT important.





2014/1/20 Dafna Ron d...@redhat.com mailto:d...@redhat.com

the disk ff674bce-aa94-4b46-9f9d-d4182eab1e49 does not exist in
the domain - which is the master domain
My guess that it has to do with the failed migration.

can you run lvs and grep for ff674bce-aa94-4b46-9f9d-d4182eab1e49
lets see where this disk is...




On 01/20/2014 10:44 AM, Koen Vanoppen wrote:

[root@soyuz ~]# vdsClient -s 0 getStorageDomainInfo
f8ddd1d1-5266-493b-879b-f79c128751e2
uuid = f8ddd1d1-5266-493b-879b-f79c128751e2
vguuid = i6QHH9-1fZR-HLcn-6Xuo-7jU7-66iu-iuzWfQ
lver = 13
state = OK
version = 3
role = Master
pool = ['5849b030-626e-47cb-ad90-3ce782d831b3']
spm_id = 1
type = ISCSI
class = Data
master_ver = 1
name = StoragePoolEva01

Thanx for the help!


2014/1/20 Dafna Ron d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com


can you please run:

vdsClient -s 0 getStorageDomainInfo
f8ddd1d1-5266-493b-879b-f79c128751e2



On 01/20/2014 10:33 AM, Koen Vanoppen wrote:

[root@soyuz ~]# vdsClient -s 0 getStorageDomainsList
f3fd055b-2764-44ed-9d77-81bd58984842
94de241c-bf5c-4630-9af3-7e31b902ae77
f8ddd1d1-5266-493b-879b-f79c128751e2
50cf24a4-d1ef-4105-a9a5-b81d91339175
83b1867f-4aea-400e-9ce0-efbd5add4216

(soyuz=vdsmhost3)


2014/1/20 Dafna Ron d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com



let's try to sift through :)

can you run vdsClient -s 0 getStorageDomainsList?





On 01/20/2014 09:52 AM, Meital Bourvine wrote:

It seems that your setup is completely messed
up. I
see the
following 3 errors all the time (I couldn't
actually
find the
live storage migration error, since there are
too many
errors):

Thread-118::ERROR::2014-01-20
07:59:17,066::sampling::355::vm.Vm::(collect)
vmId=`f8c6190c-b722-4fcd-af17-21572151fcef`::Stats
function
failed: AdvancedStatsFunction _highWrite at
0x27b41b8
Traceback (most recent call last):
  File /usr/share/vdsm/sampling.py, line
351, in collect
statsFunction()
  File /usr/share/vdsm/sampling.py, line 226, in
__call__
retValue = self._function(*args, **kwargs)
  File /usr/share/vdsm/vm.py, line 509, in
_highWrite
if not vmDrive.blockDev or vmDrive.format
!= 'cow':
AttributeError: 'Drive' object has no
attribute 'format'

PolicyEngine::DEBUG::2014-01-20
 
 07:59:17,198::libvirtconnection::108::libvirtconnection::(wrapper)

Unknown libvirterror: ecode: 8 edom: 10 level:
2 message:
invalid argument: cannot set memory higher
than max memory
PolicyEngine::ERROR::2014-01-20
07:59:17,199::vm::4359::vm.Vm::(reportError)
   
vmId=`ce626f90-41c4-4417-9e53-bf4066ad062d`::Set new

balloon
target failed
Traceback (most recent call last):
  File /usr/share/vdsm/vm.py, line 4371, in
setBalloonTarget
self._dom.setMemory(target)
  File /usr/share/vdsm/vm.py, line 835, in f
ret = attr(*args, **kwargs)
  File
  

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Dafna Ron

interesting... :) so this is now configurable...
what happens if qemu fails to start the vm (this happens sometimes - 
mostly on file type storage). do we have a re-try or a specific error 
telling the use that the activation failed and manual intervention is 
required?



On 01/20/2014 11:02 AM, Leonid Natapov wrote:

All vms. Check this PRD: https://bugzilla.redhat.com/show_bug.cgi?id=723055


- Original Message -
From: Dafna Ron d...@redhat.com
To: Leonid Natapov lnata...@redhat.com
Cc: Andrew Lau and...@andrewklau.com, Yedidyah Bar David d...@redhat.com, 
users users@ovirt.org
Sent: Monday, January 20, 2014 12:44:46 PM
Subject: Re: [Users] Issues starting hosted engine VM

On 01/20/2014 10:38 AM, Leonid Natapov wrote:

1.hosted-engine --vm-start should start engine vm. There was no problem with it 
when I tested it.
2.hosted-engine --vm-start-paused was added for the case when something is 
wrong with engine vm and it can't start and requires user intervention. For 
example in case of kernel panic.
User can start engine vm in paused mode ,connect to it and try to fix the 
problem by booting in single user mode ,etc.
3.When the connectivity to shared storage is lost engine vm becomes paused. VM 
should be automatically unpaused after connectivity resumes (we introduced this 
feature in 3.3) but in case of NFS it could take quite time.so may be we should 
add something like --vm-resume in order to resume

Are we talking only on the hosted engine vm or all other vm's? if I have
other vm's they will also stop, will they be auto started as well?

the engine vm manually.

Thanks,
Leonid.


- Original Message -
From: Andrew Lau and...@andrewklau.com
To: d...@redhat.com
Cc: Leonid Natapov lnata...@redhat.com, Yedidyah Bar David d...@redhat.com, 
users users@ovirt.org
Sent: Monday, January 20, 2014 12:28:15 PM
Subject: Re: [Users] Issues starting hosted engine VM

It was paused due to the connection loss to the NFS server, I would assume
once the connection is restored it could attempt to restore it? But I can
try dig up the vdsm logs if you want, they would only be a few hours old

I think having an option like --vm-resume would at least hide the reason of
having to dig into virsh and messing with authentication at the very least.

On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron d...@redhat.com wrote:


the question is what was the vm paused on... this can be found in the qemu
vm log.
if the vm is paused it will not be auto started - so I am not sure what
you expect to change? virsh requires authentication regardless to hosted
engine :)
Leonid, did you do any testing there?


On 01/20/2014 10:13 AM, Andrew Lau wrote:


I have opened this BZ 1055461 anyway just in case


On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau and...@andrewklau.commailto:
and...@andrewklau.com wrote:

  I was more interested in how the score process would be
  calculated, the vm-status option considered the VM in a bad state.

  I left it for a few minutes and nothing seemed to have changed, I
  think it relates to hosted engine as virsh requires
  authentication. Should I still open a bz?

  Cheers,
  Andrew.

  On Jan 20, 2014 7:48 PM, Dafna Ron d...@redhat.com
  mailto:d...@redhat.com wrote:

  I am not sure this is a hosted engine question as much as a
  qemu question.
  qemu-kvm will not support auto start of vm's after EIO because
  of remote possibility of corruption.

  On 01/20/2014 05:46 AM, Andrew Lau wrote:

  Hi,

  Quick question, in the scenario eg. the NFS server becomes
  unreachable and the hosted-engine goes into a paused
  state. Will other hosts attempt to bring it back up?
  Should there be a command eg.  hosted-engine --vm-resume ?

  When this happened, I manually forced it to resume using virsh


  On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David
  d...@redhat.com mailto:d...@redhat.com
  mailto:d...@redhat.com mailto:d...@redhat.com wrote:

  Thanks a lot for your efforts and the report!
  -- Didi

 --
--

  *From: *Andrew Lau and...@andrewklau.com
  mailto:and...@andrewklau.com
  mailto:and...@andrewklau.com

  mailto:and...@andrewklau.com
  *To: *users users@ovirt.org
  mailto:users@ovirt.org mailto:users@ovirt.org

  mailto:users@ovirt.org
  *Sent: *Saturday, January 18, 2014 3:20:22 PM
  *Subject: *Re: [Users] Issues starting hosted
  engine VM


  I believe I found the issue and have reported it here
  https://bugzilla.redhat.com/show_bug.cgi?id=1055059

  On Sat, Jan 18, 2014 

Re: [Users] Disk error

2014-01-20 Thread Dafna Ron

and what is the snapshot/disk status in the UI?



On 01/20/2014 11:08 AM, Koen Vanoppen wrote:

Error while executing action:

KV-virt-v2v:

  * Cannot remove Snapshot. Disk KV-virt-v2v_Disk2 is being moved or
copied.
  * Cannot remove Snapshot. Disk LargeTemplate_Disk1 is being moved or
copied.



2014/1/20 Koen Vanoppen vanoppen.k...@gmail.com 
mailto:vanoppen.k...@gmail.com


Yes, it did. Twice actually. But I already tried that one. This is
the result:

Error while executing action:

KV-virt-v2v:

  * Cannot remove Snapshot. Disk KV-virt-v2v_Disk2 is being moved
or copied.
  * Cannot remove Snapshot. Disk LargeTemplate_Disk1 is being
moved or copied.




2014/1/20 Dafna Ron d...@redhat.com mailto:d...@redhat.com

you said that you shut down the vm after you tried migrating?
can you look at the vm in the UI and see if you have a
snapshot created during the migration?
if so, can you try to delete just the snapshot?





On 01/20/2014 10:58 AM, Koen Vanoppen wrote:

[root@soyuz ~]# lvs | grep
ff674bce-aa94-4b46-9f9d-d4182eab1e49
  Couldn't find device with uuid
Y5m0SH-HbWl-8PNL-fGkk-oXNF-WyQk-Snhncm.
  ff674bce-aa94-4b46-9f9d-d4182eab1e49
f8ddd1d1-5266-493b-879b-f79c128751e2 -wi-ao---  50,00g

Maybe it's already to another hypervisor or disk domain?
If there is a *SAVE* way to remove these two disk, tell
me. The data on it it's not THAT important.




2014/1/20 Dafna Ron d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com


the disk ff674bce-aa94-4b46-9f9d-d4182eab1e49 does not
exist in
the domain - which is the master domain
My guess that it has to do with the failed migration.

can you run lvs and grep for
ff674bce-aa94-4b46-9f9d-d4182eab1e49
lets see where this disk is...




On 01/20/2014 10:44 AM, Koen Vanoppen wrote:

[root@soyuz ~]# vdsClient -s 0 getStorageDomainInfo
f8ddd1d1-5266-493b-879b-f79c128751e2
uuid = f8ddd1d1-5266-493b-879b-f79c128751e2
vguuid = i6QHH9-1fZR-HLcn-6Xuo-7jU7-66iu-iuzWfQ
lver = 13
state = OK
version = 3
role = Master
pool = ['5849b030-626e-47cb-ad90-3ce782d831b3']
spm_id = 1
type = ISCSI
class = Data
master_ver = 1
name = StoragePoolEva01

Thanx for the help!


2014/1/20 Dafna Ron d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com



can you please run:

vdsClient -s 0 getStorageDomainInfo
f8ddd1d1-5266-493b-879b-f79c128751e2



On 01/20/2014 10:33 AM, Koen Vanoppen wrote:

[root@soyuz ~]# vdsClient -s 0
getStorageDomainsList
f3fd055b-2764-44ed-9d77-81bd58984842
94de241c-bf5c-4630-9af3-7e31b902ae77
f8ddd1d1-5266-493b-879b-f79c128751e2
50cf24a4-d1ef-4105-a9a5-b81d91339175
83b1867f-4aea-400e-9ce0-efbd5add4216

(soyuz=vdsmhost3)


2014/1/20 Dafna Ron d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com



let's try to sift through :)

can you run vdsClient -s 0
getStorageDomainsList?





On 01/20/2014 09:52 AM, Meital
Bourvine wrote:

It seems that your setup is
completely messed
up. I
see the
following 3 errors all the time (I
couldn't
actually
find the
 

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Andrew Lau
Hi,

That bug seems to be private :(

I'm interested also to hear about this feature, as with 3.3.2 I had my
gluster vms go into paused state quite a few times and they actually
couldn't be resumed at all, they needed to be forced off and back on.

On Mon, Jan 20, 2014 at 10:13 PM, Dafna Ron d...@redhat.com wrote:

 interesting... :) so this is now configurable...
 what happens if qemu fails to start the vm (this happens sometimes -
 mostly on file type storage). do we have a re-try or a specific error
 telling the use that the activation failed and manual intervention is
 required?



 On 01/20/2014 11:02 AM, Leonid Natapov wrote:

 All vms. Check this PRD: https://bugzilla.redhat.com/
 show_bug.cgi?id=723055


 - Original Message -
 From: Dafna Ron d...@redhat.com
 To: Leonid Natapov lnata...@redhat.com
 Cc: Andrew Lau and...@andrewklau.com, Yedidyah Bar David 
 d...@redhat.com, users users@ovirt.org
 Sent: Monday, January 20, 2014 12:44:46 PM
 Subject: Re: [Users] Issues starting hosted engine VM

 On 01/20/2014 10:38 AM, Leonid Natapov wrote:

 1.hosted-engine --vm-start should start engine vm. There was no problem
 with it when I tested it.
 2.hosted-engine --vm-start-paused was added for the case when something
 is wrong with engine vm and it can't start and requires user intervention.
 For example in case of kernel panic.
 User can start engine vm in paused mode ,connect to it and try to fix
 the problem by booting in single user mode ,etc.
 3.When the connectivity to shared storage is lost engine vm becomes
 paused. VM should be automatically unpaused after connectivity resumes (we
 introduced this feature in 3.3) but in case of NFS it could take quite
 time.so may be we should add something like --vm-resume in order to resume

 Are we talking only on the hosted engine vm or all other vm's? if I have
 other vm's they will also stop, will they be auto started as well?

 the engine vm manually.

 Thanks,
 Leonid.


 - Original Message -
 From: Andrew Lau and...@andrewklau.com
 To: d...@redhat.com
 Cc: Leonid Natapov lnata...@redhat.com, Yedidyah Bar David 
 d...@redhat.com, users users@ovirt.org
 Sent: Monday, January 20, 2014 12:28:15 PM
 Subject: Re: [Users] Issues starting hosted engine VM

 It was paused due to the connection loss to the NFS server, I would
 assume
 once the connection is restored it could attempt to restore it? But I can
 try dig up the vdsm logs if you want, they would only be a few hours old

 I think having an option like --vm-resume would at least hide the reason
 of
 having to dig into virsh and messing with authentication at the very
 least.

 On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron d...@redhat.com wrote:

  the question is what was the vm paused on... this can be found in the
 qemu
 vm log.
 if the vm is paused it will not be auto started - so I am not sure what
 you expect to change? virsh requires authentication regardless to hosted
 engine :)
 Leonid, did you do any testing there?


 On 01/20/2014 10:13 AM, Andrew Lau wrote:

  I have opened this BZ 1055461 anyway just in case


 On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau and...@andrewklau.com
 mailto:
 and...@andrewklau.com wrote:

   I was more interested in how the score process would be
   calculated, the vm-status option considered the VM in a bad
 state.

   I left it for a few minutes and nothing seemed to have changed, I
   think it relates to hosted engine as virsh requires
   authentication. Should I still open a bz?

   Cheers,
   Andrew.

   On Jan 20, 2014 7:48 PM, Dafna Ron d...@redhat.com
   mailto:d...@redhat.com wrote:

   I am not sure this is a hosted engine question as much as a
   qemu question.
   qemu-kvm will not support auto start of vm's after EIO
 because
   of remote possibility of corruption.

   On 01/20/2014 05:46 AM, Andrew Lau wrote:

   Hi,

   Quick question, in the scenario eg. the NFS server
 becomes
   unreachable and the hosted-engine goes into a paused
   state. Will other hosts attempt to bring it back up?
   Should there be a command eg.  hosted-engine --vm-resume
 ?

   When this happened, I manually forced it to resume using
 virsh


   On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David
   d...@redhat.com mailto:d...@redhat.com
   mailto:d...@redhat.com mailto:d...@redhat.com
 wrote:

   Thanks a lot for your efforts and the report!
   -- Didi

  --
 --

   *From: *Andrew Lau and...@andrewklau.com
   mailto:and...@andrewklau.com
   mailto:and...@andrewklau.com

   mailto:and...@andrewklau.com
   *To: *users users@ovirt.org
   mailto:users@ovirt.org 

Re: [Users] Node not connecting

2014-01-20 Thread Fabian Deutsch
Am Montag, den 20.01.2014, 14:59 +0500 schrieb Nauman Abbas:
 Hello there
 
 
 Seem to be going in a problem again. I had installed oVirt node on my
 server and was running the engine on another machine. Now I had to
 change the engine machine since that was just a test PC so I got rid
 of the engine machine. Installed the engine on another machine and now
 i'm trying to add the node to it. It goes on all well until it reaches
 the 'termination' stage and then it gives an error Installation
 failed. Network error during communication with the host.

Hey Naumann,

what ovirt-node-iso version are you using?

- fabian

 
 PS
 SELinux/ebtables is off on both machines. 
 
 
 A little help would be great. 
 
 
 Regards 
 
 
 Nauman Abbas
 Assistant System Administrator (LMS),
 Room No. A-207, SEECS,
 National University of Sciences  Technology,
 + 92 321 5359946
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users



signature.asc
Description: This is a digitally signed message part
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Dafna Ron
Itamar, was this only applied for hosted engine or was this added or 
planed to be added to all engine setups?



On 01/20/2014 11:19 AM, Andrew Lau wrote:

Hi,

That bug seems to be private :(

I'm interested also to hear about this feature, as with 3.3.2 I had my 
gluster vms go into paused state quite a few times and they actually 
couldn't be resumed at all, they needed to be forced off and back on.


On Mon, Jan 20, 2014 at 10:13 PM, Dafna Ron d...@redhat.com 
mailto:d...@redhat.com wrote:


interesting... :) so this is now configurable...
what happens if qemu fails to start the vm (this happens sometimes
- mostly on file type storage). do we have a re-try or a specific
error telling the use that the activation failed and manual
intervention is required?



On 01/20/2014 11:02 AM, Leonid Natapov wrote:

All vms. Check this PRD:
https://bugzilla.redhat.com/show_bug.cgi?id=723055


- Original Message -
From: Dafna Ron d...@redhat.com mailto:d...@redhat.com
To: Leonid Natapov lnata...@redhat.com
mailto:lnata...@redhat.com
Cc: Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com, Yedidyah Bar David
d...@redhat.com mailto:d...@redhat.com, users
users@ovirt.org mailto:users@ovirt.org
Sent: Monday, January 20, 2014 12:44:46 PM
Subject: Re: [Users] Issues starting hosted engine VM

On 01/20/2014 10:38 AM, Leonid Natapov wrote:

1.hosted-engine --vm-start should start engine vm. There
was no problem with it when I tested it.
2.hosted-engine --vm-start-paused was added for the case
when something is wrong with engine vm and it can't start
and requires user intervention. For example in case of
kernel panic.
User can start engine vm in paused mode ,connect to it and
try to fix the problem by booting in single user mode ,etc.
3.When the connectivity to shared storage is lost engine
vm becomes paused. VM should be automatically unpaused
after connectivity resumes (we introduced this feature in
3.3) but in case of NFS it could take quite time.so may be
we should add something like --vm-resume in order to resume

Are we talking only on the hosted engine vm or all other vm's?
if I have
other vm's they will also stop, will they be auto started as well?

the engine vm manually.

Thanks,
Leonid.


- Original Message -
From: Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com
To: d...@redhat.com mailto:d...@redhat.com
Cc: Leonid Natapov lnata...@redhat.com
mailto:lnata...@redhat.com, Yedidyah Bar David
d...@redhat.com mailto:d...@redhat.com, users
users@ovirt.org mailto:users@ovirt.org
Sent: Monday, January 20, 2014 12:28:15 PM
Subject: Re: [Users] Issues starting hosted engine VM

It was paused due to the connection loss to the NFS
server, I would assume
once the connection is restored it could attempt to
restore it? But I can
try dig up the vdsm logs if you want, they would only be a
few hours old

I think having an option like --vm-resume would at least
hide the reason of
having to dig into virsh and messing with authentication
at the very least.

On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron
d...@redhat.com mailto:d...@redhat.com wrote:

the question is what was the vm paused on... this can
be found in the qemu
vm log.
if the vm is paused it will not be auto started - so I
am not sure what
you expect to change? virsh requires authentication
regardless to hosted
engine :)
Leonid, did you do any testing there?


On 01/20/2014 10:13 AM, Andrew Lau wrote:

I have opened this BZ 1055461 anyway just in case


On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau
and...@andrewklau.com
mailto:and...@andrewklau.commailto:
and...@andrewklau.com
mailto:and...@andrewklau.com wrote:

  I was more interested in how the score
process would be
  calculated, the vm-status option considered
the VM in a bad state.

  I left it for a few minutes and nothing
seemed to have changed, I
  think it relates to hosted engine as virsh
requires
  

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Itamar Heim

On 01/20/2014 01:22 PM, Dafna Ron wrote:

Itamar, was this only applied for hosted engine or was this added or
planed to be added to all engine setups?


resume paused VMs is not related to hosted engine




On 01/20/2014 11:19 AM, Andrew Lau wrote:

Hi,

That bug seems to be private :(

I'm interested also to hear about this feature, as with 3.3.2 I had my
gluster vms go into paused state quite a few times and they actually
couldn't be resumed at all, they needed to be forced off and back on.

On Mon, Jan 20, 2014 at 10:13 PM, Dafna Ron d...@redhat.com
mailto:d...@redhat.com wrote:

interesting... :) so this is now configurable...
what happens if qemu fails to start the vm (this happens sometimes
- mostly on file type storage). do we have a re-try or a specific
error telling the use that the activation failed and manual
intervention is required?



On 01/20/2014 11:02 AM, Leonid Natapov wrote:

All vms. Check this PRD:
https://bugzilla.redhat.com/show_bug.cgi?id=723055


- Original Message -
From: Dafna Ron d...@redhat.com mailto:d...@redhat.com
To: Leonid Natapov lnata...@redhat.com
mailto:lnata...@redhat.com
Cc: Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com, Yedidyah Bar David
d...@redhat.com mailto:d...@redhat.com, users
users@ovirt.org mailto:users@ovirt.org
Sent: Monday, January 20, 2014 12:44:46 PM
Subject: Re: [Users] Issues starting hosted engine VM

On 01/20/2014 10:38 AM, Leonid Natapov wrote:

1.hosted-engine --vm-start should start engine vm. There
was no problem with it when I tested it.
2.hosted-engine --vm-start-paused was added for the case
when something is wrong with engine vm and it can't start
and requires user intervention. For example in case of
kernel panic.
User can start engine vm in paused mode ,connect to it and
try to fix the problem by booting in single user mode ,etc.
3.When the connectivity to shared storage is lost engine
vm becomes paused. VM should be automatically unpaused
after connectivity resumes (we introduced this feature in
3.3) but in case of NFS it could take quite time.so may be
we should add something like --vm-resume in order to resume

Are we talking only on the hosted engine vm or all other vm's?
if I have
other vm's they will also stop, will they be auto started as
well?

the engine vm manually.

Thanks,
Leonid.


- Original Message -
From: Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com
To: d...@redhat.com mailto:d...@redhat.com
Cc: Leonid Natapov lnata...@redhat.com
mailto:lnata...@redhat.com, Yedidyah Bar David
d...@redhat.com mailto:d...@redhat.com, users
users@ovirt.org mailto:users@ovirt.org
Sent: Monday, January 20, 2014 12:28:15 PM
Subject: Re: [Users] Issues starting hosted engine VM

It was paused due to the connection loss to the NFS
server, I would assume
once the connection is restored it could attempt to
restore it? But I can
try dig up the vdsm logs if you want, they would only be a
few hours old

I think having an option like --vm-resume would at least
hide the reason of
having to dig into virsh and messing with authentication
at the very least.

On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron
d...@redhat.com mailto:d...@redhat.com wrote:

the question is what was the vm paused on... this can
be found in the qemu
vm log.
if the vm is paused it will not be auto started - so I
am not sure what
you expect to change? virsh requires authentication
regardless to hosted
engine :)
Leonid, did you do any testing there?


On 01/20/2014 10:13 AM, Andrew Lau wrote:

I have opened this BZ 1055461 anyway just in case


On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau
and...@andrewklau.com
mailto:and...@andrewklau.commailto:
and...@andrewklau.com
mailto:and...@andrewklau.com wrote:

  I was more interested in how the score
process would be
  calculated, the vm-status option considered
the VM in a bad state.

  I left it for a few minutes and nothing
seemed to have changed, I
  think it relates 

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Dafna Ron
so, is in 3.3, should th vm's be auto resumed after a failure? can this 
be configured somehow?



On 01/20/2014 11:23 AM, Itamar Heim wrote:

On 01/20/2014 01:22 PM, Dafna Ron wrote:

Itamar, was this only applied for hosted engine or was this added or
planed to be added to all engine setups?


resume paused VMs is not related to hosted engine




On 01/20/2014 11:19 AM, Andrew Lau wrote:

Hi,

That bug seems to be private :(

I'm interested also to hear about this feature, as with 3.3.2 I had my
gluster vms go into paused state quite a few times and they actually
couldn't be resumed at all, they needed to be forced off and back on.

On Mon, Jan 20, 2014 at 10:13 PM, Dafna Ron d...@redhat.com
mailto:d...@redhat.com wrote:

interesting... :) so this is now configurable...
what happens if qemu fails to start the vm (this happens sometimes
- mostly on file type storage). do we have a re-try or a specific
error telling the use that the activation failed and manual
intervention is required?



On 01/20/2014 11:02 AM, Leonid Natapov wrote:

All vms. Check this PRD:
https://bugzilla.redhat.com/show_bug.cgi?id=723055


- Original Message -
From: Dafna Ron d...@redhat.com mailto:d...@redhat.com
To: Leonid Natapov lnata...@redhat.com
mailto:lnata...@redhat.com
Cc: Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com, Yedidyah Bar David
d...@redhat.com mailto:d...@redhat.com, users
users@ovirt.org mailto:users@ovirt.org
Sent: Monday, January 20, 2014 12:44:46 PM
Subject: Re: [Users] Issues starting hosted engine VM

On 01/20/2014 10:38 AM, Leonid Natapov wrote:

1.hosted-engine --vm-start should start engine vm. There
was no problem with it when I tested it.
2.hosted-engine --vm-start-paused was added for the case
when something is wrong with engine vm and it can't start
and requires user intervention. For example in case of
kernel panic.
User can start engine vm in paused mode ,connect to it and
try to fix the problem by booting in single user mode ,etc.
3.When the connectivity to shared storage is lost engine
vm becomes paused. VM should be automatically unpaused
after connectivity resumes (we introduced this feature in
3.3) but in case of NFS it could take quite time.so may be
we should add something like --vm-resume in order to resume

Are we talking only on the hosted engine vm or all other vm's?
if I have
other vm's they will also stop, will they be auto started as
well?

the engine vm manually.

Thanks,
Leonid.


- Original Message -
From: Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com
To: d...@redhat.com mailto:d...@redhat.com
Cc: Leonid Natapov lnata...@redhat.com
mailto:lnata...@redhat.com, Yedidyah Bar David
d...@redhat.com mailto:d...@redhat.com, users
users@ovirt.org mailto:users@ovirt.org
Sent: Monday, January 20, 2014 12:28:15 PM
Subject: Re: [Users] Issues starting hosted engine VM

It was paused due to the connection loss to the NFS
server, I would assume
once the connection is restored it could attempt to
restore it? But I can
try dig up the vdsm logs if you want, they would only be a
few hours old

I think having an option like --vm-resume would at least
hide the reason of
having to dig into virsh and messing with authentication
at the very least.

On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron
d...@redhat.com mailto:d...@redhat.com wrote:

the question is what was the vm paused on... this can
be found in the qemu
vm log.
if the vm is paused it will not be auto started - so I
am not sure what
you expect to change? virsh requires authentication
regardless to hosted
engine :)
Leonid, did you do any testing there?


On 01/20/2014 10:13 AM, Andrew Lau wrote:

I have opened this BZ 1055461 anyway just in case


On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau
and...@andrewklau.com
mailto:and...@andrewklau.commailto:
and...@andrewklau.com
mailto:and...@andrewklau.com wrote:

  I was more interested in how the score
process would be
  calculated, the vm-status option considered
the VM in a bad state.

  I left it for a few minutes 

Re: [Users] How to Modify Network with Hosted Engine

2014-01-20 Thread Doron Fediuck


- Original Message -
 From: Andrew Lau and...@andrewklau.com
 To: Doron Fediuck dfedi...@redhat.com
 Cc: Mike Kolesnik mkole...@redhat.com, users users@ovirt.org
 Sent: Monday, January 20, 2014 12:05:01 PM
 Subject: Re: [Users] How to Modify Network with Hosted Engine
 
 Sure - BZ 1055454
 
Much appreciated!


 
 On Mon, Jan 20, 2014 at 7:17 PM, Doron Fediuck dfedi...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Mike Kolesnik mkole...@redhat.com
   To: Andrew Lau and...@andrewklau.com
   Cc: users users@ovirt.org
   Sent: Monday, January 20, 2014 7:49:27 AM
   Subject: Re: [Users] How to Modify Network with Hosted Engine
  
  
  
  
  
  
   My mistake, it seems I'm able to modify other networks but trying to
  modify
   ovirtmgmt or having an unsync'd ovirtmgmt will prevent any changes.
   Well the VDSM complains because the ovirtmgmt is used by oVirt engine
  itself
   and it doesn't want to change it under the engine's feet.
  
  
  
  
   I manually modified ovirtmgmt in the ifcfg file and just restarted the
  engine
   service instead.
   Yes that would probably work fine, but for hosted engine it seems to me
  like
   a nuisance to have to do this manually and would expect VDSM to better
   handle it.
   Perhaps it's worth opening a bug to VDSM with the log that you have from
  the
   host?
  
 
  Andrew, can you open another bug for hosted-engine here?
 
  Thanks,
  Doron
 
  
  
   On Mon, Jan 20, 2014 at 12:09 AM, Andrew Lau  and...@andrewklau.com 
  wrote:
  
  
  
  
   On Sun, Jan 19, 2014 at 11:51 PM, Mike Kolesnik  mkole...@redhat.com 
   wrote:
  
  
  
  
  
  
  
  
  
   Hi,
  
   Now that I finally stepped through and have a working hosted engine setup
   (after opening numerous BZs)..
  
   How do I modify network configuration (eg. assign new VLANs to hosts),
  when I
   attempt to modify a network it gives the error:
   Which network are you talking about?
  
   And hjow are you trying to modify it?
  
   eg. I want to add another VLAN or modify the MTU on ovirtmgmt
  
   When I try to modify it through the engine I get that error.
  
  
  
  
  
  
  
   Error while executing action Setup Networks: Network is currently being
  used
  
   Is there a recommended way to set up these extra networks, or must all of
   these be not managed by the engine?
  
   Thanks,
   Andrew
  
   ___
   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] VM Migration failed

2014-01-20 Thread Dafna Ron

agreed :)
Meital, can you perhaps open a bug for a clear error message for this?

Thanks,
Dafna


On 01/20/2014 11:28 AM, Edgars M. wrote:
Thanks for explanation. Better, more descriptive UI error message 
would save our time :)


Edgars


On Mon, Jan 20, 2014 at 11:53 AM, Dafna Ron d...@redhat.com 
mailto:d...@redhat.com wrote:


I can explain the cause :)

when disk is first device, and the iso is unreachable the vm
should not start (you can try it... create a new vm, give it an
iso - deactivate the iso domain - try to start the vm - you
will get an error in UI).

the vm configuration's boot sequence is a set one. it will not
change if you eject the cd... so next time you try to run the vm
it will still try to boot from the disk you ejected.

when you ran the vm, there is an xml file sent to libvirt and that
is the vm configuration. even if you ejected the cd, the boot
sequence in the xml still has the cd as first boot device. hence,
when we try to re-create the vm in the target host, we will try to
create the vm with the cd as first device - it does not exists
anymore - we get an exception and fail migration.



On 01/20/2014 10:38 AM, Edgars M. wrote:

Ok, so I shut down VM, unchecked Attach CD, powered on VM and
now migration succeeded. Go figure.

Thanks everyone for your help! I still dont know what is the
cause of this issue, but at least I know how to fix it.

Edgars


On Mon, Jan 20, 2014 at 11:26 AM, Edgars M.
edgars.maz...@gmail.com mailto:edgars.maz...@gmail.com
mailto:edgars.maz...@gmail.com
mailto:edgars.maz...@gmail.com wrote:

No, I did not that, but I did Eject under Change CD.

Edgars


On Mon, Jan 20, 2014 at 11:24 AM, Dafna Ron
d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com wrote:

so if you selected it as first boot device, after you
installed did you shut down the vm and remove the vm
from the
boot?


On 01/20/2014 10:21 AM, Edgars M. wrote:

Hi

I specified ISO image and chose CD-ROM as first
boot device.

Edgars


On Mon, Jan 20, 2014 at 11:19 AM, Dafna Ron
d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com wrote:

when you booted the vm's for the first time,
did you
specify the
ISO in vm's boot sequence or did you use run-once?


On 01/20/2014 09:53 AM, Edgars M. wrote:

Hi again

I tried to reproduce this issue and
unfortunately
I couldn't.
So there must be something else, but I cannot
figure out what
is wrong, because it is happening only
with some VMs.
Nonetheless I attached new log files to
investigate.

And here is some more info:
ovirt-engine-setup-3.3.2-1.el6.noarch
   
ovirt-engine-webadmin-portal-3.3.2-1.el6.noarch

ovirt-host-deploy-java-1.1.2-1.el6.noarch
ovirt-engine-restapi-3.3.2-1.el6.noarch
ovirt-image-uploader-3.3.1-1.el6.noarch
ovirt-release-el6-10-1.noarch
ovirt-engine-userportal-3.3.2-1.el6.noarch
ovirt-engine-backend-3.3.2-1.el6.noarch
   
ovirt-engine-websocket-proxy-3.3.2-1.el6.noarch

ovirt-engine-dbscripts-3.3.2-1.el6.noarch
ovirt-log-collector-3.3.1-1.el6.noarch
ovirt-engine-sdk-python-3.3.0.8-1.el6.noarch
ovirt-engine-cli-3.3.0.6-1.el6.noarch
ovirt-engine-tools-3.3.2-1.el6.noarch
ovirt-iso-uploader-3.3.1-1.el6.noarch
ovirt-engine-lib-3.3.2-1.el6.noarch
ovirt-engine-3.3.2-1.el6.noarch
ovirt-host-deploy-1.1.2-1.el6.noarch

vdsm-xmlrpc-4.13.2-1.el6.noarch
vdsm-python-4.13.2-1.el6.x86_64
vdsm-python-cpopen-4.13.2-1.el6.x86_64
vdsm-4.13.2-1.el6.x86_64
vdsm-cli-4.13.2-1.el6.noarch


Re: [Users] Disk error

2014-01-20 Thread Dafna Ron
since the error suggests that the disk is locked, and UI is reporting 
that it's not, it seems that the issue is with some table in the db 
which still has the disk marked as locked while the disk status is taken 
from a different table.


Allon, any idea what table this can be?



On 01/20/2014 11:21 AM, Koen Vanoppen wrote:

Status ok...


2014/1/20 Dafna Ron d...@redhat.com mailto:d...@redhat.com

and what is the snapshot/disk status in the UI?




On 01/20/2014 11:08 AM, Koen Vanoppen wrote:

Error while executing action:

KV-virt-v2v:

  * Cannot remove Snapshot. Disk KV-virt-v2v_Disk2 is being
moved or
copied.
  * Cannot remove Snapshot. Disk LargeTemplate_Disk1 is being
moved or
copied.



2014/1/20 Koen Vanoppen vanoppen.k...@gmail.com
mailto:vanoppen.k...@gmail.com
mailto:vanoppen.k...@gmail.com
mailto:vanoppen.k...@gmail.com


Yes, it did. Twice actually. But I already tried that one.
This is
the result:

Error while executing action:

KV-virt-v2v:

  * Cannot remove Snapshot. Disk KV-virt-v2v_Disk2 is
being moved
or copied.
  * Cannot remove Snapshot. Disk LargeTemplate_Disk1 is being
moved or copied.




2014/1/20 Dafna Ron d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com


you said that you shut down the vm after you tried
migrating?
can you look at the vm in the UI and see if you have a
snapshot created during the migration?
if so, can you try to delete just the snapshot?





On 01/20/2014 10:58 AM, Koen Vanoppen wrote:

[root@soyuz ~]# lvs | grep
ff674bce-aa94-4b46-9f9d-d4182eab1e49
  Couldn't find device with uuid
Y5m0SH-HbWl-8PNL-fGkk-oXNF-WyQk-Snhncm.
  ff674bce-aa94-4b46-9f9d-d4182eab1e49
f8ddd1d1-5266-493b-879b-f79c128751e2 -wi-ao---  50,00g

Maybe it's already to another hypervisor or disk
domain?
If there is a *SAVE* way to remove these two disk,
tell
me. The data on it it's not THAT important.




2014/1/20 Dafna Ron d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com

mailto:d...@redhat.com mailto:d...@redhat.com


the disk ff674bce-aa94-4b46-9f9d-d4182eab1e49
does not
exist in
the domain - which is the master domain
My guess that it has to do with the failed
migration.

can you run lvs and grep for
ff674bce-aa94-4b46-9f9d-d4182eab1e49
lets see where this disk is...




On 01/20/2014 10:44 AM, Koen Vanoppen wrote:

[root@soyuz ~]# vdsClient -s 0
getStorageDomainInfo
f8ddd1d1-5266-493b-879b-f79c128751e2
uuid =
f8ddd1d1-5266-493b-879b-f79c128751e2
vguuid =
i6QHH9-1fZR-HLcn-6Xuo-7jU7-66iu-iuzWfQ
lver = 13
state = OK
version = 3
role = Master
pool =
['5849b030-626e-47cb-ad90-3ce782d831b3']
spm_id = 1
type = ISCSI
class = Data
master_ver = 1
name = StoragePoolEva01

Thanx for the help!


2014/1/20 Dafna Ron d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com



can you please run:

vdsClient -s 0 getStorageDomainInfo
f8ddd1d1-5266-493b-879b-f79c128751e2



On 01/20/2014 10:33 AM, Koen Vanoppen
wrote:

[root@soyuz ~]# vdsClient -s 0

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Leonid Natapov
Auto resume depends on domain monitoring (failed domain coming back up causes 
VMs to be unpaused). 
VM wouldn't be resumed if the domain monitoring for this domain stopped for 
some reason.
I don't think we have some kind of error or event saying to user something like 
vm has failed to resume automatically,please resume it manually.


- Original Message -
From: Dafna Ron d...@redhat.com
To: Leonid Natapov lnata...@redhat.com
Cc: Andrew Lau and...@andrewklau.com, Yedidyah Bar David 
d...@redhat.com, users users@ovirt.org
Sent: Monday, January 20, 2014 1:13:46 PM
Subject: Re: [Users] Issues starting hosted engine VM

interesting... :) so this is now configurable...
what happens if qemu fails to start the vm (this happens sometimes - 
mostly on file type storage). do we have a re-try or a specific error 
telling the use that the activation failed and manual intervention is 
required?


On 01/20/2014 11:02 AM, Leonid Natapov wrote:
 All vms. Check this PRD: https://bugzilla.redhat.com/show_bug.cgi?id=723055


 - Original Message -
 From: Dafna Ron d...@redhat.com
 To: Leonid Natapov lnata...@redhat.com
 Cc: Andrew Lau and...@andrewklau.com, Yedidyah Bar David 
 d...@redhat.com, users users@ovirt.org
 Sent: Monday, January 20, 2014 12:44:46 PM
 Subject: Re: [Users] Issues starting hosted engine VM

 On 01/20/2014 10:38 AM, Leonid Natapov wrote:
 1.hosted-engine --vm-start should start engine vm. There was no problem with 
 it when I tested it.
 2.hosted-engine --vm-start-paused was added for the case when something is 
 wrong with engine vm and it can't start and requires user intervention. For 
 example in case of kernel panic.
 User can start engine vm in paused mode ,connect to it and try to fix the 
 problem by booting in single user mode ,etc.
 3.When the connectivity to shared storage is lost engine vm becomes paused. 
 VM should be automatically unpaused after connectivity resumes (we 
 introduced this feature in 3.3) but in case of NFS it could take quite 
 time.so may be we should add something like --vm-resume in order to resume
 Are we talking only on the hosted engine vm or all other vm's? if I have
 other vm's they will also stop, will they be auto started as well?
 the engine vm manually.

 Thanks,
 Leonid.


 - Original Message -
 From: Andrew Lau and...@andrewklau.com
 To: d...@redhat.com
 Cc: Leonid Natapov lnata...@redhat.com, Yedidyah Bar David 
 d...@redhat.com, users users@ovirt.org
 Sent: Monday, January 20, 2014 12:28:15 PM
 Subject: Re: [Users] Issues starting hosted engine VM

 It was paused due to the connection loss to the NFS server, I would assume
 once the connection is restored it could attempt to restore it? But I can
 try dig up the vdsm logs if you want, they would only be a few hours old

 I think having an option like --vm-resume would at least hide the reason of
 having to dig into virsh and messing with authentication at the very least.

 On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron d...@redhat.com wrote:

 the question is what was the vm paused on... this can be found in the qemu
 vm log.
 if the vm is paused it will not be auto started - so I am not sure what
 you expect to change? virsh requires authentication regardless to hosted
 engine :)
 Leonid, did you do any testing there?


 On 01/20/2014 10:13 AM, Andrew Lau wrote:

 I have opened this BZ 1055461 anyway just in case


 On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau and...@andrewklau.commailto:
 and...@andrewklau.com wrote:

   I was more interested in how the score process would be
   calculated, the vm-status option considered the VM in a bad state.

   I left it for a few minutes and nothing seemed to have changed, I
   think it relates to hosted engine as virsh requires
   authentication. Should I still open a bz?

   Cheers,
   Andrew.

   On Jan 20, 2014 7:48 PM, Dafna Ron d...@redhat.com
   mailto:d...@redhat.com wrote:

   I am not sure this is a hosted engine question as much as a
   qemu question.
   qemu-kvm will not support auto start of vm's after EIO because
   of remote possibility of corruption.

   On 01/20/2014 05:46 AM, Andrew Lau wrote:

   Hi,

   Quick question, in the scenario eg. the NFS server becomes
   unreachable and the hosted-engine goes into a paused
   state. Will other hosts attempt to bring it back up?
   Should there be a command eg.  hosted-engine --vm-resume ?

   When this happened, I manually forced it to resume using 
 virsh


   On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David
   d...@redhat.com mailto:d...@redhat.com
   mailto:d...@redhat.com mailto:d...@redhat.com wrote:

   Thanks a lot for your efforts and the report!
   -- Didi

  --
 

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Itamar Heim

On 01/20/2014 10:48 AM, Dafna Ron wrote:

I am not sure this is a hosted engine question as much as a qemu question.
qemu-kvm will not support auto start of vm's after EIO because of remote
possibility of corruption.


only if live migration is involved



On 01/20/2014 05:46 AM, Andrew Lau wrote:

Hi,

Quick question, in the scenario eg. the NFS server becomes unreachable
and the hosted-engine goes into a paused state. Will other hosts
attempt to bring it back up? Should there be a command eg.
 hosted-engine --vm-resume ?

When this happened, I manually forced it to resume using virsh


On Sun, Jan 19, 2014 at 7:21 PM, Yedidyah Bar David d...@redhat.com
mailto:d...@redhat.com wrote:

Thanks a lot for your efforts and the report!
-- Didi




*From: *Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com
*To: *users users@ovirt.org mailto:users@ovirt.org
*Sent: *Saturday, January 18, 2014 3:20:22 PM
*Subject: *Re: [Users] Issues starting hosted engine VM


I believe I found the issue and have reported it here
https://bugzilla.redhat.com/show_bug.cgi?id=1055059

On Sat, Jan 18, 2014 at 11:33 PM, Andrew Lau
and...@andrewklau.com mailto:and...@andrewklau.com wrote:

The interesting thing - trying it with the paused option
vdsm seems to create the VM

hosted-engine --vm-start-paused

vdsm.log http://www.fpaste.org/69604/13900482/

But I'm not sure how to then proceed to resume it.

On Sat, Jan 18, 2014 at 10:23 PM, Andrew Lau
and...@andrewklau.com mailto:and...@andrewklau.com wrote:

Hi,

With the great help from sbonazzo, I managed to step
past the initial bug with the hosted-engine-setup but
appear to have run into another show stopper.

I ran through the install process successfully up to
the stage where it completed and the engine VM was to
be shutdown. (The engine has already been installed on
the VM and the host has been connected to the engine).

The issue starts here that the host finds itself not
able to start the VM up again.

VDSM Logs: http://www.fpaste.org/69592/00427141/
ovirt-hosted-engine-ha agent.log
http://www.fpaste.org/69595/43609139/

It seems to keep failing to start the VM.. when I
restart the agent I can see the score drop to 0 after
3 boot attempts.  The interesting thing seems to be in
the VDSM Logs 'Virtual machine does not exist',
'code': 1}}

I'm not sure where else to look. Suggestions?

Cheers,

Andrew




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




-- 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] Issues starting hosted engine VM

2014-01-20 Thread Itamar Heim

On 01/20/2014 01:19 PM, Andrew Lau wrote:

Hi,

That bug seems to be private :(

I'm interested also to hear about this feature, as with 3.3.2 I had my
gluster vms go into paused state quite a few times and they actually
couldn't be resumed at all, they needed to be forced off and back on.


did the storage domain go back to up and they remained down?



On Mon, Jan 20, 2014 at 10:13 PM, Dafna Ron d...@redhat.com
mailto:d...@redhat.com wrote:

interesting... :) so this is now configurable...
what happens if qemu fails to start the vm (this happens sometimes -
mostly on file type storage). do we have a re-try or a specific
error telling the use that the activation failed and manual
intervention is required?



On 01/20/2014 11:02 AM, Leonid Natapov wrote:

All vms. Check this PRD:
https://bugzilla.redhat.com/__show_bug.cgi?id=723055
https://bugzilla.redhat.com/show_bug.cgi?id=723055


- Original Message -
From: Dafna Ron d...@redhat.com mailto:d...@redhat.com
To: Leonid Natapov lnata...@redhat.com
mailto:lnata...@redhat.com
Cc: Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com, Yedidyah Bar David
d...@redhat.com mailto:d...@redhat.com, users
users@ovirt.org mailto:users@ovirt.org
Sent: Monday, January 20, 2014 12:44:46 PM
Subject: Re: [Users] Issues starting hosted engine VM

On 01/20/2014 10:38 AM, Leonid Natapov wrote:

1.hosted-engine --vm-start should start engine vm. There was
no problem with it when I tested it.
2.hosted-engine --vm-start-paused was added for the case
when something is wrong with engine vm and it can't start
and requires user intervention. For example in case of
kernel panic.
User can start engine vm in paused mode ,connect to it and
try to fix the problem by booting in single user mode ,etc.
3.When the connectivity to shared storage is lost engine vm
becomes paused. VM should be automatically unpaused after
connectivity resumes (we introduced this feature in 3.3) but
in case of NFS it could take quite time.so may be we should
add something like --vm-resume in order to resume

Are we talking only on the hosted engine vm or all other vm's?
if I have
other vm's they will also stop, will they be auto started as well?

the engine vm manually.

Thanks,
Leonid.


- Original Message -
From: Andrew Lau and...@andrewklau.com
mailto:and...@andrewklau.com
To: d...@redhat.com mailto:d...@redhat.com
Cc: Leonid Natapov lnata...@redhat.com
mailto:lnata...@redhat.com, Yedidyah Bar David
d...@redhat.com mailto:d...@redhat.com, users
users@ovirt.org mailto:users@ovirt.org
Sent: Monday, January 20, 2014 12:28:15 PM
Subject: Re: [Users] Issues starting hosted engine VM

It was paused due to the connection loss to the NFS server,
I would assume
once the connection is restored it could attempt to restore
it? But I can
try dig up the vdsm logs if you want, they would only be a
few hours old

I think having an option like --vm-resume would at least
hide the reason of
having to dig into virsh and messing with authentication at
the very least.

On Mon, Jan 20, 2014 at 9:23 PM, Dafna Ron d...@redhat.com
mailto:d...@redhat.com wrote:

the question is what was the vm paused on... this can be
found in the qemu
vm log.
if the vm is paused it will not be auto started - so I
am not sure what
you expect to change? virsh requires authentication
regardless to hosted
engine :)
Leonid, did you do any testing there?


On 01/20/2014 10:13 AM, Andrew Lau wrote:

I have opened this BZ 1055461 anyway just in case


On Mon, Jan 20, 2014 at 8:33 PM, Andrew Lau
and...@andrewklau.com
mailto:and...@andrewklau.commailto:
and...@andrewklau.com
mailto:and...@andrewklau.com wrote:

   I was more interested in how the score
process would be
   calculated, the vm-status option considered
the VM in a bad state.

   I left it for a few minutes and nothing
seemed to have changed, I
   think it relates to hosted engine as virsh
requires
 

Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Andrew Lau
On Mon, Jan 20, 2014 at 11:19 PM, Itamar Heim ih...@redhat.com wrote:

 On 01/20/2014 01:19 PM, Andrew Lau wrote:

 Hi,

 That bug seems to be private :(

 I'm interested also to hear about this feature, as with 3.3.2 I had my
 gluster vms go into paused state quite a few times and they actually
 couldn't be resumed at all, they needed to be forced off and back on.


 did the storage domain go back to up and they remained down?

 Yup, the storage domain went down and when it came back up the VMs
remained paused.


 On Mon, Jan 20, 2014 at 10:13 PM, Dafna Ron d...@redhat.com
 mailto:d...@redhat.com wrote:

 interesting... :) so this is now configurable...
 what happens if qemu fails to start the vm (this happens sometimes -
 mostly on file type storage). do we have a re-try or a specific
 error telling the use that the activation failed and manual
 intervention is required?


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


Re: [Users] Issues starting hosted engine VM

2014-01-20 Thread Itamar Heim

On 01/20/2014 02:27 PM, Andrew Lau wrote:

On Mon, Jan 20, 2014 at 11:19 PM, Itamar Heim ih...@redhat.com
mailto:ih...@redhat.comwrote:

On 01/20/2014 01:19 PM, Andrew Lau wrote:

Hi,

That bug seems to be private :(

I'm interested also to hear about this feature, as with 3.3.2 I
had my
gluster vms go into paused state quite a few times and they actually
couldn't be resumed at all, they needed to be forced off and
back on.


did the storage domain go back to up and they remained down?

Yup, the storage domain went down and when it came back up the VMs
remained paused.


please open a bug with repro steps in that case and attach logs. thanks




On Mon, Jan 20, 2014 at 10:13 PM, Dafna Ron d...@redhat.com
mailto:d...@redhat.com
mailto:d...@redhat.com mailto:d...@redhat.com wrote:

 interesting... :) so this is now configurable...
 what happens if qemu fails to start the vm (this happens
sometimes -
 mostly on file type storage). do we have a re-try or a specific
 error telling the use that the activation failed and manual
 intervention is required?



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


Re: [Users] Network profile lost after host edit

2014-01-20 Thread Simon Barrett
I built a new Engine Server on 3.3.2-1.el6, rebuilt my VM's and I no longer see 
the issue. All is now working as expected.

Simon

-Original Message-
From: Simon Barrett 
Sent: 08 January 2014 08:50
To: Lior Vernia; Itamar Heim
Cc: users@ovirt.org
Subject: RE: [Users] Network profile lost after host edit

To test this further I setup another 3.3.2-1.el6 ovirt-engine. I'm not seeing 
the same problem on the new engine.

I'm going to try and move all configuration/VM's etc from the problem 
ovirt-engine install to the new one to see if the problem re-appears. 

I'll let you know how it goes.

Simon


-Original Message-
From: Lior Vernia [mailto:lver...@redhat.com] 
Sent: 08 January 2014 06:02
To: Itamar Heim
Cc: Simon Barrett; users@ovirt.org
Subject: Re: [Users] Network profile lost after host edit



On 07/01/14 23:16, Itamar Heim wrote:
 On 01/07/2014 08:59 AM, Lior Vernia wrote:
 Hi Simon,

 Thank you so much for tracking this down. I'm currently immersed in 
 oVirt 3.4 feature stuff, but I just wanted to let you know I saw this 
 and am planning to take care of it; I'll take a look in a week or two 
 when things calm down.

 The bad news are, I suspect there will be no workaround other than 
 upgrading to the next version that will include the fix (likely 3.3.3).

 
 is there an ovirt bug targeted to 3.3.3 tracking this?
 

I'll open one as soon as I test the issue. Unless Simon would like to pick up 
the gauntlet and open one on bugzilla.redhat.com?...

 Yours, Lior.

 On 06/01/14 12:21, Simon Barrett wrote:
 I am now able to reproduce the problem where network profile 
 definitions are lost on VM edit.

 - Create VM
 - From the Network Interfaces tab, click on New and assign the 
 ovirtmgt profile to nic1
 - Edit VM, from the nic1 drop down select another profile and 
 click OK
 - Edit the same VM again and nic1 lists as Empty

 I upgraded to 3.3.2-1.el6 and still see the problem.

 As ever, any help is very much appreciated.

 Thanks,

 Simon


 -Original Message-
 From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On 
 Behalf Of Simon Barrett
 Sent: 12 December 2013 21:53
 To: Lior Vernia
 Cc: users@ovirt.org
 Subject: Re: [Users] Network profile lost after host edit

 Lior,

 I'm running 3.3.1.

 I think it may be related to how I created the VM's. Another VM 
 created using the blank template works fine and the network config 
 displays correctly when I click on edit.

 The problem VM's were created with a different template. I'll dig a 
 bit further to see if I can narrow it down any further.

 I don't have to click show advanced to exhibit the problem.

 Thanks for the response

 Simon

 On 12 Dec 2013, at 16:44, Lior Vernia lver...@redhat.com wrote:

 Hi Simon,

 I apologize for the delay in my response. I've worked quite a bit 
 on that part of the dialog since oVirt 3.3, and while it was quite 
 buggy I haven't encountered this exact issue you're describing. It 
 does remind me of one bug though; could it be that pressing the 
 Show Advanced Options is what triggers the strange behavior?

 What version of oVirt engine are you running? Both 3.3.1 and 3.3.2 
 should be quite stable as far as this dialog is concerned, so 
 upgrading might be a good idea.

 As for workarounds, it sounds like a GUI issue so I don't think 
 there's anything you can do apart from upgrading the engine.

 Yours, Lior.

 On 11/12/13 13:40, Simon Barrett wrote:
 I have a problem where VM network profiles are lost when editing a 
 host.
 E.G.



 * VM is running fine on the correct network. Network
 Interfaces
 tab shows nic1 and Network Name shows the correct network profile.

 * I shutdown the VM then right click and Edit.

 * The General settings for the node shows nic1 Empty. If I
 then edit config, something like increasing memory or changing CPU 
 cores then click on OK, the VM configuration is saved without a 
 network profile.

 * When I boot the VM I cannot connect to it.

 * I then have to edit the node again configure back in the
 correct network profile.



 Does anyone know if this is a known issue? If not, any suggestions 
 as to how I correct this so that the original network profile 
 definition is retained after an edit?



 Many thanks,



 Simon





 ___
 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

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


Re: [Users] Network profile lost after host edit

2014-01-20 Thread Lior Vernia
Hi Simon,

Thanks, sorry for the grievance you had to suffer but I'm glad all is
well now :) Do let us know of any further trouble.

Yours, Lior.

On 20/01/14 15:15, Simon Barrett wrote:
 I built a new Engine Server on 3.3.2-1.el6, rebuilt my VM's and I no longer 
 see the issue. All is now working as expected.
 
 Simon
 
 -Original Message-
 From: Simon Barrett 
 Sent: 08 January 2014 08:50
 To: Lior Vernia; Itamar Heim
 Cc: users@ovirt.org
 Subject: RE: [Users] Network profile lost after host edit
 
 To test this further I setup another 3.3.2-1.el6 ovirt-engine. I'm not seeing 
 the same problem on the new engine.
 
 I'm going to try and move all configuration/VM's etc from the problem 
 ovirt-engine install to the new one to see if the problem re-appears. 
 
 I'll let you know how it goes.
 
 Simon
 
 
 -Original Message-
 From: Lior Vernia [mailto:lver...@redhat.com] 
 Sent: 08 January 2014 06:02
 To: Itamar Heim
 Cc: Simon Barrett; users@ovirt.org
 Subject: Re: [Users] Network profile lost after host edit
 
 
 
 On 07/01/14 23:16, Itamar Heim wrote:
 On 01/07/2014 08:59 AM, Lior Vernia wrote:
 Hi Simon,

 Thank you so much for tracking this down. I'm currently immersed in 
 oVirt 3.4 feature stuff, but I just wanted to let you know I saw this 
 and am planning to take care of it; I'll take a look in a week or two 
 when things calm down.

 The bad news are, I suspect there will be no workaround other than 
 upgrading to the next version that will include the fix (likely 3.3.3).


 is there an ovirt bug targeted to 3.3.3 tracking this?

 
 I'll open one as soon as I test the issue. Unless Simon would like to pick up 
 the gauntlet and open one on bugzilla.redhat.com?...
 
 Yours, Lior.

 On 06/01/14 12:21, Simon Barrett wrote:
 I am now able to reproduce the problem where network profile 
 definitions are lost on VM edit.

 - Create VM
 - From the Network Interfaces tab, click on New and assign the 
 ovirtmgt profile to nic1
 - Edit VM, from the nic1 drop down select another profile and 
 click OK
 - Edit the same VM again and nic1 lists as Empty

 I upgraded to 3.3.2-1.el6 and still see the problem.

 As ever, any help is very much appreciated.

 Thanks,

 Simon


 -Original Message-
 From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On 
 Behalf Of Simon Barrett
 Sent: 12 December 2013 21:53
 To: Lior Vernia
 Cc: users@ovirt.org
 Subject: Re: [Users] Network profile lost after host edit

 Lior,

 I'm running 3.3.1.

 I think it may be related to how I created the VM's. Another VM 
 created using the blank template works fine and the network config 
 displays correctly when I click on edit.

 The problem VM's were created with a different template. I'll dig a 
 bit further to see if I can narrow it down any further.

 I don't have to click show advanced to exhibit the problem.

 Thanks for the response

 Simon

 On 12 Dec 2013, at 16:44, Lior Vernia lver...@redhat.com wrote:

 Hi Simon,

 I apologize for the delay in my response. I've worked quite a bit 
 on that part of the dialog since oVirt 3.3, and while it was quite 
 buggy I haven't encountered this exact issue you're describing. It 
 does remind me of one bug though; could it be that pressing the 
 Show Advanced Options is what triggers the strange behavior?

 What version of oVirt engine are you running? Both 3.3.1 and 3.3.2 
 should be quite stable as far as this dialog is concerned, so 
 upgrading might be a good idea.

 As for workarounds, it sounds like a GUI issue so I don't think 
 there's anything you can do apart from upgrading the engine.

 Yours, Lior.

 On 11/12/13 13:40, Simon Barrett wrote:
 I have a problem where VM network profiles are lost when editing a 
 host.
 E.G.



 * VM is running fine on the correct network. Network
 Interfaces
 tab shows nic1 and Network Name shows the correct network profile.

 * I shutdown the VM then right click and Edit.

 * The General settings for the node shows nic1 Empty. If I
 then edit config, something like increasing memory or changing CPU 
 cores then click on OK, the VM configuration is saved without a 
 network profile.

 * When I boot the VM I cannot connect to it.

 * I then have to edit the node again configure back in the
 correct network profile.



 Does anyone know if this is a known issue? If not, any suggestions 
 as to how I correct this so that the original network profile 
 definition is retained after an edit?



 Many thanks,



 Simon





 ___
 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


___
Users mailing 

[Users] Configure VNC-Password timeout

2014-01-20 Thread Sven Kieske
Hi,

the default timeout for the vnc passwords
is 2 Minutes. I'd like to reconfigure
this.

Is there an engine-config value or is
this hardcoded? How can this be changed?
-- 
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] Configure VNC-Password timeout

2014-01-20 Thread Tomas Jelinek


- Original Message -
 From: Sven Kieske s.kie...@mittwald.de
 To: Users@ovirt.org List Users@ovirt.org
 Sent: Monday, January 20, 2014 2:41:29 PM
 Subject: [Users] Configure VNC-Password timeout
 
 Hi,
 
 the default timeout for the vnc passwords
 is 2 Minutes. I'd like to reconfigure
 this.
 
 Is there an engine-config value or is
 this hardcoded? How can this be changed?

It seems to be hardcoded on the frontend: 
VncConsoleModel.java:
...
private static final int TICKET_VALIDITY_SECONDS = 120;
...

I would say it would not hurt to have this configurable - could you please open 
a bug on this?

Thank you,
Tomas

 --
 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 mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Vm's being paused

2014-01-20 Thread Sven Kieske
Hi,

this shouldn't happen imho.

If the VM writes faster than the virtual disk can grow I
would expect the hypervisor to slow down the writing
instead of throwing errors?

Am 19.01.2014 19:20, schrieb Dan Yasny:
  If you have thin provisioned disks, and the
 VM writes to it's disks faster than the disks can grow, this is exactly
 what you will see

-- 
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] get VM events via API?

2014-01-20 Thread Sven Kieske
No,

in webadmin this can be accessed by clicking on a vm
and select the sub tab Sessions.

Is this exposed via API?

Use case would be to see if the user logs in, so I can see
and verify the vm setup did go well.

Am 20.01.2014 10:48, schrieb Itamar Heim:
 it should, but do you see that under events or the vm info?

-- 
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] Vm's being paused

2014-01-20 Thread Michal Skrivanek

On Jan 20, 2014, at 15:03 , Sven Kieske s.kie...@mittwald.de wrote:

 Hi,
 
 this shouldn't happen imho.
 
 If the VM writes faster than the virtual disk can grow I
 would expect the hypervisor to slow down the writing
 instead of throwing errors?

we extend before run out of space so it should not really happen in real life, 
not in reasonable setups.
unlike the out of space scenario where there's little we can do, just pause.

the threshold for growing the space can be change…or simply use preallocated 
disks if the performance is so bad and VM demands so high.

Thanks
michal

 
 Am 19.01.2014 19:20, schrieb Dan Yasny:
 If you have thin provisioned disks, and the
 VM writes to it's disks faster than the disks can grow, this is exactly
 what you will see
 
 -- 
 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 mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] get VM events via API?

2014-01-20 Thread Itamar Heim

On 01/20/2014 04:08 PM, Sven Kieske wrote:

No,

in webadmin this can be accessed by clicking on a vm
and select the sub tab Sessions.

Is this exposed via API?

Use case would be to see if the user logs in, so I can see
and verify the vm setup did go well.


i couldn't see it as well with my 3.3, please open a bug.



Am 20.01.2014 10:48, schrieb Itamar Heim:

it should, but do you see that under events or the vm info?




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


Re: [Users] Vm's being paused

2014-01-20 Thread Dafna Ron

no... we don't because we don't want to create a performance issue.

the vm is writing until it runs out of space. if we can extend the lv we 
do (vdsm will run lvextend).
However, the user should never see this error at all even if we are 
running on a thin provision disk since this is a low level operation 
which takes very little time.
If we can see the vm's pausing than it's either a UI refresh issue, 
internal communication issue between the host and storage or an actual bug.


Adding Eduardo and Federico.


On 01/20/2014 02:03 PM, Sven Kieske wrote:

Hi,

this shouldn't happen imho.

If the VM writes faster than the virtual disk can grow I
would expect the hypervisor to slow down the writing
instead of throwing errors?

Am 19.01.2014 19:20, schrieb Dan Yasny:

  If you have thin provisioned disks, and the
VM writes to it's disks faster than the disks can grow, this is exactly
what you will see



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


Re: [Users] Configure VNC-Password timeout

2014-01-20 Thread Sven Kieske
Hi,

thanks for the fast reply, I already feared this answer.

Against which component should I open the BZ?

Am 20.01.2014 14:58, schrieb Tomas Jelinek:
 
 
 - Original Message -
 From: Sven Kieske s.kie...@mittwald.de
 To: Users@ovirt.org List Users@ovirt.org
 Sent: Monday, January 20, 2014 2:41:29 PM
 Subject: [Users] Configure VNC-Password timeout

 Hi,

 the default timeout for the vnc passwords
 is 2 Minutes. I'd like to reconfigure
 this.

 Is there an engine-config value or is
 this hardcoded? How can this be changed?
 
 It seems to be hardcoded on the frontend: 
 VncConsoleModel.java:
 ...
 private static final int TICKET_VALIDITY_SECONDS = 120;
 ...
 
 I would say it would not hurt to have this configurable - could you please 
 open a bug on this?


-- 
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] get VM events via API?

2014-01-20 Thread Michal Skrivanek

On Jan 20, 2014, at 15:12 , Itamar Heim ih...@redhat.com wrote:

 On 01/20/2014 04:08 PM, Sven Kieske wrote:
 No,
 
 in webadmin this can be accessed by clicking on a vm
 and select the sub tab Sessions.
 
 Is this exposed via API?
 
 Use case would be to see if the user logs in, so I can see
 and verify the vm setup did go well.
 
 i couldn't see it as well with my 3.3, please open a bug.

yeah, I guess it should go under VM's guest_info (there's guest's IP and FQDN 
right now)

Thanks,
michal

 
 
 Am 20.01.2014 10:48, schrieb Itamar Heim:
 it should, but do you see that under events or the vm info?
 
 
 ___
 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] Configure VNC-Password timeout

2014-01-20 Thread Michal Skrivanek

On Jan 20, 2014, at 15:26 , Sven Kieske s.kie...@mittwald.de wrote:

 Hi,
 
 thanks for the fast reply, I already feared this answer.

btw, password can be disabled completely via vdsm hook; or the 
password/validity can be altered in after_vm_set_ticket hook I suppose as well.

 
 Against which component should I open the BZ?

webadmin

 
 Am 20.01.2014 14:58, schrieb Tomas Jelinek:
 
 
 - Original Message -
 From: Sven Kieske s.kie...@mittwald.de
 To: Users@ovirt.org List Users@ovirt.org
 Sent: Monday, January 20, 2014 2:41:29 PM
 Subject: [Users] Configure VNC-Password timeout
 
 Hi,
 
 the default timeout for the vnc passwords
 is 2 Minutes. I'd like to reconfigure
 this.
 
 Is there an engine-config value or is
 this hardcoded? How can this be changed?
 
 It seems to be hardcoded on the frontend: 
 VncConsoleModel.java:
 ...
 private static final int TICKET_VALIDITY_SECONDS = 120;
 ...
 
 I would say it would not hurt to have this configurable - could you please 
 open a bug on this?
 
 
 -- 
 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 mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] get VM events via API?

2014-01-20 Thread Sven Kieske
I've done that:

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

Am 20.01.2014 15:12, schrieb Itamar Heim:
 i couldn't see it as well with my 3.3, please open a bug.

-- 
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] Configure VNC-Password timeout

2014-01-20 Thread Sven Kieske
I opened a BZ https://bugzilla.redhat.com/show_bug.cgi?id=1055566

It would also be cool to configure the alphabet which is used
to generate the password and to do this via REST-API instead
of clicking through some slow GUI..

Thank you so far! I will look into these hooks too.

Am 20.01.2014 14:41, schrieb Sven Kieske:
 Hi,
 
 the default timeout for the vnc passwords
 is 2 Minutes. I'd like to reconfigure
 this.
 
 Is there an engine-config value or is
 this hardcoded? How can this be changed?
 

-- 
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] virt-v2v: too many IDE bus:

2014-01-20 Thread Markus Stockhausen
 Von: Matthew Booth [mbo...@redhat.com]
 Gesendet: Montag, 20. Januar 2014 11:16
 An: Markus Stockhausen; ovirt-users
 Betreff: Re: [Users] virt-v2v: too many IDE bus:
 
 On 19/01/14 14:07, Markus Stockhausen wrote:
  Hello,
 
  we are currently encountering the above error during virt-v2v
  migration. There was an older post about it here:
  http://lists.ovirt.org/pipermail/users/2013-December/018379.html
 
  The answers suggest that this is already fixed upstream
  and that you only need virt-v2v for OS disks. Could someone,
  explain
 
  - how to migrate only the OS disk and to dd the data disks.
  - if there exist any offical patches to fix the bug.
 
 Unfortunately it isn't fixed upstream. The only current workaround is to
 edit GuestfsHandle.pm on the machine running virt-v2v. Change:
 
 $g-add_drive_opts($path,
format = $format,
iface = $interface,
name = $name);
 
 to:
 
 $g-add_drive_opts($path,
format = $format,
name = $name);
 
 and:
 
 # Add the transfer iso if there is one
 $g-add_drive_opts($transfer,
format = 'raw', iface = $interface,
 readonly = 1)
 if defined($transfer);
 
 to:
 
 # Add the transfer iso if there is one
 $g-add_drive_opts($transfer,
format = 'raw', readonly = 1)
 if defined($transfer);
 
 However, this is known to cause problems when converting guests running
 older versions of RHEL (RHEL 3 and possibly 4).
 
 Matt

Thanks. That worked.

Markus
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

Über das Internet versandte E-Mails können unter fremden Namen erstellt oder
manipuliert werden. Deshalb ist diese als E-Mail verschickte Nachricht keine
rechtsverbindliche Willenserklärung.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

Vorstand:
Kadir Akin
Dr. Michael Höhnerbach

Vorsitzender des Aufsichtsrates:
Hans Kristian Langva

Registergericht: Amtsgericht Köln
Registernummer: HRB 52 497

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

e-mails sent over the internet may have been written under a wrong name or
been manipulated. That is why this message sent as an e-mail is not a
legally binding declaration of intention.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

executive board:
Kadir Akin
Dr. Michael Höhnerbach

President of the supervisory board:
Hans Kristian Langva

Registry office: district court Cologne
Register number: HRB 52 497


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


Re: [Users] Vm's being paused

2014-01-20 Thread Sven Kieske
Good to know there's a threshold.

how and where can it be configured?

And what is the default value?

Thank you for your fast reply! :)

Am 20.01.2014 15:10, schrieb Michal Skrivanek:
 the threshold for growing the space can be change

-- 
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] Making v2v easier?

2014-01-20 Thread Ted Miller
Unfortunately I have not ESX or ESXi server.  These VMs were running on a 
VMWare Server.  Ted


On 1/20/2014 4:23 AM, Sander Grendelman wrote:

FWIW, importing directly from an ESX server still works:

virt-v2v-host:
- RHEL/CentOS 6.5 physical host ( virt-v2v uses qemu-kvm = extra++ slow on a VM)
- Packages:
   virt-v2v-0.9.1-5.el6_5.x86_64
   libguestfs-winsupport-1.0-7.el6.x86_64
   libguestfs-tools-c-1.20.11-2.el6.x86_64
   libguestfs-tools-1.20.11-2.el6.x86_64
   libguestfs-1.20.11-2.el6.x86_64
   virtio-win-1.6.7-2.el6.noarch ( RHEL only? )
- network acces to:
 oVirt export domain (NFS)
 esx host(s) to import from (HTTPS)
- virt-v2v has to run as root to mount the oVirt NFS export domain
- Edit ~/.netrc and add a line for the esx host(s) to import from
(change the  parts):
machine esx.host.fqdn login esxuser password esxpassword
- Fix permissions on netrc file:
chmod 600 ~/.netrc
- Run virt-v2v ( again: change the  parts, ?no_verify=1 is needed
when esx uses self signed certs)
LIBGUESTFS_DEBUG=1 virt-v2v -ic esx://esx.host.fqdn/?no_verify=1 -o
rhev -os rhev.export.domain.host:/var/exports/export_domain
--network target_network_name vmname

Conversion can take quite some time after the disk copy,
especially when virt-v2v removes the vmware tools.
Running on a physical host (or using nested virtualization) helps.

On Mon, Jan 20, 2014 at 8:59 AM, Sander Grendelman
san...@grendelman.com wrote:

https://rhn.redhat.com/errata/RHBA-2013-1749.html


This update fixes the following bug:

* An update to virt-v2v included upstream support for the import of OVA images
exported by VMware servers. Unfortunately, testing has shown that VMDK images
created by recent versions of VMware ESX cannot be reliably supported, thus this
feature has been withdrawn. (BZ#1028983)

Users of virt-v2v are advised to upgrade to this updated package, which fixes
this bug.



--
He is no fool who gives what he cannot keep, to gain what he cannot lose. - - 
Jim Elliot
For more information about Jim Elliot and his unusual life, see 
http://www.christianliteratureandliving.com/march2003/carolyn.html.

Ted Miller
Design Engineer
HCJB Global Technology Center
2830 South 17th St
Elkhart, IN  46517
574--970-4272 my desk
574--970-4252 receptionist

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


[Users] online storage domain resize

2014-01-20 Thread Jiří Sléžka

Hello,

I'm just curious and I didn't try it already. I'm using FC storage (Dell 
MD3620f) with some logical disks on it. I should be able online increase 
virtual disk capacity using storage management (I have some free 
capacity on disk group).


Is there any way to on-line extend volume group used for vm's images 
storage and don't break anything?



I just found this hint by Eduardo from list

1. Shutdown all VMs
2. Manually connect iscsi on the SPM host
3. Run pvresize on the LUN
4. Put the domain in maintenance
5. Activate the domains

Is it possible to do this on-line without shutting down all vms? If not, 
it could be really nice feature for oncoming releases.



Thanks in advance

Jiri



attachment: jiri_slezka.vcf

smime.p7s
Description: Elektronicky podpis S/MIME
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVirt Node ISO for oVirt 3.3 - Draft image for testing

2014-01-20 Thread Laercio Motta
Understand?? o.0


2014/1/17 Laercio Motta laerciomas...@gmail.com

 Hi,


  Could you explain this a bit more?
  Did all NICs appear, or did to many NICs appear?

 I'm used to udev leave my NIC in sequence.
 And in this case it got messed up:
 common:
 eth0 - port 1
 eth1 - port 2
 ethx  port X

 What happened:
 eth0 - port 1
 eth4 - port 3
 eth5 - port 4
 eth6 - port 2

 As follows attached file ..

 Not a big problem .. But it confused me a little time to configure the
 network of 'nodes' ... Had to use tcpdump (thankfully that was available)
 to find out which interface belonged to what port Switch for CDP: P



 2014/1/17 Fabian Deutsch fabi...@redhat.com

 Hi Laercio,

 Am Freitag, den 17.01.2014, 14:49 -0200 schrieb Laercio Motta:

  I tested the ISO here.

 Thanks for being that brave! ;)

  - I was able to register with the engine and aprove (thing with
  'oVirt-node-3.0.1-iso-1.0.2.vdsm.el6.iso' version was not possible)

 Great that this works now.

  - Firewall: Being duplicated the rule of vdsm port (54321).
  - 'Sanlock' is being blocked by 'selinux' (audit.log attached)

 Okay, those are probably bugs we need to take care of.

  - NIC was messy .. :P (eth0, eth4, eth5, eth6... )..

 Could you explain this a bit more?
 Did all NICs appear, or did to many NICs appear?

 Thanks
 fabian

 
 
 
  2014/1/17 Fabian Deutsch fabi...@redhat.com
  Hey,
 
  as many of you have noticed there wasn't any well working
  oVirt Node ISO
  around for oVirt 3.3.
  To get this ball rolling again I've put together a draft image
  of ALPHA
  quality. It contains many fixes some of us have been working
  on over the
  last weeks.
 
  - Source  ISO -
  To not drown Jenkins in a hell-of-a-patch-queue I've pushed
  the patches to
 
  https://github.com/fabiand/ovirt-node/tree/teamsync
 
  The ISO built from that patchset can be found here:
 
 
 http://fedorapeople.org/~fabiand/node/3.0.4/ovirt-node-iso-3.0.3-0.999.201401170926draft.vdsm.el6.iso
 
  Please test this draft image and provide feedback on how it
  works for
  you.
  If you encounter problems - and you probably will - please
  take a look
  here on how to debug them:
 
  http://www.ovirt.org/Node_Troubleshooting
 
  - Important Notes -
  SELinux: Boot this alpha image with enforcing=0 to log
  potential
  denials, but not block the calls. To fix those denials
  permanently
  please attach your /var/log/audit/audit.log to a bug in
  bugzilla.
 
  Known problems:
  - Exception is raised after registration to Engine
  - Many bond devices are show on network page
  - Denials appear in /var/log/audit/audit.log
 
 
  And don't hesitate to reach out to us if you want to get more
  involved
  with Node.
 
  - fabian
 
 
 
  --
  ╔══╗
  ║▒▒▒ Laercio da Silva Motta ▒▒▒║
  ║--║
  ║ Blog: http://www.laerciomotta.com/   ║
  ║ Twitter: http://twitter.com/#!/laerciomasala ║
  ║ Skype: laerciomasala ║
  ║ Chave PGP: http://bit.ly/kXS6ga  ║
  ╚═v1.0═╝




 --
 ╔══╗
 ║▒▒▒ Laercio da Silva Motta ▒▒▒║
 ║--║
 ║* Blog: *http://www.laerciomotta.com/   ║
 ║ *Twitter:* http://twitter.com/#!/laerciomasala ║
 ║ *Skype*: laerciomasala ║
 ║ Chave PGP: http://bit.ly/kXS6ga  ║
 ╚═v1.0═╝




-- 
╔══╗
║▒▒▒ Laercio da Silva Motta ▒▒▒║
║--║
║* Blog: *http://www.laerciomotta.com/   ║
║ *Twitter:* http://twitter.com/#!/laerciomasala ║
║ *Skype*: laerciomasala ║
║ Chave PGP: http://bit.ly/kXS6ga  ║
╚═v1.0═╝
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVirt Node ISO for oVirt 3.3 - Draft image for testing

2014-01-20 Thread Fabian Deutsch
Am Montag, den 20.01.2014, 13:10 -0200 schrieb Laercio Motta:
 Understand?? o.0

Hey Laercio,

sorry for the delay.
I think I do understand the problem: The NIC order is different the
previously, right?

When you configure a NIC you cna use the Flash NIC to identify button
to identify a special NIC.

We won't change this on el6 - but the Feora based Node should be using
predictable network names, which is addressing this issue.

- fabian

 
 
 2014/1/17 Laercio Motta laerciomas...@gmail.com
 Hi,
 
 
  Could you explain this a bit more?
  Did all NICs appear, or did to many NICs appear?
 
 
 I'm used to udev leave my NIC in sequence. 
 And in this case it got messed up: 
 common: 
 eth0 - port 1 
 eth1 - port 2
 ethx  port X
 
 What happened: 
 eth0 - port 1 
 eth4 - port 3 
 eth5 - port 4 
 eth6 - port 2
 
 As follows attached file ..
 
 Not a big problem .. But it confused me a little time to
 configure the network of 'nodes' ... Had to use tcpdump
 (thankfully that was available) to find out which interface
 belonged to what port Switch for CDP: P
 
 
 
 
 2014/1/17 Fabian Deutsch fabi...@redhat.com
 Hi Laercio,
 
 Am Freitag, den 17.01.2014, 14:49 -0200 schrieb
 Laercio Motta:
 
  I tested the ISO here.
 
 
 Thanks for being that brave! ;)
 
  - I was able to register with the engine and aprove
 (thing with
  'oVirt-node-3.0.1-iso-1.0.2.vdsm.el6.iso' version
 was not possible)
 
 
 Great that this works now.
 
  - Firewall: Being duplicated the rule of vdsm port
 (54321).
  - 'Sanlock' is being blocked by 'selinux' (audit.log
 attached)
 
 
 Okay, those are probably bugs we need to take care of.
 
  - NIC was messy .. :P (eth0, eth4, eth5, eth6... )..
 
 
 Could you explain this a bit more?
 Did all NICs appear, or did to many NICs appear?
 
 Thanks
 fabian
 
 
 
 
  2014/1/17 Fabian Deutsch fabi...@redhat.com
  Hey,
 
  as many of you have noticed there wasn't any
 well working
  oVirt Node ISO
  around for oVirt 3.3.
  To get this ball rolling again I've put
 together a draft image
  of ALPHA
  quality. It contains many fixes some of us
 have been working
  on over the
  last weeks.
 
  - Source  ISO -
  To not drown Jenkins in a
 hell-of-a-patch-queue I've pushed
  the patches to
 
 
 https://github.com/fabiand/ovirt-node/tree/teamsync
 
  The ISO built from that patchset can be
 found here:
 
 
 
 http://fedorapeople.org/~fabiand/node/3.0.4/ovirt-node-iso-3.0.3-0.999.201401170926draft.vdsm.el6.iso
 
  Please test this draft image and provide
 feedback on how it
  works for
  you.
  If you encounter problems - and you probably
 will - please
  take a look
  here on how to debug them:
 
  http://www.ovirt.org/Node_Troubleshooting
 
  - Important Notes -
  SELinux: Boot this alpha image with
 enforcing=0 to log
  potential
  denials, but not block the calls. To fix
 those denials
  permanently
  please attach your /var/log/audit/audit.log
 to a bug in
  bugzilla.
 
  Known problems:
  - Exception is raised after registration to
 Engine
  - Many bond devices are 

Re: [Users] oVirt Node ISO for oVirt 3.3 - Draft image for testing

2014-01-20 Thread Laercio Motta
No problem.
But I believe this is because the file already has something.
Or he's duplicating information. As you can see in the file I sent, the MAC
of NIC and eth1 eth6 are the same ..
Well, we stayed anyway: P


2014/1/20 Fabian Deutsch fabi...@redhat.com

 Am Montag, den 20.01.2014, 13:10 -0200 schrieb Laercio Motta:
  Understand?? o.0

 Hey Laercio,

 sorry for the delay.
 I think I do understand the problem: The NIC order is different the
 previously, right?

 When you configure a NIC you cna use the Flash NIC to identify button
 to identify a special NIC.

 We won't change this on el6 - but the Feora based Node should be using
 predictable network names, which is addressing this issue.

 - fabian

 
 
  2014/1/17 Laercio Motta laerciomas...@gmail.com
  Hi,
 
 
   Could you explain this a bit more?
   Did all NICs appear, or did to many NICs appear?
 
 
  I'm used to udev leave my NIC in sequence.
  And in this case it got messed up:
  common:
  eth0 - port 1
  eth1 - port 2
  ethx  port X
 
  What happened:
  eth0 - port 1
  eth4 - port 3
  eth5 - port 4
  eth6 - port 2
 
  As follows attached file ..
 
  Not a big problem .. But it confused me a little time to
  configure the network of 'nodes' ... Had to use tcpdump
  (thankfully that was available) to find out which interface
  belonged to what port Switch for CDP: P
 
 
 
 
  2014/1/17 Fabian Deutsch fabi...@redhat.com
  Hi Laercio,
 
  Am Freitag, den 17.01.2014, 14:49 -0200 schrieb
  Laercio Motta:
 
   I tested the ISO here.
 
 
  Thanks for being that brave! ;)
 
   - I was able to register with the engine and aprove
  (thing with
   'oVirt-node-3.0.1-iso-1.0.2.vdsm.el6.iso' version
  was not possible)
 
 
  Great that this works now.
 
   - Firewall: Being duplicated the rule of vdsm port
  (54321).
   - 'Sanlock' is being blocked by 'selinux' (audit.log
  attached)
 
 
  Okay, those are probably bugs we need to take care of.
 
   - NIC was messy .. :P (eth0, eth4, eth5, eth6... )..
 
 
  Could you explain this a bit more?
  Did all NICs appear, or did to many NICs appear?
 
  Thanks
  fabian
 
  
  
  
   2014/1/17 Fabian Deutsch fabi...@redhat.com
   Hey,
  
   as many of you have noticed there wasn't any
  well working
   oVirt Node ISO
   around for oVirt 3.3.
   To get this ball rolling again I've put
  together a draft image
   of ALPHA
   quality. It contains many fixes some of us
  have been working
   on over the
   last weeks.
  
   - Source  ISO -
   To not drown Jenkins in a
  hell-of-a-patch-queue I've pushed
   the patches to
  
  
  https://github.com/fabiand/ovirt-node/tree/teamsync
  
   The ISO built from that patchset can be
  found here:
  
  
 
 http://fedorapeople.org/~fabiand/node/3.0.4/ovirt-node-iso-3.0.3-0.999.201401170926draft.vdsm.el6.iso
  
   Please test this draft image and provide
  feedback on how it
   works for
   you.
   If you encounter problems - and you probably
  will - please
   take a look
   here on how to debug them:
  
   http://www.ovirt.org/Node_Troubleshooting
  
   - Important Notes -
   SELinux: Boot this alpha image with
  enforcing=0 to log
   potential
   denials, but not block the calls. To fix
  those denials
   permanently
   please attach your /var/log/audit/audit.log
  to a bug in
   bugzilla.
  
   Known problems:
   - Exception is raised after registration to
  Engine
   - Many 

Re: [Users] oVirt/RHEV Android client (Opaque) available for beta testing

2014-01-20 Thread Steven Bellistri
i iordanov iiordanov@... writes:

 
 
 Hello,We
  invite any interested oVirt/RHEV developers and administrators to 
 beta-test Opaque, a new Android oVirt/RHEV client application.To
  opt in, please reply to this message with an email address associated 
 with a Google Account, because joining the beta-test group is based on 
 membership to a Google Plus community. If you don't want that email
address posted to the mailing list, don't include it in your reply!Itamar or
I will add you to the community and let you know that you can proceed to the
following two steps:1) Please visit this page here to accept the
invitation:https://plus.google.com/communities/1160991197121277822162) Once
you've become a member of the Google+ group, to opt-in,
visit:https://play.google.com/apps/testing/com.undatech.opaquebetaYou 
 will be able to download Opaque from Google Play by following the link 
 at the bottom of the opt-in page.Please share your experiences with Opaque
to the mailing list!
 Cheers,iordan
 -- The conscious mind has only one thread of execution.
 
 
 
 ___
 Users mailing list
 Users@...
 http://lists.ovirt.org/mailman/listinfo/users
 




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


Re: [Users] online storage domain resize

2014-01-20 Thread Ted Miller

On 1/20/2014 9:57 AM, Jiří Sléžka wrote:

Hello,

I'm just curious and I didn't try it already. I'm using FC storage (Dell
MD3620f) with some logical disks on it. I should be able online increase
virtual disk capacity using storage management (I have some free capacity
on disk group).

Is there any way to on-line extend volume group used for vm's images
storage and don't break anything?


I just found this hint by Eduardo from list

1. Shutdown all VMs
2. Manually connect iscsi on the SPM host
3. Run pvresize on the LUN
4. Put the domain in maintenance
5. Activate the domains

Is it possible to do this on-line without shutting down all vms? If not, it
could be really nice feature for oncoming releases.


Thanks in advance

Jiri
I don't know if oVirt is breaking the rules for using LVM, but in regular 
Linux all you have to do is:

pvcreate to create a new PV on the available space
vgextend to add the new pv to the existing vg
enjoy additional space.

Others will have to chime in on whether oVirt breaks this process somehow (I 
am using gluster for my storage), but I doubt it.


Ted Miller
Elkhart, IN, USA

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


[Users] Error when trying to create a new ISO storage domain

2014-01-20 Thread Willard Dennis
Hi all,
I am trying to define a new ISO storage domain. I go to System  Storage, click 
on the New Domain link, and fill in the requisite fields. Domain Function / 
Storage Type drop is set to ISO / NFS, and I verified that I have the proper 
NFS path to the export on the NFS server I want to use. However, when I click 
the OK button, I am getting the following popup:

-Error while executing action Add Storage Connection: Permission settings 
on the specified path do not allow access to the storage.Verify permission 
settings on the specified storage path.-
I have verified that I can manually mount the NFS filesystem on the host 
defined in the Use Host drop [as root], and I have looked in 
/var/log/messages (on the mounting host, as well as the NFS server, and do not 
see any errors... Please not that the NFS export is a pre-existing share on the 
NFS server, and does contain pre-existing data (ISOs, etc.)
How can I debug this? ___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Error when trying to create a new ISO storage domain

2014-01-20 Thread Markus Stockhausen
 Hi all,

 I am trying to define a new ISO storage domain. I go to System 
 Storage, click on the New Domain link, and fill in the requisite 
 fields. Domain Function / Storage Type drop is set to ISO / NFS, 
 and I verified that I have the proper NFS path to the  export on the 
 NFS server I want to use. However, when I click the OK button, I 
 am getting the following popup:
 -
 Error while executing action Add Storage Connection: Permission 
 settings on the specified path do not allow access to the storage.
 Verify permission settings on the specified storage path.
 -

Did you follow the NFS export guidelines and userid 36? Here the
export data from our ISO NFS server path

# ls -ald /var/nas3/OVirtISO
drwxrwxr-x 3 36 36 74 Dez 10 12:53 /var/nas3/OVirtISO
# cat /etc/exports
/var/nas3/OVirtEXP 
10.0.0.0/12(rw,async,no_subtree_check,anonuid=36,anongid=36,all_squash)
...

Markus
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

Über das Internet versandte E-Mails können unter fremden Namen erstellt oder
manipuliert werden. Deshalb ist diese als E-Mail verschickte Nachricht keine
rechtsverbindliche Willenserklärung.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

Vorstand:
Kadir Akin
Dr. Michael Höhnerbach

Vorsitzender des Aufsichtsrates:
Hans Kristian Langva

Registergericht: Amtsgericht Köln
Registernummer: HRB 52 497

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

e-mails sent over the internet may have been written under a wrong name or
been manipulated. That is why this message sent as an e-mail is not a
legally binding declaration of intention.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

executive board:
Kadir Akin
Dr. Michael Höhnerbach

President of the supervisory board:
Hans Kristian Langva

Registry office: district court Cologne
Register number: HRB 52 497


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


Re: [Users] Error when trying to create a new ISO storage domain

2014-01-20 Thread Willard Dennis
Thanks for the reply, Markus.

 Did you follow the NFS export guidelines and userid 36? Here the
 export data from our ISO NFS server path
 
 # ls -ald /var/nas3/OVirtISO
 drwxrwxr-x 3 36 36 74 Dez 10 12:53 /var/nas3/OVirtISO
 # cat /etc/exports
 /var/nas3/OVirtEXP 
 10.0.0.0/12(rw,async,no_subtree_check,anonuid=36,anongid=36,all_squash)
 ...
 
 Markus

The share is on a Illumos (nee OpenSolaris) box, and uses ZFS's NFS 
implementation. Here is the output of the share command (i.e. exportfs) for 
this share:
-@storage/ovir  /volumes/storage/ovirt-isos   anon=36,sec=none,rw   
I did change the NFS mount options (added the anon=36, and changed the sec= 
option from sys to none), and now I'm getting a slightly different error:
-Error while executing action Add Storage Connection: Problem while trying 
to mount target-
Any way to get more info on what exactly the propblem is??  
  ___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Register a disk image via oVirt REST api

2014-01-20 Thread Satya Vempati
Thanks Juan and Itamar.

As Juan said, I am trying take a file that I have that contains the image of a 
disk and create a disk in the system with the same content

 I am taking a similar approach to the one Juan described. I am creating a VM 
and then creating a new disk with the same size and attributes as my disk 
image. Then I am replacing the disk image of the new disk with the file that 
contains the image of the disk I want.  That seems to work but seemed too 
hacky/clumsy. I was hoping there is a more straightforward/clean way to do this.

-Original Message-
From: Juan Hernandez [mailto:jhern...@redhat.com] 
Sent: Saturday, January 18, 2014 8:27 AM
To: Satya Vempati; users@ovirt.org
Cc: Itamar Heim
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/17/2014 11:28 PM, Itamar Heim wrote:
 On 01/16/2014 07:21 PM, Satya Vempati wrote:
 I have a disk image (i.e. a file) that I want to register as a disk 
 using the REST API.

 The REST API works with existing disks, but does the API work with 
 disk images?
 
 can you pleas explain what do you mean by an image compared to a disk?
 

I think that what you want is to take a file that you have that contains the 
image of a disk and create a disk in the system with the same content.

As far as I know we don't have any direct way to do this. You will need to 
create an empty disk in oVirt, and then attach it to a virtual machine. Once it 
is attached to that virtual machine then you can write to it, but always via 
the virtual machine. For example, you can use the API as follows to create a 
new disk that isn't attached to any VM:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
disk
  namenewdisk/name
  size1073741824/size
  formatraw/format
  interfacevirtio/interface
/disk
 \
-u admin@internal:** \
https://rhel.example.com/api/storagedomains/the_id_of_the_storage_domain/disks

Then prepare a VM that you will use to copy the contents of your file to the 
new disk, and use the API to attach the new disk to this VM (you can preserve 
this VM, and use multiple times for this purpose):

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
disk id='the_id_of_the_disk'/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks

(Note that in order to attach the disk you have to provide the disk id returned 
by the API when you created it.)

Then activate the disk, so that the VM can see it:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
action/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks/the_id_of_the_disk/activate

Now you will have to copy the contents of the file to the disk via the VM. For 
example, assuming that you have SSH enabled on that VM and that the disk device 
inside the VM is /dev/vdb (it won't allways be this, depends on the number and 
order of attached disks) you can do something like this:

ssh root@myvm 'cat  /dev/vdb'  myfile.img ssh root@myvm 'sync'

Once the contents of the file have been copied you can deactivate the disk and 
detach it from this intermediate VM, and maybe attach it to another one.

Take into account that all these operations are lengthy ones, specially the 
operation to create the disk, and that the RESTAPI will usually return once the 
operation is initiated, so you will need to wait till they are finished. For 
example, when creating the disk you should poll the state of the VM till it is 
ok.

--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 
28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid - C.I.F. B82657941 
- Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Register a disk image via oVirt REST api

2014-01-20 Thread Itamar Heim

On 01/20/2014 11:30 PM, Satya Vempati wrote:

Thanks Juan and Itamar.

As Juan said, I am trying take a file that I have that contains the image of a 
disk and create a disk in the system with the same content

  I am taking a similar approach to the one Juan described. I am creating a VM 
and then creating a new disk with the same size and attributes as my disk 
image. Then I am replacing the disk image of the new disk with the file that 
contains the image of the disk I want.  That seems to work but seemed too 
hacky/clumsy. I was hoping there is a more straightforward/clean way to do this.


you can just place the disk on the storage, register the disk, and 
attach it to a VM?




-Original Message-
From: Juan Hernandez [mailto:jhern...@redhat.com]
Sent: Saturday, January 18, 2014 8:27 AM
To: Satya Vempati; users@ovirt.org
Cc: Itamar Heim
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/17/2014 11:28 PM, Itamar Heim wrote:

On 01/16/2014 07:21 PM, Satya Vempati wrote:

I have a disk image (i.e. a file) that I want to register as a disk
using the REST API.

The REST API works with existing disks, but does the API work with
disk images?


can you pleas explain what do you mean by an image compared to a disk?



I think that what you want is to take a file that you have that contains the 
image of a disk and create a disk in the system with the same content.

As far as I know we don't have any direct way to do this. You will need to 
create an empty disk in oVirt, and then attach it to a virtual machine. Once it 
is attached to that virtual machine then you can write to it, but always via 
the virtual machine. For example, you can use the API as follows to create a 
new disk that isn't attached to any VM:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
disk
   namenewdisk/name
   size1073741824/size
   formatraw/format
   interfacevirtio/interface
/disk
 \
-u admin@internal:** \
https://rhel.example.com/api/storagedomains/the_id_of_the_storage_domain/disks

Then prepare a VM that you will use to copy the contents of your file to the 
new disk, and use the API to attach the new disk to this VM (you can preserve 
this VM, and use multiple times for this purpose):

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
disk id='the_id_of_the_disk'/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks

(Note that in order to attach the disk you have to provide the disk id returned 
by the API when you created it.)

Then activate the disk, so that the VM can see it:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
action/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks/the_id_of_the_disk/activate

Now you will have to copy the contents of the file to the disk via the VM. For 
example, assuming that you have SSH enabled on that VM and that the disk device 
inside the VM is /dev/vdb (it won't allways be this, depends on the number and 
order of attached disks) you can do something like this:

ssh root@myvm 'cat  /dev/vdb'  myfile.img ssh root@myvm 'sync'

Once the contents of the file have been copied you can deactivate the disk and 
detach it from this intermediate VM, and maybe attach it to another one.

Take into account that all these operations are lengthy ones, specially the operation to 
create the disk, and that the RESTAPI will usually return once the operation is 
initiated, so you will need to wait till they are finished. For example, when creating 
the disk you should poll the state of the VM till it is ok.

--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 
28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid - C.I.F. B82657941 
- Red Hat S.L.



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


Re: [Users] Register a disk image via oVirt REST api

2014-01-20 Thread Itamar Heim

On 01/20/2014 11:36 PM, Satya Vempati wrote:

Well, the crux of the problem is that there doesn't seem to be a way to convert 
the disk image I have into a disk that the system will recognize.


why, which format is it?



-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com]
Sent: Monday, January 20, 2014 1:32 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:30 PM, Satya Vempati wrote:

Thanks Juan and Itamar.

As Juan said, I am trying take a file that I have that contains the
image of a disk and create a disk in the system with the same content

   I am taking a similar approach to the one Juan described. I am creating a VM 
and then creating a new disk with the same size and attributes as my disk 
image. Then I am replacing the disk image of the new disk with the file that 
contains the image of the disk I want.  That seems to work but seemed too 
hacky/clumsy. I was hoping there is a more straightforward/clean way to do this.


you can just place the disk on the storage, register the disk, and attach it to 
a VM?



-Original Message-
From: Juan Hernandez [mailto:jhern...@redhat.com]
Sent: Saturday, January 18, 2014 8:27 AM
To: Satya Vempati; users@ovirt.org
Cc: Itamar Heim
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/17/2014 11:28 PM, Itamar Heim wrote:

On 01/16/2014 07:21 PM, Satya Vempati wrote:

I have a disk image (i.e. a file) that I want to register as a disk
using the REST API.

The REST API works with existing disks, but does the API work with
disk images?


can you pleas explain what do you mean by an image compared to a disk?



I think that what you want is to take a file that you have that contains the 
image of a disk and create a disk in the system with the same content.

As far as I know we don't have any direct way to do this. You will need to 
create an empty disk in oVirt, and then attach it to a virtual machine. Once it 
is attached to that virtual machine then you can write to it, but always via 
the virtual machine. For example, you can use the API as follows to create a 
new disk that isn't attached to any VM:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
disk
namenewdisk/name
size1073741824/size
formatraw/format
interfacevirtio/interface
/disk
 \
-u admin@internal:** \
https://rhel.example.com/api/storagedomains/the_id_of_the_storage_doma
in/disks

Then prepare a VM that you will use to copy the contents of your file to the 
new disk, and use the API to attach the new disk to this VM (you can preserve 
this VM, and use multiple times for this purpose):

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
disk id='the_id_of_the_disk'/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks

(Note that in order to attach the disk you have to provide the disk id
returned by the API when you created it.)

Then activate the disk, so that the VM can see it:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
action/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks/the_id_of_the_
disk/activate

Now you will have to copy the contents of the file to the disk via the VM. For 
example, assuming that you have SSH enabled on that VM and that the disk device 
inside the VM is /dev/vdb (it won't allways be this, depends on the number and 
order of attached disks) you can do something like this:

ssh root@myvm 'cat  /dev/vdb'  myfile.img ssh root@myvm 'sync'

Once the contents of the file have been copied you can deactivate the disk and 
detach it from this intermediate VM, and maybe attach it to another one.

Take into account that all these operations are lengthy ones, specially the operation to 
create the disk, and that the RESTAPI will usually return once the operation is 
initiated, so you will need to wait till they are finished. For example, when creating 
the disk you should poll the state of the VM till it is ok.

--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 
28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid - C.I.F. B82657941 
- Red Hat S.L.





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


Re: [Users] Register a disk image via oVirt REST api

2014-01-20 Thread Satya Vempati
Well, the crux of the problem is that there doesn't seem to be a way to convert 
the disk image I have into a disk that the system will recognize.

-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com] 
Sent: Monday, January 20, 2014 1:32 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:30 PM, Satya Vempati wrote:
 Thanks Juan and Itamar.

 As Juan said, I am trying take a file that I have that contains the 
 image of a disk and create a disk in the system with the same content

   I am taking a similar approach to the one Juan described. I am creating a 
 VM and then creating a new disk with the same size and attributes as my disk 
 image. Then I am replacing the disk image of the new disk with the file that 
 contains the image of the disk I want.  That seems to work but seemed too 
 hacky/clumsy. I was hoping there is a more straightforward/clean way to do 
 this.

you can just place the disk on the storage, register the disk, and attach it to 
a VM?


 -Original Message-
 From: Juan Hernandez [mailto:jhern...@redhat.com]
 Sent: Saturday, January 18, 2014 8:27 AM
 To: Satya Vempati; users@ovirt.org
 Cc: Itamar Heim
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/17/2014 11:28 PM, Itamar Heim wrote:
 On 01/16/2014 07:21 PM, Satya Vempati wrote:
 I have a disk image (i.e. a file) that I want to register as a disk 
 using the REST API.

 The REST API works with existing disks, but does the API work with 
 disk images?

 can you pleas explain what do you mean by an image compared to a disk?


 I think that what you want is to take a file that you have that contains the 
 image of a disk and create a disk in the system with the same content.

 As far as I know we don't have any direct way to do this. You will need to 
 create an empty disk in oVirt, and then attach it to a virtual machine. Once 
 it is attached to that virtual machine then you can write to it, but always 
 via the virtual machine. For example, you can use the API as follows to 
 create a new disk that isn't attached to any VM:

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \
 -d 
 disk
namenewdisk/name
size1073741824/size
formatraw/format
interfacevirtio/interface
 /disk
  \
 -u admin@internal:** \
 https://rhel.example.com/api/storagedomains/the_id_of_the_storage_doma
 in/disks

 Then prepare a VM that you will use to copy the contents of your file to the 
 new disk, and use the API to attach the new disk to this VM (you can preserve 
 this VM, and use multiple times for this purpose):

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \
 -d 
 disk id='the_id_of_the_disk'/
  \
 -u admin@internal:** \
 https://rhel.example.com/api/vms/the_id_of_the_vm/disks

 (Note that in order to attach the disk you have to provide the disk id 
 returned by the API when you created it.)

 Then activate the disk, so that the VM can see it:

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \
 -d 
 action/
  \
 -u admin@internal:** \
 https://rhel.example.com/api/vms/the_id_of_the_vm/disks/the_id_of_the_
 disk/activate

 Now you will have to copy the contents of the file to the disk via the VM. 
 For example, assuming that you have SSH enabled on that VM and that the disk 
 device inside the VM is /dev/vdb (it won't allways be this, depends on the 
 number and order of attached disks) you can do something like this:

 ssh root@myvm 'cat  /dev/vdb'  myfile.img ssh root@myvm 'sync'

 Once the contents of the file have been copied you can deactivate the disk 
 and detach it from this intermediate VM, and maybe attach it to another one.

 Take into account that all these operations are lengthy ones, specially the 
 operation to create the disk, and that the RESTAPI will usually return once 
 the operation is initiated, so you will need to wait till they are finished. 
 For example, when creating the disk you should poll the state of the VM till 
 it is ok.

 --
 Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 
 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid - C.I.F. 
 B82657941 - Red Hat S.L.


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


Re: [Users] Register a disk image via oVirt REST api

2014-01-20 Thread Satya Vempati
It is a disk image (could be raw/cow, preallocated/thin provisioned). But is 
just a file. The REST API doesn't take a file path to convert the disk image 
into a system disk.

-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com] 
Sent: Monday, January 20, 2014 1:37 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:36 PM, Satya Vempati wrote:
 Well, the crux of the problem is that there doesn't seem to be a way to 
 convert the disk image I have into a disk that the system will recognize.

why, which format is it?


 -Original Message-
 From: Itamar Heim [mailto:ih...@redhat.com]
 Sent: Monday, January 20, 2014 1:32 PM
 To: Satya Vempati; Juan Hernandez; users@ovirt.org
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/20/2014 11:30 PM, Satya Vempati wrote:
 Thanks Juan and Itamar.

 As Juan said, I am trying take a file that I have that contains the 
 image of a disk and create a disk in the system with the same content

I am taking a similar approach to the one Juan described. I am creating a 
 VM and then creating a new disk with the same size and attributes as my disk 
 image. Then I am replacing the disk image of the new disk with the file that 
 contains the image of the disk I want.  That seems to work but seemed too 
 hacky/clumsy. I was hoping there is a more straightforward/clean way to do 
 this.

 you can just place the disk on the storage, register the disk, and attach it 
 to a VM?


 -Original Message-
 From: Juan Hernandez [mailto:jhern...@redhat.com]
 Sent: Saturday, January 18, 2014 8:27 AM
 To: Satya Vempati; users@ovirt.org
 Cc: Itamar Heim
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/17/2014 11:28 PM, Itamar Heim wrote:
 On 01/16/2014 07:21 PM, Satya Vempati wrote:
 I have a disk image (i.e. a file) that I want to register as a disk 
 using the REST API.

 The REST API works with existing disks, but does the API work with 
 disk images?

 can you pleas explain what do you mean by an image compared to a disk?


 I think that what you want is to take a file that you have that contains the 
 image of a disk and create a disk in the system with the same content.

 As far as I know we don't have any direct way to do this. You will need to 
 create an empty disk in oVirt, and then attach it to a virtual machine. Once 
 it is attached to that virtual machine then you can write to it, but always 
 via the virtual machine. For example, you can use the API as follows to 
 create a new disk that isn't attached to any VM:

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \
 -d 
 disk
 namenewdisk/name
 size1073741824/size
 formatraw/format
 interfacevirtio/interface
 /disk
  \
 -u admin@internal:** \
 https://rhel.example.com/api/storagedomains/the_id_of_the_storage_dom
 a
 in/disks

 Then prepare a VM that you will use to copy the contents of your file to the 
 new disk, and use the API to attach the new disk to this VM (you can 
 preserve this VM, and use multiple times for this purpose):

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \
 -d 
 disk id='the_id_of_the_disk'/
  \
 -u admin@internal:** \
 https://rhel.example.com/api/vms/the_id_of_the_vm/disks

 (Note that in order to attach the disk you have to provide the disk 
 id returned by the API when you created it.)

 Then activate the disk, so that the VM can see it:

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \
 -d 
 action/
  \
 -u admin@internal:** \
 https://rhel.example.com/api/vms/the_id_of_the_vm/disks/the_id_of_the
 _
 disk/activate

 Now you will have to copy the contents of the file to the disk via the VM. 
 For example, assuming that you have SSH enabled on that VM and that the disk 
 device inside the VM is /dev/vdb (it won't allways be this, depends on the 
 number and order of attached disks) you can do something like this:

 ssh root@myvm 'cat  /dev/vdb'  myfile.img ssh root@myvm 'sync'

 Once the contents of the file have been copied you can deactivate the disk 
 and detach it from this intermediate VM, and maybe attach it to another one.

 Take into account that all these operations are lengthy ones, specially the 
 operation to create the disk, and that the RESTAPI will usually return once 
 the operation is initiated, so you will need to wait till they are finished. 
 For example, when creating the disk you should poll the state of the VM till 
 it is ok.

 --
 Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 
 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid - C.I.F. 
 B82657941 - Red Hat S.L.



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


Re: [Users] Register a disk image via oVirt REST api

2014-01-20 Thread Itamar Heim

On 01/20/2014 11:39 PM, Satya Vempati wrote:

It is a disk image (could be raw/cow, preallocated/thin provisioned). But is 
just a file. The REST API doesn't take a file path to convert the disk image 
into a system disk.


you need to place it in the storage domain according to the naming 
convention the storage domain has, then you can simply register it.




-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com]
Sent: Monday, January 20, 2014 1:37 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:36 PM, Satya Vempati wrote:

Well, the crux of the problem is that there doesn't seem to be a way to convert 
the disk image I have into a disk that the system will recognize.


why, which format is it?



-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com]
Sent: Monday, January 20, 2014 1:32 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:30 PM, Satya Vempati wrote:

Thanks Juan and Itamar.

As Juan said, I am trying take a file that I have that contains the
image of a disk and create a disk in the system with the same content

I am taking a similar approach to the one Juan described. I am creating a 
VM and then creating a new disk with the same size and attributes as my disk 
image. Then I am replacing the disk image of the new disk with the file that 
contains the image of the disk I want.  That seems to work but seemed too 
hacky/clumsy. I was hoping there is a more straightforward/clean way to do this.


you can just place the disk on the storage, register the disk, and attach it to 
a VM?



-Original Message-
From: Juan Hernandez [mailto:jhern...@redhat.com]
Sent: Saturday, January 18, 2014 8:27 AM
To: Satya Vempati; users@ovirt.org
Cc: Itamar Heim
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/17/2014 11:28 PM, Itamar Heim wrote:

On 01/16/2014 07:21 PM, Satya Vempati wrote:

I have a disk image (i.e. a file) that I want to register as a disk
using the REST API.

The REST API works with existing disks, but does the API work with
disk images?


can you pleas explain what do you mean by an image compared to a disk?



I think that what you want is to take a file that you have that contains the 
image of a disk and create a disk in the system with the same content.

As far as I know we don't have any direct way to do this. You will need to 
create an empty disk in oVirt, and then attach it to a virtual machine. Once it 
is attached to that virtual machine then you can write to it, but always via 
the virtual machine. For example, you can use the API as follows to create a 
new disk that isn't attached to any VM:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
disk
 namenewdisk/name
 size1073741824/size
 formatraw/format
 interfacevirtio/interface
/disk
 \
-u admin@internal:** \
https://rhel.example.com/api/storagedomains/the_id_of_the_storage_dom
a
in/disks

Then prepare a VM that you will use to copy the contents of your file to the 
new disk, and use the API to attach the new disk to this VM (you can preserve 
this VM, and use multiple times for this purpose):

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
disk id='the_id_of_the_disk'/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks

(Note that in order to attach the disk you have to provide the disk
id returned by the API when you created it.)

Then activate the disk, so that the VM can see it:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \
-d 
action/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks/the_id_of_the
_
disk/activate

Now you will have to copy the contents of the file to the disk via the VM. For 
example, assuming that you have SSH enabled on that VM and that the disk device 
inside the VM is /dev/vdb (it won't allways be this, depends on the number and 
order of attached disks) you can do something like this:

ssh root@myvm 'cat  /dev/vdb'  myfile.img ssh root@myvm 'sync'

Once the contents of the file have been copied you can deactivate the disk and 
detach it from this intermediate VM, and maybe attach it to another one.

Take into account that all these operations are lengthy ones, specially the operation to 
create the disk, and that the RESTAPI will usually return once the operation is 
initiated, so you will need to wait till they are finished. For example, when creating 
the disk you should poll the state of the VM till it is ok.

--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 
28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid - C.I.F. B82657941 
- Red Hat S.L.







___
Users mailing list

Re: [Users] Register a disk image via oVirt REST api

2014-01-20 Thread Satya Vempati
Yes, but to place it in the storage domain, first I need to create a disk on 
the storage domain and replace the disk image with my disk image. That seems a 
little hacky.

If registering a disk image isn't possible today, should I file a bug/rfe to 
put it on the roadmap?

-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com] 
Sent: Monday, January 20, 2014 1:46 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:39 PM, Satya Vempati wrote:
 It is a disk image (could be raw/cow, preallocated/thin provisioned). But is 
 just a file. The REST API doesn't take a file path to convert the disk image 
 into a system disk.

you need to place it in the storage domain according to the naming convention 
the storage domain has, then you can simply register it.


 -Original Message-
 From: Itamar Heim [mailto:ih...@redhat.com]
 Sent: Monday, January 20, 2014 1:37 PM
 To: Satya Vempati; Juan Hernandez; users@ovirt.org
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/20/2014 11:36 PM, Satya Vempati wrote:
 Well, the crux of the problem is that there doesn't seem to be a way to 
 convert the disk image I have into a disk that the system will recognize.

 why, which format is it?


 -Original Message-
 From: Itamar Heim [mailto:ih...@redhat.com]
 Sent: Monday, January 20, 2014 1:32 PM
 To: Satya Vempati; Juan Hernandez; users@ovirt.org
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/20/2014 11:30 PM, Satya Vempati wrote:
 Thanks Juan and Itamar.

 As Juan said, I am trying take a file that I have that contains the 
 image of a disk and create a disk in the system with the same 
 content

 I am taking a similar approach to the one Juan described. I am creating 
 a VM and then creating a new disk with the same size and attributes as my 
 disk image. Then I am replacing the disk image of the new disk with the 
 file that contains the image of the disk I want.  That seems to work but 
 seemed too hacky/clumsy. I was hoping there is a more straightforward/clean 
 way to do this.

 you can just place the disk on the storage, register the disk, and attach it 
 to a VM?


 -Original Message-
 From: Juan Hernandez [mailto:jhern...@redhat.com]
 Sent: Saturday, January 18, 2014 8:27 AM
 To: Satya Vempati; users@ovirt.org
 Cc: Itamar Heim
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/17/2014 11:28 PM, Itamar Heim wrote:
 On 01/16/2014 07:21 PM, Satya Vempati wrote:
 I have a disk image (i.e. a file) that I want to register as a 
 disk using the REST API.

 The REST API works with existing disks, but does the API work with 
 disk images?

 can you pleas explain what do you mean by an image compared to a disk?


 I think that what you want is to take a file that you have that contains 
 the image of a disk and create a disk in the system with the same content.

 As far as I know we don't have any direct way to do this. You will need to 
 create an empty disk in oVirt, and then attach it to a virtual machine. 
 Once it is attached to that virtual machine then you can write to it, but 
 always via the virtual machine. For example, you can use the API as follows 
 to create a new disk that isn't attached to any VM:

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \ -d 
 disk
  namenewdisk/name
  size1073741824/size
  formatraw/format
  interfacevirtio/interface
 /disk
  \
 -u admin@internal:** \
 https://rhel.example.com/api/storagedomains/the_id_of_the_storage_do
 m
 a
 in/disks

 Then prepare a VM that you will use to copy the contents of your file to 
 the new disk, and use the API to attach the new disk to this VM (you can 
 preserve this VM, and use multiple times for this purpose):

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \ -d 
 disk id='the_id_of_the_disk'/
  \
 -u admin@internal:** \
 https://rhel.example.com/api/vms/the_id_of_the_vm/disks

 (Note that in order to attach the disk you have to provide the disk 
 id returned by the API when you created it.)

 Then activate the disk, so that the VM can see it:

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \ -d 
 action/
  \
 -u admin@internal:** \
 https://rhel.example.com/api/vms/the_id_of_the_vm/disks/the_id_of_th
 e
 _
 disk/activate

 Now you will have to copy the contents of the file to the disk via the VM. 
 For example, assuming that you have SSH enabled on that VM and that the 
 disk device inside the VM is /dev/vdb (it won't allways be this, depends on 
 the number and order of attached disks) you can do something like this:

 ssh root@myvm 'cat  /dev/vdb'  myfile.img ssh root@myvm 'sync'

 Once the contents of the file have been copied you can deactivate the disk 
 and detach it from this intermediate VM, and maybe 

Re: [Users] Register a disk image via oVirt REST api

2014-01-20 Thread Itamar Heim

On 01/20/2014 11:56 PM, Satya Vempati wrote:

Yes, but to place it in the storage domain, first I need to create a disk on 
the storage domain and replace the disk image with my disk image. That seems a 
little hacky.


for block storage, true.
for NFS, you can just copy the file over?



If registering a disk image isn't possible today, should I file a bug/rfe to 
put it on the roadmap?


for nfs, should be easy.
for block storage, yes, to create a disk/LV not via the engine.



-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com]
Sent: Monday, January 20, 2014 1:46 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:39 PM, Satya Vempati wrote:

It is a disk image (could be raw/cow, preallocated/thin provisioned). But is 
just a file. The REST API doesn't take a file path to convert the disk image 
into a system disk.


you need to place it in the storage domain according to the naming convention 
the storage domain has, then you can simply register it.



-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com]
Sent: Monday, January 20, 2014 1:37 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:36 PM, Satya Vempati wrote:

Well, the crux of the problem is that there doesn't seem to be a way to convert 
the disk image I have into a disk that the system will recognize.


why, which format is it?



-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com]
Sent: Monday, January 20, 2014 1:32 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:30 PM, Satya Vempati wrote:

Thanks Juan and Itamar.

As Juan said, I am trying take a file that I have that contains the
image of a disk and create a disk in the system with the same
content

 I am taking a similar approach to the one Juan described. I am creating a 
VM and then creating a new disk with the same size and attributes as my disk 
image. Then I am replacing the disk image of the new disk with the file that 
contains the image of the disk I want.  That seems to work but seemed too 
hacky/clumsy. I was hoping there is a more straightforward/clean way to do this.


you can just place the disk on the storage, register the disk, and attach it to 
a VM?



-Original Message-
From: Juan Hernandez [mailto:jhern...@redhat.com]
Sent: Saturday, January 18, 2014 8:27 AM
To: Satya Vempati; users@ovirt.org
Cc: Itamar Heim
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/17/2014 11:28 PM, Itamar Heim wrote:

On 01/16/2014 07:21 PM, Satya Vempati wrote:

I have a disk image (i.e. a file) that I want to register as a
disk using the REST API.

The REST API works with existing disks, but does the API work with
disk images?


can you pleas explain what do you mean by an image compared to a disk?



I think that what you want is to take a file that you have that contains the 
image of a disk and create a disk in the system with the same content.

As far as I know we don't have any direct way to do this. You will need to 
create an empty disk in oVirt, and then attach it to a virtual machine. Once it 
is attached to that virtual machine then you can write to it, but always via 
the virtual machine. For example, you can use the API as follows to create a 
new disk that isn't attached to any VM:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \ -d 
disk
  namenewdisk/name
  size1073741824/size
  formatraw/format
  interfacevirtio/interface
/disk
 \
-u admin@internal:** \
https://rhel.example.com/api/storagedomains/the_id_of_the_storage_do
m
a
in/disks

Then prepare a VM that you will use to copy the contents of your file to the 
new disk, and use the API to attach the new disk to this VM (you can preserve 
this VM, and use multiple times for this purpose):

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \ -d 
disk id='the_id_of_the_disk'/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks

(Note that in order to attach the disk you have to provide the disk
id returned by the API when you created it.)

Then activate the disk, so that the VM can see it:

curl \
-k \
-X POST \
-H Accept: application/xml \
-H Content-Type: application/xml \ -d 
action/
 \
-u admin@internal:** \
https://rhel.example.com/api/vms/the_id_of_the_vm/disks/the_id_of_th
e
_
disk/activate

Now you will have to copy the contents of the file to the disk via the VM. For 
example, assuming that you have SSH enabled on that VM and that the disk device 
inside the VM is /dev/vdb (it won't allways be this, depends on the number and 
order of attached disks) you can do something like this:

ssh root@myvm 'cat  /dev/vdb'  myfile.img ssh root@myvm 'sync'

Once the 

[Users] Problem adding an IPA server to oVirt

2014-01-20 Thread Adam Litke

Hi,

I am trying to set up an oVirt environment with an IPA provider and
am hitting a GeneralException that I am unsure how to debug.  I have
configured freeIPA in a Fedora VM using the supplied configuration
script and I can 'kinit admin' from the ovirt-engine machine.  When I
run the manage-domains command I get the following exception:

I didn't realize it, but I had to add _kerberos srv records to my
dnsmasq.conf in order for the script to even find my KDC.

./engine-manage-domains -action=add -provider=IPA -domain=alitke.net
-user=admin -interactive -ldapServers=directory.alitke.net
Enter password:
General error has occurednull
java.lang.NegativeArraySizeException
at
sun.security.jgss.krb5.CipherHelper.aes256Encrypt(CipherHelper.java:1367)
at
sun.security.jgss.krb5.CipherHelper.encryptData(CipherHelper.java:722)
at
sun.security.jgss.krb5.WrapToken_v2.init(WrapToken_v2.java:200)
at
sun.security.jgss.krb5.Krb5Context.wrap(Krb5Context.java:861)
at
sun.security.jgss.GSSContextImpl.wrap(GSSContextImpl.java:385)
at
com.sun.security.sasl.gsskerb.GssKrb5Base.wrap(GssKrb5Base.java:104)
at
com.sun.jndi.ldap.sasl.SaslOutputStream.write(SaslOutputStream.java:89)
at
com.sun.jndi.ldap.Connection.writeRequest(Connection.java:430)
at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:555)
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1985)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1847)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1772)
at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:386)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:356)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:339)
at
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267)
at
org.ovirt.engine.core.ldap.RootDSEData.init(RootDSEData.java:52)
at
org.ovirt.engine.core.utils.kerberos.JndiAction.getDomainDN(JndiAction.java:254)
at
org.ovirt.engine.core.utils.kerberos.JndiAction.run(JndiAction.java:87)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at
org.ovirt.engine.core.utils.kerberos.KerberosConfigCheck.promptSuccessfulAuthentication(KerberosConfigCheck.java:174)
at
org.ovirt.engine.core.utils.kerberos.KerberosConfigCheck.validateKerberosInstallation(KerberosConfigCheck.java:150)
at
org.ovirt.engine.core.utils.kerberos.KerberosConfigCheck.checkInstallation(KerberosConfigCheck.java:135)
at
org.ovirt.engine.core.domains.ManageDomains.checkKerberosConfiguration(ManageDomains.java:739)
at
org.ovirt.engine.core.domains.ManageDomains.testConfiguration(ManageDomains.java:909)
at
org.ovirt.engine.core.domains.ManageDomains.addDomain(ManageDomains.java:531)
at
org.ovirt.engine.core.domains.ManageDomains.runCommand(ManageDomains.java:308)
at
org.ovirt.engine.core.domains.ManageDomains.main(ManageDomains.java:205)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.modules.Module.run(Module.java:260)
at org.jboss.modules.Main.main(Main.java:291)
Failure while testing domain %1$s. Details: %2$s: One of the
parameters for this error is null and no default message to show

Any thoughts on what might be going wrong?

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


Re: [Users] Register a disk image via oVirt REST api

2014-01-20 Thread Satya Vempati
Luckily I am on NFS, so it is relatively easy to copy the file over. Which, by 
the way, is what I am doing now.

But that means I rely on the internal knowledge of how the storage domain and 
the disks are laid out on the file system. 

Relying on the internals of the oVirt implementation is what I consider to be 
hacky/clumsy. That is why I was searching for a clean solution although the 
hacky way seems to be working.

-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com] 
Sent: Monday, January 20, 2014 2:02 PM
To: Satya Vempati; Juan Hernandez; users@ovirt.org
Subject: Re: [Users] Register a disk image via oVirt REST api

On 01/20/2014 11:56 PM, Satya Vempati wrote:
 Yes, but to place it in the storage domain, first I need to create a disk on 
 the storage domain and replace the disk image with my disk image. That seems 
 a little hacky.

for block storage, true.
for NFS, you can just copy the file over?


 If registering a disk image isn't possible today, should I file a bug/rfe to 
 put it on the roadmap?

for nfs, should be easy.
for block storage, yes, to create a disk/LV not via the engine.


 -Original Message-
 From: Itamar Heim [mailto:ih...@redhat.com]
 Sent: Monday, January 20, 2014 1:46 PM
 To: Satya Vempati; Juan Hernandez; users@ovirt.org
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/20/2014 11:39 PM, Satya Vempati wrote:
 It is a disk image (could be raw/cow, preallocated/thin provisioned). But is 
 just a file. The REST API doesn't take a file path to convert the disk image 
 into a system disk.

 you need to place it in the storage domain according to the naming convention 
 the storage domain has, then you can simply register it.


 -Original Message-
 From: Itamar Heim [mailto:ih...@redhat.com]
 Sent: Monday, January 20, 2014 1:37 PM
 To: Satya Vempati; Juan Hernandez; users@ovirt.org
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/20/2014 11:36 PM, Satya Vempati wrote:
 Well, the crux of the problem is that there doesn't seem to be a way to 
 convert the disk image I have into a disk that the system will recognize.

 why, which format is it?


 -Original Message-
 From: Itamar Heim [mailto:ih...@redhat.com]
 Sent: Monday, January 20, 2014 1:32 PM
 To: Satya Vempati; Juan Hernandez; users@ovirt.org
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/20/2014 11:30 PM, Satya Vempati wrote:
 Thanks Juan and Itamar.

 As Juan said, I am trying take a file that I have that contains the 
 image of a disk and create a disk in the system with the same 
 content

  I am taking a similar approach to the one Juan described. I am 
 creating a VM and then creating a new disk with the same size and 
 attributes as my disk image. Then I am replacing the disk image of the new 
 disk with the file that contains the image of the disk I want.  That seems 
 to work but seemed too hacky/clumsy. I was hoping there is a more 
 straightforward/clean way to do this.

 you can just place the disk on the storage, register the disk, and attach 
 it to a VM?


 -Original Message-
 From: Juan Hernandez [mailto:jhern...@redhat.com]
 Sent: Saturday, January 18, 2014 8:27 AM
 To: Satya Vempati; users@ovirt.org
 Cc: Itamar Heim
 Subject: Re: [Users] Register a disk image via oVirt REST api

 On 01/17/2014 11:28 PM, Itamar Heim wrote:
 On 01/16/2014 07:21 PM, Satya Vempati wrote:
 I have a disk image (i.e. a file) that I want to register as a 
 disk using the REST API.

 The REST API works with existing disks, but does the API work 
 with disk images?

 can you pleas explain what do you mean by an image compared to a disk?


 I think that what you want is to take a file that you have that contains 
 the image of a disk and create a disk in the system with the same content.

 As far as I know we don't have any direct way to do this. You will need to 
 create an empty disk in oVirt, and then attach it to a virtual machine. 
 Once it is attached to that virtual machine then you can write to it, but 
 always via the virtual machine. For example, you can use the API as 
 follows to create a new disk that isn't attached to any VM:

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \ -d 
 disk
   namenewdisk/name
   size1073741824/size
   formatraw/format
   interfacevirtio/interface /disk  \ -u 
 admin@internal:** \ 
 https://rhel.example.com/api/storagedomains/the_id_of_the_storage_d
 o
 m
 a
 in/disks

 Then prepare a VM that you will use to copy the contents of your file to 
 the new disk, and use the API to attach the new disk to this VM (you can 
 preserve this VM, and use multiple times for this purpose):

 curl \
 -k \
 -X POST \
 -H Accept: application/xml \
 -H Content-Type: application/xml \ -d 
 disk id='the_id_of_the_disk'/
  \
 -u admin@internal:** \
 https://rhel.example.com/api/vms/the_id_of_the_vm/disks

 (Note that in order to 

Re: [Users] Problem adding an IPA server to oVirt

2014-01-20 Thread Yair Zaslavsky
Hi Adam,
Looks like you have problems in running the Root DSE query.
I would like you to try and troubleshoot by comparing this to the execution of -

ldapsearch -x -h YOUR_IPA_SERVER_IP_ADDRESS -s base

- Original Message -
 From: Adam Litke ali...@redhat.com
 To: users@ovirt.org
 Sent: Tuesday, January 21, 2014 12:12:03 AM
 Subject: [Users] Problem adding an IPA server to oVirt
 
 Hi,
 
 I am trying to set up an oVirt environment with an IPA provider and
 am hitting a GeneralException that I am unsure how to debug.  I have
 configured freeIPA in a Fedora VM using the supplied configuration
 script and I can 'kinit admin' from the ovirt-engine machine.  When I
 run the manage-domains command I get the following exception:
 
 I didn't realize it, but I had to add _kerberos srv records to my
 dnsmasq.conf in order for the script to even find my KDC.
 
 ./engine-manage-domains -action=add -provider=IPA -domain=alitke.net
 -user=admin -interactive -ldapServers=directory.alitke.net
 Enter password:
 General error has occurednull
 java.lang.NegativeArraySizeException
   at
 sun.security.jgss.krb5.CipherHelper.aes256Encrypt(CipherHelper.java:1367)
   at
 sun.security.jgss.krb5.CipherHelper.encryptData(CipherHelper.java:722)
   at
 sun.security.jgss.krb5.WrapToken_v2.init(WrapToken_v2.java:200)
   at
 sun.security.jgss.krb5.Krb5Context.wrap(Krb5Context.java:861)
   at
 sun.security.jgss.GSSContextImpl.wrap(GSSContextImpl.java:385)
   at
 com.sun.security.sasl.gsskerb.GssKrb5Base.wrap(GssKrb5Base.java:104)
   at
 com.sun.jndi.ldap.sasl.SaslOutputStream.write(SaslOutputStream.java:89)
   at
 com.sun.jndi.ldap.Connection.writeRequest(Connection.java:430)
   at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:555)
   at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1985)
   at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1847)
   at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1772)
   at
 com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:386)
   at
 com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:356)
   at
 com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:339)
   at
 javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267)
   at
 org.ovirt.engine.core.ldap.RootDSEData.init(RootDSEData.java:52)
   at
 org.ovirt.engine.core.utils.kerberos.JndiAction.getDomainDN(JndiAction.java:254)
   at
 org.ovirt.engine.core.utils.kerberos.JndiAction.run(JndiAction.java:87)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.security.auth.Subject.doAs(Subject.java:356)
   at
 org.ovirt.engine.core.utils.kerberos.KerberosConfigCheck.promptSuccessfulAuthentication(KerberosConfigCheck.java:174)
   at
 org.ovirt.engine.core.utils.kerberos.KerberosConfigCheck.validateKerberosInstallation(KerberosConfigCheck.java:150)
   at
 org.ovirt.engine.core.utils.kerberos.KerberosConfigCheck.checkInstallation(KerberosConfigCheck.java:135)
   at
 org.ovirt.engine.core.domains.ManageDomains.checkKerberosConfiguration(ManageDomains.java:739)
   at
 org.ovirt.engine.core.domains.ManageDomains.testConfiguration(ManageDomains.java:909)
   at
 org.ovirt.engine.core.domains.ManageDomains.addDomain(ManageDomains.java:531)
   at
 org.ovirt.engine.core.domains.ManageDomains.runCommand(ManageDomains.java:308)
   at
 org.ovirt.engine.core.domains.ManageDomains.main(ManageDomains.java:205)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.jboss.modules.Module.run(Module.java:260)
   at org.jboss.modules.Main.main(Main.java:291)
 Failure while testing domain %1$s. Details: %2$s: One of the
 parameters for this error is null and no default message to show
 
 Any thoughts on what might be going wrong?
 
 ___
 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] [SOLVED] Re: Networking questions (LONG)

2014-01-20 Thread Alan Murrell
I just thought I would reply back to my own thread with what my team  
and I have come up with.  While I have marked this as Solved, don't  
get too excited; it is not exactly the resolution we were looking for,  
but is acceptable nonetheless.


After some further digging around, we found that it is possible to  
pass hardware (including a NIC) through to a guest.  Unfortunately,  
this renders the guest unable to be migrated to another host  
automatically.


In a single-server setup (which many of our clients' setups are via  
VMware, currently0, this would not make a difference, since there is  
no other host to migrate to anyway.  Son in those cases, not much  
changes.


For multi-server setups, we have two choices:

  1.) Forgo the virtual firewall and purchase a Lanner or similar  
hardware to install the firewall onto.  Since a multi-server setup (at  
least two server + SAN) typically runs a minimum of $10K-$15K in  
hardware alone, an addition $300 or so for the Lanner (or similar  
hardware) would not increase the overall cost of the project in a  
significant way.  (This option could of course be used in a  
single-server setup as well, but hardware cost is usually more of a  
factor with these setups for our clients)


  2.) Setup a firewall guest on two of the hosts, and configure them  
in an active-passive fashion.  As long as both of the hosts with the  
firewall VMs do not go down at the same time, then there should not be  
an issue.  If a host with a firewall VM goes down, the other firewall  
VM will take over.


So, those are the work-arounds that we have come up with (nothing  
new to anyone here, I am sure) until such time as OpenVSwitch gets  
adopted into oVirt/RHEV as either an easy-to-enable option, or as the  
standard/default switch.


Anyway, this post was really more of a closure post so anyone coming  
across this thread in the future does not wonder what the ultimate  
outcome was. :-)


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


Re: [Users] VoIP on virtual infrastructure and oVirt in particular

2014-01-20 Thread Alan Murrell
I cannot speak to oVirt in particular, but I run a Elastix PBX on my  
Xen server at home (soon to be replaced by oVirt).  It is very lightly  
used (just my wife and I) but I have had no problems with it.


The company I work for runs our PBX (trixbox) off a VMware cluster in  
our colo.  It consists of about 4 servers (hosts) with about 16  
running VMS.  We just recently switched to full VoIP, but prior to  
that we were using a PRI card that was accessible over IP (similar to  
using something like a SPA-3000 for connecting one's analog home line  
via Asterisk/Elastix -- which I currently do on my home setup).  We  
did not experience any performance issues under this setup (and  
currently do not with our all-VoIP config)


I hope this helps.

-Alan


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


Re: [Users] Node not connecting

2014-01-20 Thread Nauman Abbas
I was using fc-19. The latest one on oVirt website. Can't get the logs now
as my colleague removed the node to re-install it.


On Mon, Jan 20, 2014 at 4:20 PM, Fabian Deutsch fabi...@redhat.com wrote:

 Am Montag, den 20.01.2014, 14:59 +0500 schrieb Nauman Abbas:
  Hello there
 
 
  Seem to be going in a problem again. I had installed oVirt node on my
  server and was running the engine on another machine. Now I had to
  change the engine machine since that was just a test PC so I got rid
  of the engine machine. Installed the engine on another machine and now
  i'm trying to add the node to it. It goes on all well until it reaches
  the 'termination' stage and then it gives an error Installation
  failed. Network error during communication with the host.

 Hey Naumann,

 what ovirt-node-iso version are you using?

 - fabian

 
  PS
  SELinux/ebtables is off on both machines.
 
 
  A little help would be great.
 
 
  Regards
 
 
  Nauman Abbas
  Assistant System Administrator (LMS),
  Room No. A-207, SEECS,
  National University of Sciences  Technology,
  + 92 321 5359946
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users




-- 

Nauman Abbas
Assistant System Administrator (LMS),
Room No. A-207, SEECS,
National University of Sciences  Technology,
+ 92 321 5359946
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


  1   2   >