[ovirt-users] problem importing ova vm

Jiří Sléžka jiri.slezka at slu.cz
Tue Feb 20 13:49:08 UTC 2018


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.slezka at slu.cz
> <mailto:jiri.slezka at slu.cz>> 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 1111785984 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.

>     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
>     <http://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 engine log and
> /var/log/ovirt-engine/ova/ovirt-query-ova-ansible-20180220123504-ovirt01.net
> <http://20180220123504-ovirt01.net>.slu.cz.log ?

engine log is here:

https://pastebin.com/nWWM3UUq

file
/var/log/ovirt-engine/ova/ovirt-query-ova-ansible-20180220123504-ovirt01.net
in the fact does not exists (nor folder /var/log/ovirt-engine/ova/)


Cheers,

Jiri Slezka

>  
> 
> 
>     I am using latest 4.2.1.7-1.el7.centos version
> 
>     Cheers,
>     Jiri Slezka
> 
> 
>     [1] https://haas.cesnet.cz/#!index.md
>     <https://haas.cesnet.cz/#!index.md> - Cesnet HAAS
>     [2] https://haas.cesnet.cz/downloads/release-01/
>     <https://haas.cesnet.cz/downloads/release-01/> - Image repository
> 
> 
>     _______________________________________________
>     Users mailing list
>     Users at ovirt.org <mailto:Users at ovirt.org>
>     http://lists.ovirt.org/mailman/listinfo/users
>     <http://lists.ovirt.org/mailman/listinfo/users>
> 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3716 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180220/e712a93c/attachment.p7s>


More information about the Users mailing list