Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1078300

Summary: python-mock missing. Required by several test suites
Product: Red Hat Enterprise Linux 7 Reporter: Alexander Todorov <atodorov>
Component: distributionAssignee: RHEL Program Management <pm-rhel>
Status: CLOSED WONTFIX QA Contact: Nobody <nobody>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: atodorov, bkabrda, jsilhan, lmiksik, lsmid, ovasik, vpavlin
Target Milestone: rcKeywords: FutureFeature, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-16 15:02:33 UTC 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:
Bug Depends On:    
Bug Blocks: 1072897, 1116874, 1116878, 1118788    

Description Alexander Todorov 2014-03-19 14:54:36 UTC
Inside blivet's source directory do:

# make test
...
======================================================================
ERROR: udev_test (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: udev_test
Traceback (most recent call last):
  File "/usr/lib64/python2.7/unittest/loader.py", line 252, in _find_tests
    module = self._get_module_from_name(name)
  File "/usr/lib64/python2.7/unittest/loader.py", line 230, in _get_module_from_name
    __import__(name)
  File "/root/blivet-0.18.33/tests/udev_test.py", line 4, in <module>
    import mock
ImportError: No module named mock



python-mock is not available in the RHEL 7 repos which makes it impossible for QE to execute this package test suite on a regular basis. Please include python-mock (in the optional channel). 

Additional info:
python-mock is build for EPEL 7 (no epel 7 repo exists at this time though):
http://koji.fedoraproject.org/koji/buildinfo?buildID=489362

Comment 3 mulhern 2014-03-20 12:07:05 UTC
Could you tell me what you mean by "the optional channel"?

Comment 4 Dave Cantrell 2014-03-20 12:48:54 UTC
This is a rel-eng request.  They need to add the python-mock package to the optional channel.  In RHEL-land, 'channels' are yum repos that provide the packages that make up RHEL.  It is divided up differently than Fedora is (which is really just one big repo).

Comment 5 Daniel Mach 2014-03-20 13:25:36 UTC
python-mock is not part of rhel-7.
If we want it in, it needs to go through the new package process.

Comment 8 Alexander Todorov 2014-06-23 09:06:31 UTC
(In reply to mulhern from comment #3)
> Could you tell me what you mean by "the optional channel"?

Sorry for the late reply,
I mean the repository called Optional/ in RHEL distro ot the channels titled -optional in RHN, not the base Server/ repo(channel).

Comment 12 Siddharth Nagar 2015-04-14 20:14:09 UTC
Why is it not enough to get this package from EPEL as a build dependency?

Comment 18 RHEL Program Management 2016-12-16 15:02:33 UTC
Product Management has reviewed and declined this request.
You may appeal this decision by reopening this request.