Re: [ovirt-users] problem importing ova vm

2018-02-22 Thread Arik Hadas
On Thu, Feb 22, 2018 at 3:26 PM, Jiří Sléžka  wrote:

> On 02/22/2018 01:58 PM, Richard W.M. Jones wrote:
> > On Thu, Feb 22, 2018 at 01:27:18PM +0100, Jiří Sléžka wrote:
> >> libvirt needs authentication to connect to libvirt URI qemu:///system
> >> (see also: http://libvirt.org/auth.html http://libvirt.org/uri.html)
> >
> > You can set the backend to direct to avoid needing libvirt:
> >
> >   export LIBGUESTFS_BACKEND=direct
> >
> > Alternately you can fiddle with the libvirt polkit configuration
> > to permit access:
>
> thanks, here is full output
>
> http://mirror.slu.cz/tmp/libguestfs-test-tool.txt
>
> Jiri
>

Thanks, there is apparently something wrong with that particular host of
mine - not worth spending the time on investigating it.

Jiri, your test seems to past,
could you try invoking the import again with the latest proposed changes to
the OVF configuration (adding ovf:size to the File element and removing the
USB item) and update us?


>
> >
> >   https://libvirt.org/aclpolkit.html
> >
> > Rich.
> >
>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] problem importing ova vm

2018-02-22 Thread Jiří Sléžka
On 02/22/2018 01:58 PM, Richard W.M. Jones wrote:
> On Thu, Feb 22, 2018 at 01:27:18PM +0100, Jiří Sléžka wrote:
>> libvirt needs authentication to connect to libvirt URI qemu:///system
>> (see also: http://libvirt.org/auth.html http://libvirt.org/uri.html)
> 
> You can set the backend to direct to avoid needing libvirt:
> 
>   export LIBGUESTFS_BACKEND=direct
> 
> Alternately you can fiddle with the libvirt polkit configuration
> to permit access:

thanks, here is full output

http://mirror.slu.cz/tmp/libguestfs-test-tool.txt

Jiri

> 
>   https://libvirt.org/aclpolkit.html
> 
> Rich.
> 




smime.p7s
Description: S/MIME Cryptographic Signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] problem importing ova vm

2018-02-22 Thread Richard W.M. Jones
On Thu, Feb 22, 2018 at 01:27:18PM +0100, Jiří Sléžka wrote:
> libvirt needs authentication to connect to libvirt URI qemu:///system
> (see also: http://libvirt.org/auth.html http://libvirt.org/uri.html)

You can set the backend to direct to avoid needing libvirt:

  export LIBGUESTFS_BACKEND=direct

Alternately you can fiddle with the libvirt polkit configuration
to permit access:

  https://libvirt.org/aclpolkit.html

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] problem importing ova vm

2018-02-22 Thread Richard W.M. Jones
On Thu, Feb 22, 2018 at 12:09:56PM +0200, Arik Hadas wrote:
> supermin: failed to find a suitable kernel (host_cpu=x86_64).

Please run ‘libguestfs-test-tool’ and attach the complete output.

> @Richard, this is an OVA of a VM installed with Debian64 as guest OS that
> was exported from VirtualBox, is it supported by virt-v2v?

No, we only support OVAs exported from VMware.  OVF isn't a
real standard, it's a ploy by VMware to pretend that they
conform to standards.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] problem importing ova vm

2018-02-22 Thread Arik Hadas
So I have some good news and some bad news.

