Bug 1836404 - missing python2-fmf dependency resulting in traceback in standard-inventory-qcow2 ImportError: No module named fmf
Summary: missing python2-fmf dependency resulting in traceback in standard-inventory-q...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: standard-test-roles
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andrei Stepanov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-15 19:42 UTC by Pavel Cahyna
Modified: 2021-01-12 08:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.