RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2159964 - [RHEL-8/fabtests] Add required dependency pytest for /usr/bin/runfabtests.py running
Summary: [RHEL-8/fabtests] Add required dependency pytest for /usr/bin/runfabtests.py ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: fabtests
Version: 8.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Michal Schmidt
QA Contact: zguo
URL:
Whiteboard:
Depends On: 2159941
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-11 08:36 UTC by zguo
Modified: 2023-05-16 10:12 UTC (History)
5 users (show)

Fixed In Version: fabtests-1.17.0-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2159941
Environment:
Last Closed: 2023-05-16 08:43:15 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-144789 0 None None None 2023-01-11 08:37:27 UTC
Red Hat Product Errata RHBA-2023:2920 0 None None None 2023-05-16 08:43:17 UTC

Description zguo 2023-01-11 08:36:55 UTC
+++ This bug was initially created as a clone of Bug #2159941 +++

Description of problem:


Version-Release number of selected component (if applicable):
$ rpm -q fabtests
fabtests-1.15.1-1.el9.x86_64

How reproducible:


Steps to Reproduce:
$ /usr/bin/runfabtests.py -h
Traceback (most recent call last):
  File "/usr/bin/runfabtests.py", line 320, in <module>
    main()
  File "/usr/bin/runfabtests.py", line 270, in main
    import pytest
ModuleNotFoundError: No module named 'pytest'

Then have to install pytest manully.
$ dnf install -y python3-pytest


$ /usr/bin/runfabtests.py 
usage: runfabtests.py [-h] [-t TESTSETS] [-v] [--expression EXPRESSION] [--html HTML] [--junit-xml JUNIT_XML] [-g GOOD_ADDRESS]
                      [-e EXCLUSION_LIST] [-E ENVIRONMENTS] [-f EXCLUSION_FILE] [-N] [-p BINPATH] [-c CLIENT_INTERFACE] [-s SERVER_INTERFACE]
                      [-u UBERTEST_CONFIG_FILE] [-T TIMEOUT] [--pin-core CORE_LIST] [-S] [-C ADDITIONAL_CLIENT_ARGUMENTS]
                      [-L ADDITIONAL_SERVER_ARGUMENTS] [-b]
                      provider server_id client_id

Actual results:
ModuleNotFoundError: No module named 'pytest'

Expected results:
python3-pytest can be added as a required package of fabtests. Users need not to install it manually.

Additional info:

Comment 1 zguo 2023-01-11 08:38:06 UTC
$ /usr/bin/runfabtests.py 
Traceback (most recent call last):
  File "/usr/bin/runfabtests.py", line 320, in <module>
    main()
  File "/usr/bin/runfabtests.py", line 270, in main
    import pytest
ModuleNotFoundError: No module named 'pytest'

$ rpm -q fabtests
fabtests-1.15.1-1.el8.x86_64

Comment 8 errata-xmlrpc 2023-05-16 08:43:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (fabtests bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2920


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