The good news is that I just used the provided OVA and identified the
issues that prevent oVirt from processing its OVF configuration:
1. The  element in the References section lacks ovf:size attribute
and oVirt unfortunately, is not prepared for this.
2. The USB item doesn't include an oVirt-specific attribute (makes sense..)
that oVirt require (that doesn't make sense..) called usbPolicy.

I'll post fixes for those issues.
In the meantime, the OVF can be modified with the following changes:
1. Add ovf:size="3221225472" to the File element (there's no need for more
than 3gb, even 2gb should be enough).
2. Remove the following Item:



  0

  usb

  USB Controller

  usb

  6

  23



The bad news is that the conversion that would finally start with those
changes then fails on my host (with virt-v2v v1.36.3) with the following
error:

supermin: failed to find a suitable kernel (host_cpu=x86_64).


I looked for kernels in /boot and modules in /lib/modules.


If this is a Xen guest, and you only have Xen domU kernels

installed, try installing a fullvirt kernel (only for

supermin use, you shouldn't boot the Xen guest with it).

libguestfs: trace: v2v: launch = -1 (error)


@Richard, this is an OVA of a VM installed with Debian64 as guest OS that
was exported from VirtualBox, is it supported by virt-v2v?

On Wed, Feb 21, 2018 at 7:10 PM, Jiří Sléžka  wrote:

> On 02/21/2018 05:35 PM, Arik Hadas wrote:
> >
> >
> > On Wed, Feb 21, 2018 at 6:03 PM, Jiří Sléžka  > > wrote:
> >
> > On 02/21/2018 03:43 PM, Jiří Sléžka wrote:
> > > On 02/20/2018 11:09 PM, Arik Hadas wrote:
> > >>
> > >>
> > >> On Tue, Feb 20, 2018 at 6:37 PM, Jiří Sléžka  > 
> > >> >> wrote:
> > >>
> > >> On 02/20/2018 03:48 PM, Arik Hadas wrote:
> > >> >
> > >> >
> > >> > On Tue, Feb 20, 2018 at 3:49 PM, Jiří Sléžka
> > 
> > >
> > >> > 
> >  > >> >
> > >> > Hi Arik,
> > >> >
> > >> > On 02/20/2018 01:22 PM, Arik Hadas wrote:
> > >> > >
> > >> > >
> > >> > > On Tue, Feb 20, 2018 at 2:03 PM, Jiří Sléžka
> > 
> > >
> > >> 
> > >>
> > >> > >  >   > >
> > >> 
> >  wrote:
> > >> > >
> > >> > > Hi,
> > >> > >
> > >> > >
> > >> > > Hi Jiří,
> > >> > >
> > >> > >
> > >> > >
> > >> > > I would like to try import some ova files into
> > our oVirt
> > >> instance [1]
> > >> > > [2] but I facing problems.
> > >> > >
> > >> > > I have downloaded all ova images into one of hosts
> > >> (ovirt01) into
> > >> > > direcory /ova
> > >> > >
> > >> > > ll /ova/
> > >> > > total 6532872
> > >> > > -rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21
> > >> HAAS-hpcowrie.ovf
> > >> > > -rw-r--r--. 1 vdsm kvm 785984 Feb 16 16:22
> > >> HAAS-hpdio.ova
> > >> > > -rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22
> > >> HAAS-hpjdwpd.ova
> > >> > > -rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23
> > >> HAAS-hptelnetd.ova
> > >> > > -rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23
> > >> HAAS-hpuchotcp.ova
> > >> > > -rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24
> > >> HAAS-hpuchoudp.ova
> > >> > > -rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24
> > >> HAAS-hpuchoweb.ova
> > >> > >
> > >> > > Then I tried to import them - from host ovirt01
> and
> > >> directory /ova but
> > >> > > spinner spins infinitly and nothing is happen.
> > >> > >
> > >> > >
> > >> > > And does it work when you provide a path to the
> > actual ova
> > >> file, i.e.,
> > >> > > /ova/HAAS-hpdio.ova, rather than to the directory?
> > >>

Re: [ovirt-users] problem importing ova vm

2018-02-21 Thread Jiří Sléžka
On 02/21/2018 05:35 PM, Arik Hadas wrote:
> 
> 
> On Wed, Feb 21, 2018 at 6:03 PM, Jiří Sléžka  > wrote:
> 
> On 02/21/2018 03:43 PM, Jiří Sléžka wrote:
> > On 02/20/2018 11:09 PM, Arik Hadas wrote:
> >>
> >>
> >> On Tue, Feb 20, 2018 at 6:37 PM, Jiří Sléžka  
> >> >> wrote:
> >>
> >>     On 02/20/2018 03:48 PM, Arik Hadas wrote:
> >>     >
> >>     >
> >>     > On Tue, Feb 20, 2018 at 3:49 PM, Jiří Sléžka
> 
> >
> >>     > 
>  >>     >
> >>     >     Hi Arik,
> >>     >
> >>     >     On 02/20/2018 01:22 PM, Arik Hadas wrote:
> >>     >     >
> >>     >     >
> >>     >     > On Tue, Feb 20, 2018 at 2:03 PM, Jiří Sléžka
> 
> >
> >>     
> >>
> >>     >     >    >
> >>     
>  wrote:
> >>     >     >
> >>     >     >     Hi,
> >>     >     >
> >>     >     >
> >>     >     > Hi Jiří,
> >>     >     >  
> >>     >     >
> >>     >     >
> >>     >     >     I would like to try import some ova files into
> our oVirt
> >>     instance [1]
> >>     >     >     [2] but I facing problems.
> >>     >     >
> >>     >     >     I have downloaded all ova images into one of hosts
> >>     (ovirt01) into
> >>     >     >     direcory /ova
> >>     >     >
> >>     >     >     ll /ova/
> >>     >     >     total 6532872
> >>     >     >     -rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21
> >>     HAAS-hpcowrie.ovf
> >>     >     >     -rw-r--r--. 1 vdsm kvm 785984 Feb 16 16:22
> >>     HAAS-hpdio.ova
> >>     >     >     -rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22
> >>     HAAS-hpjdwpd.ova
> >>     >     >     -rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23
> >>     HAAS-hptelnetd.ova
> >>     >     >     -rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23
> >>     HAAS-hpuchotcp.ova
> >>     >     >     -rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24
> >>     HAAS-hpuchoudp.ova
> >>     >     >     -rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24
> >>     HAAS-hpuchoweb.ova
> >>     >     >
> >>     >     >     Then I tried to import them - from host ovirt01 and
> >>     directory /ova but
> >>     >     >     spinner spins infinitly and nothing is happen.
> >>     >     >
> >>     >     >
> >>     >     > And does it work when you provide a path to the
> actual ova
> >>     file, i.e.,
> >>     >     > /ova/HAAS-hpdio.ova, rather than to the directory?
> >>     >
> >>     >     this time it ends with "Failed to load VM configuration
> from
> >>     OVA file:
> >>     >     /ova/HAAS-hpdio.ova" error. 
> >>     >
> >>     >
> >>     > Note that the logic that is applied on a specified folder
> is "try
> >>     > fetching an 'ova folder' out of the destination folder"
> rather than
> >>     > "list all the ova files inside the specified folder". It seems
> >>     that you
> >>     > expected the former output since there are no disks in that
> >>     folder, right?
> >>
> >>     yes, It would be more user friendly to list all ova files and
> then
> >>     select which one to import (like listing all vms in vmware
> import)
> >>
> >>     Maybe description of path field in manager should be "Path to
> ova file"
> >>     instead of "Path" :-)
> >>
> >>
> >> Sorry, I obviously meant 'latter' rather than 'former' before..
> >> Yeah, I agree that would be better, at least until listing the
> OVA files
> >> in the folder is implemented (that was the original plan, btw) -
> could
> >> you please file a bug?
> >
> > yes, sure
> >
> >
> >>     >     >     I cannot see anything relevant in vdsm log of
> host ovirt01.
> >>     >     >
> >>     >     >     In the engine.log of our standalone ovirt manager
> is just this
> >>     >     >     relevant line
> >>     >     >
> >>     >     >     2018-02-20 12:35:04,289+01 INFO
> >>     >     >   
>  

Re: [ovirt-users] problem importing ova vm

2018-02-21 Thread Arik Hadas
On Wed, Feb 21, 2018 at 6:03 PM, Jiří Sléžka  wrote:

> On 02/21/2018 03:43 PM, Jiří Sléžka wrote:
> > On 02/20/2018 11:09 PM, Arik Hadas wrote:
> >>
> >>
> >> On Tue, Feb 20, 2018 at 6:37 PM, Jiří Sléžka  >> > wrote:
> >>
> >> On 02/20/2018 03:48 PM, Arik Hadas wrote:
> >> >
> >> >
> >> > On Tue, Feb 20, 2018 at 3:49 PM, Jiří Sléžka  
> >> > >> wrote:
> >> >
> >> > Hi Arik,
> >> >
> >> > On 02/20/2018 01:22 PM, Arik Hadas wrote:
> >> > >
> >> > >
> >> > > On Tue, Feb 20, 2018 at 2:03 PM, Jiří Sléžka <
> jiri.sle...@slu.cz 
> >> >
> >> > > 
> >>  >> > >
> >> > > Hi,
> >> > >
> >> > >
> >> > > Hi Jiří,
> >> > >
> >> > >
> >> > >
> >> > > I would like to try import some ova files into our oVirt
> >> instance [1]
> >> > > [2] but I facing problems.
> >> > >
> >> > > I have downloaded all ova images into one of hosts
> >> (ovirt01) into
> >> > > direcory /ova
> >> > >
> >> > > ll /ova/
> >> > > total 6532872
> >> > > -rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21
> >> HAAS-hpcowrie.ovf
> >> > > -rw-r--r--. 1 vdsm kvm 785984 Feb 16 16:22
> >> HAAS-hpdio.ova
> >> > > -rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22
> >> HAAS-hpjdwpd.ova
> >> > > -rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23
> >> HAAS-hptelnetd.ova
> >> > > -rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23
> >> HAAS-hpuchotcp.ova
> >> > > -rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24
> >> HAAS-hpuchoudp.ova
> >> > > -rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24
> >> HAAS-hpuchoweb.ova
> >> > >
> >> > > Then I tried to import them - from host ovirt01 and
> >> directory /ova but
> >> > > spinner spins infinitly and nothing is happen.
> >> > >
> >> > >
> >> > > And does it work when you provide a path to the actual ova
> >> file, i.e.,
> >> > > /ova/HAAS-hpdio.ova, rather than to the directory?
> >> >
> >> > this time it ends with "Failed to load VM configuration from
> >> OVA file:
> >> > /ova/HAAS-hpdio.ova" error.
> >> >
> >> >
> >> > Note that the logic that is applied on a specified folder is "try
> >> > fetching an 'ova folder' out of the destination folder" rather
> than
> >> > "list all the ova files inside the specified folder". It seems
> >> that you
> >> > expected the former output since there are no disks in that
> >> folder, right?
> >>
> >> yes, It would be more user friendly to list all ova files and then
> >> select which one to import (like listing all vms in vmware import)
> >>
> >> Maybe description of path field in manager should be "Path to ova
> file"
> >> instead of "Path" :-)
> >>
> >>
> >> Sorry, I obviously meant 'latter' rather than 'former' before..
> >> Yeah, I agree that would be better, at least until listing the OVA files
> >> in the folder is implemented (that was the original plan, btw) - could
> >> you please file a bug?
> >
> > yes, sure
> >
> >
> >> > > I cannot see anything relevant in vdsm log of host
> ovirt01.
> >> > >
> >> > > In the engine.log of our standalone ovirt manager is
> just this
> >> > > relevant line
> >> > >
> >> > > 2018-02-20 12:35:04,289+01 INFO
> >> > > 
> >> [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor]
> (default
> >> > > task-31) [458990a7-b054-491a-904e-5c4fe44892c4]
> Executing Ansible
> >> > > command: ANSIBLE_STDOUT_CALLBACK=ovaqueryplugin
> >> > > [/usr/bin/ansible-playbook,
> >> > > --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa,
> >> > > --inventory=/tmp/ansible-inventory8237874608161160784,
> >> > > --extra-vars=ovirt_query_ova_path=/ova,
> >> > > /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml]
> [Logfile:
> >> > > /var/log/ovirt-engine/ova/ovirt-query-ova-ansible-
> 20180220123504-ovirt01.net
> >> 
> >> >  >> >
> >> > >  >> 
> >> > 

Re: [ovirt-users] problem importing ova vm

2018-02-21 Thread Jiří Sléžka
On 02/21/2018 03:43 PM, Jiří Sléžka wrote:
> On 02/20/2018 11:09 PM, Arik Hadas wrote:
>>
>>
>> On Tue, Feb 20, 2018 at 6:37 PM, Jiří Sléžka > > wrote:
>>
>> On 02/20/2018 03:48 PM, Arik Hadas wrote:
>> >
>> >
>> > On Tue, Feb 20, 2018 at 3:49 PM, Jiří Sléžka > 
>> > >> wrote:
>> >
>> >     Hi Arik,
>> >
>> >     On 02/20/2018 01:22 PM, Arik Hadas wrote:
>> >     >
>> >     >
>> >     > On Tue, Feb 20, 2018 at 2:03 PM, Jiří Sléžka > 
>> >
>> >     > 
>> > >     >
>> >     >     Hi,
>> >     >
>> >     >
>> >     > Hi Jiří,
>> >     >  
>> >     >
>> >     >
>> >     >     I would like to try import some ova files into our oVirt
>> instance [1]
>> >     >     [2] but I facing problems.
>> >     >
>> >     >     I have downloaded all ova images into one of hosts
>> (ovirt01) into
>> >     >     direcory /ova
>> >     >
>> >     >     ll /ova/
>> >     >     total 6532872
>> >     >     -rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21
>> HAAS-hpcowrie.ovf
>> >     >     -rw-r--r--. 1 vdsm kvm 785984 Feb 16 16:22
>> HAAS-hpdio.ova
>> >     >     -rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22
>> HAAS-hpjdwpd.ova
>> >     >     -rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23
>> HAAS-hptelnetd.ova
>> >     >     -rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23
>> HAAS-hpuchotcp.ova
>> >     >     -rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24
>> HAAS-hpuchoudp.ova
>> >     >     -rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24
>> HAAS-hpuchoweb.ova
>> >     >
>> >     >     Then I tried to import them - from host ovirt01 and
>> directory /ova but
>> >     >     spinner spins infinitly and nothing is happen.
>> >     >
>> >     >
>> >     > And does it work when you provide a path to the actual ova
>> file, i.e.,
>> >     > /ova/HAAS-hpdio.ova, rather than to the directory?
>> >
>> >     this time it ends with "Failed to load VM configuration from
>> OVA file:
>> >     /ova/HAAS-hpdio.ova" error. 
>> >
>> >
>> > Note that the logic that is applied on a specified folder is "try
>> > fetching an 'ova folder' out of the destination folder" rather than
>> > "list all the ova files inside the specified folder". It seems
>> that you
>> > expected the former output since there are no disks in that
>> folder, right?
>>
>> yes, It would be more user friendly to list all ova files and then
>> select which one to import (like listing all vms in vmware import)
>>
>> Maybe description of path field in manager should be "Path to ova file"
>> instead of "Path" :-)
>>
>>
>> Sorry, I obviously meant 'latter' rather than 'former' before..
>> Yeah, I agree that would be better, at least until listing the OVA files
>> in the folder is implemented (that was the original plan, btw) - could
>> you please file a bug?
> 
> yes, sure
> 
> 
>> >     >     I cannot see anything relevant in vdsm log of host ovirt01.
>> >     >
>> >     >     In the engine.log of our standalone ovirt manager is just 
>> this
>> >     >     relevant line
>> >     >
>> >     >     2018-02-20 12:35:04,289+01 INFO
>> >     >     [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] 
>> (default
>> >     >     task-31) [458990a7-b054-491a-904e-5c4fe44892c4] Executing 
>> Ansible
>> >     >     command: ANSIBLE_STDOUT_CALLBACK=ovaqueryplugin
>> >     >     [/usr/bin/ansible-playbook,
>> >     >     --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa,
>> >     >     --inventory=/tmp/ansible-inventory8237874608161160784,
>> >     >     --extra-vars=ovirt_query_ova_path=/ova,
>> >     >     /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml] 
>> [Logfile:
>> >     >     
>> /var/log/ovirt-engine/ova/ovirt-query-ova-ansible-20180220123504-ovirt01.net
>> 
>> >     > >
>> >     >     > 
>> >     > >>.slu.cz.log]
>> >     >
>> >     >     also there are two ansible processes which are still running
>> >     (and makes
>> >     >     heavy load on system (load 9+ and growing, it looks like it
>>

Re: [ovirt-users] problem importing ova vm

2018-02-21 Thread Jiří Sléžka
On 02/20/2018 11:09 PM, Arik Hadas wrote:
> 
> 
> On Tue, Feb 20, 2018 at 6:37 PM, Jiří Sléžka  > wrote:
> 
> On 02/20/2018 03:48 PM, Arik Hadas wrote:
> >
> >
> > On Tue, Feb 20, 2018 at 3:49 PM, Jiří Sléžka  
> > >> wrote:
> >
> >     Hi Arik,
> >
> >     On 02/20/2018 01:22 PM, Arik Hadas wrote:
> >     >
> >     >
> >     > On Tue, Feb 20, 2018 at 2:03 PM, Jiří Sléžka  
> >
> >     > 
>  >     >
> >     >     Hi,
> >     >
> >     >
> >     > Hi Jiří,
> >     >  
> >     >
> >     >
> >     >     I would like to try import some ova files into our oVirt
> instance [1]
> >     >     [2] but I facing problems.
> >     >
> >     >     I have downloaded all ova images into one of hosts
> (ovirt01) into
> >     >     direcory /ova
> >     >
> >     >     ll /ova/
> >     >     total 6532872
> >     >     -rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21
> HAAS-hpcowrie.ovf
> >     >     -rw-r--r--. 1 vdsm kvm 785984 Feb 16 16:22
> HAAS-hpdio.ova
> >     >     -rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22
> HAAS-hpjdwpd.ova
> >     >     -rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23
> HAAS-hptelnetd.ova
> >     >     -rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23
> HAAS-hpuchotcp.ova
> >     >     -rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24
> HAAS-hpuchoudp.ova
> >     >     -rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24
> HAAS-hpuchoweb.ova
> >     >
> >     >     Then I tried to import them - from host ovirt01 and
> directory /ova but
> >     >     spinner spins infinitly and nothing is happen.
> >     >
> >     >
> >     > And does it work when you provide a path to the actual ova
> file, i.e.,
> >     > /ova/HAAS-hpdio.ova, rather than to the directory?
> >
> >     this time it ends with "Failed to load VM configuration from
> OVA file:
> >     /ova/HAAS-hpdio.ova" error. 
> >
> >
> > Note that the logic that is applied on a specified folder is "try
> > fetching an 'ova folder' out of the destination folder" rather than
> > "list all the ova files inside the specified folder". It seems
> that you
> > expected the former output since there are no disks in that
> folder, right?
> 
> yes, It would be more user friendly to list all ova files and then
> select which one to import (like listing all vms in vmware import)
> 
> Maybe description of path field in manager should be "Path to ova file"
> instead of "Path" :-)
> 
> 
> Sorry, I obviously meant 'latter' rather than 'former' before..
> Yeah, I agree that would be better, at least until listing the OVA files
> in the folder is implemented (that was the original plan, btw) - could
> you please file a bug?

yes, sure


> >     >     I cannot see anything relevant in vdsm log of host ovirt01.
> >     >
> >     >     In the engine.log of our standalone ovirt manager is just this
> >     >     relevant line
> >     >
> >     >     2018-02-20 12:35:04,289+01 INFO
> >     >     [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] 
> (default
> >     >     task-31) [458990a7-b054-491a-904e-5c4fe44892c4] Executing 
> Ansible
> >     >     command: ANSIBLE_STDOUT_CALLBACK=ovaqueryplugin
> >     >     [/usr/bin/ansible-playbook,
> >     >     --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa,
> >     >     --inventory=/tmp/ansible-inventory8237874608161160784,
> >     >     --extra-vars=ovirt_query_ova_path=/ova,
> >     >     /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml] 
> [Logfile:
> >     >     
> /var/log/ovirt-engine/ova/ovirt-query-ova-ansible-20180220123504-ovirt01.net
> 
> >      >
> >     >      
> >      >>.slu.cz.log]
> >     >
> >     >     also there are two ansible processes which are still running
> >     (and makes
> >     >     heavy load on system (load 9+ and growing, it looks like it
> >     eats all the
> >     >     memory and system starts swapping))
> >     >
> >     >     ovirt    32087  3.3  0.0 332252  5980 ?        Sl 
>  

Re: [ovirt-users] problem importing ova vm

2018-02-20 Thread Arik Hadas
On Tue, Feb 20, 2018 at 6:37 PM, Jiří Sléžka  wrote:

> On 02/20/2018 03:48 PM, Arik Hadas wrote:
> >
> >
> > On Tue, Feb 20, 2018 at 3:49 PM, Jiří Sléžka  > > wrote:
> >
> > Hi Arik,
> >
> > On 02/20/2018 01:22 PM, Arik Hadas wrote:
> > >
> > >
> > > On Tue, Feb 20, 2018 at 2:03 PM, Jiří Sléžka  
> > > >> wrote:
> > >
> > > Hi,
> > >
> > >
> > > Hi Jiří,
> > >
> > >
> > >
> > > I would like to try import some ova files into our oVirt
> instance [1]
> > > [2] but I facing problems.
> > >
> > > I have downloaded all ova images into one of hosts (ovirt01)
> into
> > > direcory /ova
> > >
> > > ll /ova/
> > > total 6532872
> > > -rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21
> HAAS-hpcowrie.ovf
> > > -rw-r--r--. 1 vdsm kvm 785984 Feb 16 16:22 HAAS-hpdio.ova
> > > -rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22 HAAS-hpjdwpd.ova
> > > -rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23
> HAAS-hptelnetd.ova
> > > -rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23
> HAAS-hpuchotcp.ova
> > > -rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24
> HAAS-hpuchoudp.ova
> > > -rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24
> HAAS-hpuchoweb.ova
> > >
> > > Then I tried to import them - from host ovirt01 and directory
> /ova but
> > > spinner spins infinitly and nothing is happen.
> > >
> > >
> > > And does it work when you provide a path to the actual ova file,
> i.e.,
> > > /ova/HAAS-hpdio.ova, rather than to the directory?
> >
> > this time it ends with "Failed to load VM configuration from OVA
> file:
> > /ova/HAAS-hpdio.ova" error.
> >
> >
> > Note that the logic that is applied on a specified folder is "try
> > fetching an 'ova folder' out of the destination folder" rather than
> > "list all the ova files inside the specified folder". It seems that you
> > expected the former output since there are no disks in that folder,
> right?
>
> yes, It would be more user friendly to list all ova files and then
> select which one to import (like listing all vms in vmware import)
>
> Maybe description of path field in manager should be "Path to ova file"
> instead of "Path" :-)
>

