Bug 1836404

Summary: missing python2-fmf dependency resulting in traceback in standard-inventory-qcow2 ImportError: No module named fmf
Product: [Fedora] Fedora EPEL Reporter: Pavel Cahyna <pcahyna>
Component: standard-test-rolesAssignee: Andrei Stepanov <astepano>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: astepano, bfinger, dperpeet, mmathesi, rmeggins, spetrosi
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: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Cahyna 2020-05-15 19:42:00 UTC
Description of problem:
/usr/share/ansible/inventory/standard-inventory-qcow2 is a python script and it imports fmf, but the package pulls in only python36-fmf (indirectly via fmf). It does not pull in the python2 version of fmf, so importing it fails.

Version-Release number of selected component (if applicable):
standard-test-roles-2.17-1.el7

How reproducible:
easily

Steps to Reproduce:
1. /usr/share/ansible/inventory/standard-inventory-qcow2 --help

Actual results:
Traceback (most recent call last):
  File "/usr/share/ansible/inventory/standard-inventory-qcow2", line 8, in <module>
    import fmf
ImportError: No module named fmf


Expected results:

usage: standard-inventory-qcow2 [-h] [--list] [--host HOST]
                                [subjects [subjects ...]]

Inventory for a QCow2 test image
...

Additional info:

Workaround is to install python2-fmf manually. The package should depend on it, or alternatively it should ship the python3 version of the inventory script.