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 1589980 - python-twisted-core fails to install on FIPS enabled RHEL
Summary: python-twisted-core fails to install on FIPS enabled RHEL
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-twisted-core
Version: 7.5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Python Maintainers
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-11 19:02 UTC by Dennis Kliban
Modified: 2018-06-25 15:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-25 15:35:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dennis Kliban 2018-06-11 19:02:39 UTC
Description of problem:

python-twisted-core fails to install some python dependencies during install 

Version-Release number of selected component (if applicable):


How reproducible:

always

Steps to Reproduce:
1. Boot RHEL in FIPS enabled mode
2. sudo yum -y install python-twisted-core
3. Look at the output

Actual results:

Resolving Dependencies
--> Running transaction check
---> Package python-twisted-core.x86_64 0:12.2.0-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================================
 Package                                              Arch                                    Version                                        Repository                             Size
=========================================================================================================================================================================================
Installing:
 python-twisted-core                                  x86_64                                  12.2.0-4.el7                                   base                                  2.5 M

Transaction Summary
=========================================================================================================================================================================================
Install  1 Package

Total download size: 2.5 M
Installed size: 13 M
Is this ok [y/d/N]: y
Downloading packages:
python-twisted-core-12.2.0-4.el7.x86_64.rpm                                                                                                                       | 2.5 MB  00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-twisted-core-12.2.0-4.el7.x86_64                                                                                                                               1/1
Traceback (most recent call last):
  File "/usr/libexec/twisted-dropin-cache", line 13, in <module>
    from twisted.plugin import IPlugin, getCache
  File "/usr/lib/python2.7/site-packages/Twisted-18.4.0-py2.7-linux-x86_64.egg/twisted/plugin.py", line 35, in <module>
    from twisted.python import log
  File "/usr/lib/python2.7/site-packages/Twisted-18.4.0-py2.7-linux-x86_64.egg/twisted/python/log.py", line 26, in <module>
    from twisted.logger import (
  File "/usr/lib/python2.7/site-packages/Twisted-18.4.0-py2.7-linux-x86_64.egg/twisted/logger/__init__.py", line 89, in <module>
    from ._levels import InvalidLogLevelError, LogLevel
  File "/usr/lib/python2.7/site-packages/Twisted-18.4.0-py2.7-linux-x86_64.egg/twisted/logger/_levels.py", line 9, in <module>
    from constantly import NamedConstant, Names
ImportError: No module named constantly
  Verifying  : python-twisted-core-12.2.0-4.el7.x86_64                                                                                                                               1/1

Installed:
  python-twisted-core.x86_64 0:12.2.0-4.el7

Complete!


Expected results:

No error

Additional info:

I was able to resolve the installation problems with the following commands:

sudo easy_install pip
sudo pip install Automat
sudo pip install incremental
sudo pip install constantly
sudo pip install zope.interface==4.5.0
sudo pip install idna

Comment 4 Dennis Kliban 2018-06-23 14:05:01 UTC
Thank you for looking at this. This issue is encountered on a CentOS 7 machine. It looks like the python-twisted-core 12.2 in CentOS repositories was built using Twisted 18.4. Thank you for pointing out the version discrepancy. 

I will try it out on a RHEL machine and close this as NOTABUG if I don't experience a problem.

Comment 5 Ragavendran Balakrishnan 2018-06-25 14:38:17 UTC
I verified this in Rhel 7.5 VM, The pypi python-twisted-core is getting installed without any tracebacks

Logs :

sudo yum -y install python-twisted-core
Loaded plugins: product-id, search-disabled-repos, subscription-manager
epel/x86_64/metalink                                                                                    |  16 kB  00:00:00     
epel                                                                                                    | 3.2 kB  00:00:00     
pulp                                                                                                    | 3.6 kB  00:00:00     
rhel-7-server-extras-rpms                                                                               | 3.4 kB  00:00:00     
rhel-7-server-optional-rpms                                                                             | 3.5 kB  00:00:00     
rhel-7-server-rpms                                                                                      | 3.5 kB  00:00:00     
rhel-atomic-host-rpms                                                                                   | 4.0 kB  00:00:00     
(1/7): epel/x86_64/updateinfo                                                                           | 925 kB  00:00:01     
(2/7): pulp/7Server/x86_64/primary_db                                                                   |  26 kB  00:00:00     
(3/7): rhel-7-server-optional-rpms/7Server/x86_64/updateinfo                                            | 2.0 MB  00:00:00     
(4/7): rhel-7-server-rpms/7Server/x86_64/updateinfo                                                     | 2.8 MB  00:00:00     
(5/7): rhel-7-server-optional-rpms/7Server/x86_64/primary_db                                            | 7.1 MB  00:00:00     
(6/7): rhel-7-server-rpms/7Server/x86_64/primary_db                                                     |  53 MB  00:00:01     
(7/7): epel/x86_64/primary                                                                              | 3.5 MB  00:00:03     
epel                                                                                                               12601/12601
Package python-twisted-core-12.2.0-4.el7.x86_64 already installed and latest version


fips$ cat /proc/sys/crypto/fips_enabled 
1

Comment 6 Ragavendran Balakrishnan 2018-06-25 14:49:25 UTC
Here are the logs for installing a fresh copy of python-twisted-core

fips$ sudo yum -y install python-twisted-core
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package python-twisted-core.x86_64 0:12.2.0-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================
 Package                          Arch                Version                   Repository                                Size
===============================================================================================================================
Installing:
 python-twisted-core              x86_64              12.2.0-4.el7              rhel-7-server-optional-rpms              2.5 M

Transaction Summary
===============================================================================================================================
Install  1 Package

Total download size: 2.5 M
Installed size: 13 M
Downloading packages:
python-twisted-core-12.2.0-4.el7.x86_64.rpm                                                             | 2.5 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-twisted-core-12.2.0-4.el7.x86_64                                                                     1/1 
  Verifying  : python-twisted-core-12.2.0-4.el7.x86_64                                                                     1/1 

Installed:
  python-twisted-core.x86_64 0:12.2.0-4.el7                                                                                    

Complete!

The installation completed without throwing any stacktrace.

Comment 7 Dennis Kliban 2018-06-25 15:35:28 UTC
Thank you for verifying Raga! I am closing this as not a bug.


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