Sorry, I obviously meant 'latter' rather than 'former' before..
Yeah, I agree that would be better, at least until listing the OVA files in
the folder is implemented (that was the original plan, btw) - could you
please file a bug?


>
> > > I cannot see anything relevant in vdsm log of host ovirt01.
> > >
> > > In the engine.log of our standalone ovirt manager is just this
> > > relevant line
> > >
> > > 2018-02-20 12:35:04,289+01 INFO
> > > [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor]
> (default
> > > task-31) [458990a7-b054-491a-904e-5c4fe44892c4] Executing
> Ansible
> > > command: ANSIBLE_STDOUT_CALLBACK=ovaqueryplugin
> > > [/usr/bin/ansible-playbook,
> > > --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa,
> > > --inventory=/tmp/ansible-inventory8237874608161160784,
> > > --extra-vars=ovirt_query_ova_path=/ova,
> > > /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml]
> [Logfile:
> > > /var/log/ovirt-engine/ova/ovirt-query-ova-ansible-
> 20180220123504-ovirt01.net
> > 
> > >  > >.slu.cz.log]
> > >
> > > also there are two ansible processes which are still running
> > (and makes
> > > heavy load on system (load 9+ and growing, it looks like it
> > eats all the
> > > memory and system starts swapping))
> > >
> > > ovirt32087  3.3  0.0 332252  5980 ?Sl   12:35
>  0:41
> > > /usr/bin/python2 /usr/bin/ansible-playbook
> > > --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa
> > > --inventory=/tmp/ansible-inventory8237874608161160784
> > > --extra-vars=ovirt_query_ova_path=/ova
> > > /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml
> > > ovirt32099 57.5 78.9 15972880 11215312 ?   R12:35
> 11:52
> > > /usr/bin/python2 /usr/bin/ansible-playbook
> > > --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa
> > > --inventory=/tmp/ansible-inventory8237874608161160784
> > > --extra-vars=ovirt_query_ova_path=/ova
> > > /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml
> > >
> > > playbook looks like
> > >
> > > - hosts: all
> > >   remote_user: root
> > >   gather_facts: no
> > >
> > >   roles:
> >  

