Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1623779

Summary: OVA import dialog: folder of OVAs is not loaded correctly if the folder contains other file types.
Product: [oVirt] ovirt-engine Reporter: Nisim Simsolo <nsimsolo>
Component: BLL.VirtAssignee: bugs <bugs>
Status: CLOSED WONTFIX QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: low    
Version: 4.2.6.2CC: ahadas, bugs, nsimsolo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-14 11:25:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1671397    
Attachments:
Description Flags
ovirt-query-ova-ansible log none

Description Nisim Simsolo 2018-08-30 08:02:33 UTC
Description of problem:
When entering a folder path in OVA import dialog and the folder contains OVA files and other files, the dialog is listing only 1 OVA file instead of all OVA files under that folder.

For example: 
[root@intel-vfio /]# ls -l /home/nisim/ova2/
total 15744120
-rw-r--r--. 1 root root 1855268352 Aug 28 11:12 111Alon_rhel7.ova
-rwxr-xr-x. 1 root root  982317568 Aug 28 11:12 AWS-Storage-Gateway.ova
-rw-r--r--. 1 root root  360359424 Aug 28 11:16 centos44.ova
-rw-r--r--. 1 root root 3146968064 Aug 28 11:13 Cloudera-Training-DevSH-5.7.0f-vmware.ova
-rwxr-xr-x. 1 root root   17770496 Aug 28 11:13 mini.ova
-rw-r--r--. 1 root root 1289104896 Aug 28 11:13 rhel7_2_Xen.ova
-rw-r--r--. 1 root root 1565012480 May 29 11:39 rhel_7_cpu_16242.ova
-rw-r--r--. 1 root root 1565012480 Aug 28 11:14 rhel_7_test.ova
-rw-r--r--. 1 root root  965422592 May 31 15:28 rhel7_usbPolicy1.ova
-rw-r--r--. 1 root root  721181696 Aug 28 11:15 RHEL7_with_sata.ova
-rw-r--r--. 1 root root 2027701760 May 31 15:29 rhel_complex_conf.ova
-rw-r--r--. 1 root root  645729280 Aug 28 11:15 test_v2v.ova
-rw-r--r--. 1 root root  980047872 Aug 28 11:11 ubuntu_14_10_amd64.ova
-rw-r--r--. 1 root root       9416 Aug 30 10:50 vm.ovf
[root@intel-vfio /]# 
------------------------------------------

In Webadmin import OVA dialog, only this OVA is listed: 
rhel7_2_Xen

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.6.5-0.0.master.20180828115009.gite4659c4.el7
vdsm-4.20.39-5.giteee4cd2.el7.x86_64
qemu-kvm-rhev-2.10.0-21.el7_5.5.x86_64
libvirt-client-3.9.0-14.el7_5.7.x86_64
sanlock-3.6.0-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Browse Webadmin -> compute -> VMs -> open import dialog and select OVA source.
2. Enter folder path of OVA and OVF within the same folder and click "load" button.
3.

Actual results:
only 1 OVA is listed under "virtual machine on source" pane.

Expected results:
all OVAs under that folder should be listed in "virtual machine on source" pane.

Additional info:
the VM listed in import dialog can be imported successfully.
ovirt-query-ova-ansible.log attached

Comment 1 Nisim Simsolo 2018-08-30 08:05:10 UTC
Created attachment 1479717 [details]
ovirt-query-ova-ansible log

Comment 2 Michal Skrivanek 2018-08-30 12:55:22 UTC
thoughts?

Comment 3 Arik 2018-08-30 13:10:35 UTC
(In reply to Michal Skrivanek from comment #2)
> thoughts?

Known thing, Nisim and I discussed that offline before.
IMHO, it is of a low priority. I don't think users put OVAs tar files inside OVA folder or several OVA folders inside the same directory.
We can support it, it's just an over-spec I believe.

Comment 4 Ryan Barry 2018-11-14 11:25:23 UTC
This will not make it in a reasonable time. Please re-open if you still feel this should be fixed