Re: [ovirt-users] problem importing ova vm

2018-02-20 Thread Jiří Sléžka
On 02/20/2018 03:48 PM, Arik Hadas wrote:
> 
> 
> On Tue, Feb 20, 2018 at 3:49 PM, Jiří Sléžka  > wrote:
> 
> Hi Arik,
> 
> On 02/20/2018 01:22 PM, Arik Hadas wrote:
> >
> >
> > On Tue, Feb 20, 2018 at 2:03 PM, Jiří Sléžka  
> > >> wrote:
> >
> >     Hi,
> >
> >
> > Hi Jiří,
> >  
> >
> >
> >     I would like to try import some ova files into our oVirt instance 
> [1]
> >     [2] but I facing problems.
> >
> >     I have downloaded all ova images into one of hosts (ovirt01) into
> >     direcory /ova
> >
> >     ll /ova/
> >     total 6532872
> >     -rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21 HAAS-hpcowrie.ovf
> >     -rw-r--r--. 1 vdsm kvm 785984 Feb 16 16:22 HAAS-hpdio.ova
> >     -rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22 HAAS-hpjdwpd.ova
> >     -rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23 HAAS-hptelnetd.ova
> >     -rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23 HAAS-hpuchotcp.ova
> >     -rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24 HAAS-hpuchoudp.ova
> >     -rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24 HAAS-hpuchoweb.ova
> >
> >     Then I tried to import them - from host ovirt01 and directory /ova 
> but
> >     spinner spins infinitly and nothing is happen.
> >
> >
> > And does it work when you provide a path to the actual ova file, i.e.,
> > /ova/HAAS-hpdio.ova, rather than to the directory?
> 
> this time it ends with "Failed to load VM configuration from OVA file:
> /ova/HAAS-hpdio.ova" error. 
> 
> 
> Note that the logic that is applied on a specified folder is "try
> fetching an 'ova folder' out of the destination folder" rather than
> "list all the ova files inside the specified folder". It seems that you
> expected the former output since there are no disks in that folder, right?

yes, It would be more user friendly to list all ova files and then
select which one to import (like listing all vms in vmware import)

Maybe description of path field in manager should be "Path to ova file"
instead of "Path" :-)

> >     I cannot see anything relevant in vdsm log of host ovirt01.
> >
> >     In the engine.log of our standalone ovirt manager is just this
> >     relevant line
> >
> >     2018-02-20 12:35:04,289+01 INFO
> >     [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] 
> (default
> >     task-31) [458990a7-b054-491a-904e-5c4fe44892c4] Executing Ansible
> >     command: ANSIBLE_STDOUT_CALLBACK=ovaqueryplugin
> >     [/usr/bin/ansible-playbook,
> >     --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa,
> >     --inventory=/tmp/ansible-inventory8237874608161160784,
> >     --extra-vars=ovirt_query_ova_path=/ova,
> >     /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml] [Logfile:
> >     
> /var/log/ovirt-engine/ova/ovirt-query-ova-ansible-20180220123504-ovirt01.net
> 
> >      >.slu.cz.log]
> >
> >     also there are two ansible processes which are still running
> (and makes
> >     heavy load on system (load 9+ and growing, it looks like it
> eats all the
> >     memory and system starts swapping))
> >
> >     ovirt    32087  3.3  0.0 332252  5980 ?        Sl   12:35   0:41
> >     /usr/bin/python2 /usr/bin/ansible-playbook
> >     --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa
> >     --inventory=/tmp/ansible-inventory8237874608161160784
> >     --extra-vars=ovirt_query_ova_path=/ova
> >     /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml
> >     ovirt    32099 57.5 78.9 15972880 11215312 ?   R    12:35  11:52
> >     /usr/bin/python2 /usr/bin/ansible-playbook
> >     --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa
> >     --inventory=/tmp/ansible-inventory8237874608161160784
> >     --extra-vars=ovirt_query_ova_path=/ova
> >     /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml
> >
> >     playbook looks like
> >
> >     - hosts: all
> >       remote_user: root
> >       gather_facts: no
> >
> >       roles:
> >         - ovirt-ova-query
> >
> >     and it looks like it only runs query_ova.py but on all hosts?
> >
> >
> > No, the engine provides ansible the host to run on when it
> executes the
> > playbook.
> > It would only be executed on the selected host.
> >  
> >
> >
> >     How does this work? ...or should it work?
> >
> >
> > It should, especially that part of querying the OVA and is supposed to
> > be really quick.
> > Can you please share the 

Re: [ovirt-users] problem importing ova vm

2018-02-20 Thread Arik Hadas
On Tue, Feb 20, 2018 at 2:03 PM, Jiří Sléžka  wrote:

> Hi,
>

Hi Jiří,


>
> I would like to try import some ova files into our oVirt instance [1]
> [2] but I facing problems.
>
> I have downloaded all ova images into one of hosts (ovirt01) into
> direcory /ova
>
> ll /ova/
> total 6532872
> -rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21 HAAS-hpcowrie.ovf
> -rw-r--r--. 1 vdsm kvm 785984 Feb 16 16:22 HAAS-hpdio.ova
> -rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22 HAAS-hpjdwpd.ova
> -rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23 HAAS-hptelnetd.ova
> -rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23 HAAS-hpuchotcp.ova
> -rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24 HAAS-hpuchoudp.ova
> -rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24 HAAS-hpuchoweb.ova
>
> Then I tried to import them - from host ovirt01 and directory /ova but
> spinner spins infinitly and nothing is happen.
>

And does it work when you provide a path to the actual ova file, i.e.,
/ova/HAAS-hpdio.ova, rather than to the directory?


>
> I cannot see anything relevant in vdsm log of host ovirt01.
>
> In the engine.log of our standalone ovirt manager is just this relevant
> line
>
> 2018-02-20 12:35:04,289+01 INFO
> [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (default
> task-31) [458990a7-b054-491a-904e-5c4fe44892c4] Executing Ansible
> command: ANSIBLE_STDOUT_CALLBACK=ovaqueryplugin
> [/usr/bin/ansible-playbook,
> --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa,
> --inventory=/tmp/ansible-inventory8237874608161160784,
> --extra-vars=ovirt_query_ova_path=/ova,
> /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml] [Logfile:
> /var/log/ovirt-engine/ova/ovirt-query-ova-ansible-
> 20180220123504-ovirt01.net.slu.cz.log]
>
> also there are two ansible processes which are still running (and makes
> heavy load on system (load 9+ and growing, it looks like it eats all the
> memory and system starts swapping))
>
> ovirt32087  3.3  0.0 332252  5980 ?Sl   12:35   0:41
> /usr/bin/python2 /usr/bin/ansible-playbook
> --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa
> --inventory=/tmp/ansible-inventory8237874608161160784
> --extra-vars=ovirt_query_ova_path=/ova
> /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml
> ovirt32099 57.5 78.9 15972880 11215312 ?   R12:35  11:52
> /usr/bin/python2 /usr/bin/ansible-playbook
> --private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa
> --inventory=/tmp/ansible-inventory8237874608161160784
> --extra-vars=ovirt_query_ova_path=/ova
> /usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml
>
> playbook looks like
>
> - hosts: all
>   remote_user: root
>   gather_facts: no
>
>   roles:
> - ovirt-ova-query
>
> and it looks like it only runs query_ova.py but on all hosts?
>

No, the engine provides ansible the host to run on when it executes the
playbook.
It would only be executed on the selected host.


>
> How does this work? ...or should it work?
>

It should, especially that part of querying the OVA and is supposed to be
really quick.
Can you please share the engine log and /var/log/ovirt-engine/ova/
ovirt-query-ova-ansible-20180220123504-ovirt01.net.slu.cz.log ?


>
> I am using latest 4.2.1.7-1.el7.centos version
>
> Cheers,
> Jiri Slezka
>
>
> [1] https://haas.cesnet.cz/#!index.md - Cesnet HAAS
> [2] https://haas.cesnet.cz/downloads/release-01/ - Image repository
>
>
> ___
> 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


[ovirt-users] problem importing ova vm

2018-02-20 Thread Jiří Sléžka
Hi,

I would like to try import some ova files into our oVirt instance [1]
[2] but I facing problems.

I have downloaded all ova images into one of hosts (ovirt01) into
direcory /ova

ll /ova/
total 6532872
-rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21 HAAS-hpcowrie.ovf
-rw-r--r--. 1 vdsm kvm 785984 Feb 16 16:22 HAAS-hpdio.ova
-rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22 HAAS-hpjdwpd.ova
-rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23 HAAS-hptelnetd.ova
-rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23 HAAS-hpuchotcp.ova
-rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24 HAAS-hpuchoudp.ova
-rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24 HAAS-hpuchoweb.ova

Then I tried to import them - from host ovirt01 and directory /ova but
spinner spins infinitly and nothing is happen.

I cannot see anything relevant in vdsm log of host ovirt01.

In the engine.log of our standalone ovirt manager is just this relevant line

2018-02-20 12:35:04,289+01 INFO
[org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (default
task-31) [458990a7-b054-491a-904e-5c4fe44892c4] Executing Ansible
command: ANSIBLE_STDOUT_CALLBACK=ovaqueryplugin
[/usr/bin/ansible-playbook,
--private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa,
--inventory=/tmp/ansible-inventory8237874608161160784,
--extra-vars=ovirt_query_ova_path=/ova,
/usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml] [Logfile:
/var/log/ovirt-engine/ova/ovirt-query-ova-ansible-20180220123504-ovirt01.net.slu.cz.log]

also there are two ansible processes which are still running (and makes
heavy load on system (load 9+ and growing, it looks like it eats all the
memory and system starts swapping))

ovirt32087  3.3  0.0 332252  5980 ?Sl   12:35   0:41
/usr/bin/python2 /usr/bin/ansible-playbook
--private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa
--inventory=/tmp/ansible-inventory8237874608161160784
--extra-vars=ovirt_query_ova_path=/ova
/usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml
ovirt32099 57.5 78.9 15972880 11215312 ?   R12:35  11:52
/usr/bin/python2 /usr/bin/ansible-playbook
--private-key=/etc/pki/ovirt-engine/keys/engine_id_rsa
--inventory=/tmp/ansible-inventory8237874608161160784
--extra-vars=ovirt_query_ova_path=/ova
/usr/share/ovirt-engine/playbooks/ovirt-ova-query.yml

playbook looks like

- hosts: all
  remote_user: root
  gather_facts: no

  roles:
- ovirt-ova-query

and it looks like it only runs query_ova.py but on all hosts?

How does this work? ...or should it work?

I am using latest 4.2.1.7-1.el7.centos version

Cheers,
Jiri Slezka


[1] https://haas.cesnet.cz/#!index.md - Cesnet HAAS
[2] https://haas.cesnet.cz/downloads/release-01/ - Image repository



smime.p7s
Description: S/MIME Cryptographic Signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users