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 1472619 - Platform Dependent Python Import
Summary: Platform Dependent Python Import
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.4
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Christian Heimes
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On: 1463916
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-19 06:28 UTC by Oneata Mircea Teodor
Modified: 2017-09-05 11:25 UTC (History)
6 users (show)

Fixed In Version: pki-core-10.4.1-12.el7_4
Doc Type: No Doc Update
Doc Text:
Fixed pylint for Python 3 on platforms that require it.
Clone Of: 1463916
Environment:
Last Closed: 2017-09-05 11:25:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2575 0 normal SHIPPED_LIVE pki-core bug fix and enhancement update 2017-09-05 15:17:55 UTC

Description Oneata Mircea Teodor 2017-07-19 06:28:44 UTC
This bug has been copied from bug #1463916 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 3 Sumedh Sidhaye 2017-08-10 13:48:11 UTC
Build used for verification:

Name        : pki-server
Version     : 10.4.1
Release     : 12.el7_4
Architecture: noarch
Install Date: Thursday 10 August 2017 09:30:33 AM EDT
Group       : System Environment/Base
Size        : 4649492
License     : GPLv2
Signature   : (none)
Source RPM  : pki-core-10.4.1-12.el7_4.src.rpm
Build Date  : Friday 04 August 2017 08:46:41 PM EDT
Build Host  : ppc-015.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://pki.fedoraproject.org/
Summary     : Certificate System - PKI Server Framework


Here are the /usr/lib/python2.7/site-packages/pki/client.py contents

import requests
try:
    from requests.packages.urllib3.exceptions import InsecureRequestWarning
except ImportError:
    from urllib3.exceptions import InsecureRequestWarning


Is this sufficient for verifying this bug or do I need to check any other files ?

Comment 4 Matthew Harmsen 2017-08-10 23:08:49 UTC
(In reply to Sumedh Sidhaye from comment #3)
> Build used for verification:
> 
> Name        : pki-server
> Version     : 10.4.1
> Release     : 12.el7_4
> Architecture: noarch
> Install Date: Thursday 10 August 2017 09:30:33 AM EDT
> Group       : System Environment/Base
> Size        : 4649492
> License     : GPLv2
> Signature   : (none)
> Source RPM  : pki-core-10.4.1-12.el7_4.src.rpm
> Build Date  : Friday 04 August 2017 08:46:41 PM EDT
> Build Host  : ppc-015.build.eng.bos.redhat.com
> Relocations : (not relocatable)
> Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
> Vendor      : Red Hat, Inc.
> URL         : http://pki.fedoraproject.org/
> Summary     : Certificate System - PKI Server Framework
> 
> 
> Here are the /usr/lib/python2.7/site-packages/pki/client.py contents
> 
> import requests
> try:
>     from requests.packages.urllib3.exceptions import InsecureRequestWarning
> except ImportError:
>     from urllib3.exceptions import InsecureRequestWarning
> 
> 
> Is this sufficient for verifying this bug or do I need to check any other
> files ?


As this RHEL 7.4.z bug was cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1463916, if you look at that bug, you will see that this replacement code was installed to fix a pylint issue that occurred on Fedora 27.

As RHEL 7.4 does not use Python 3, checking that the code change is present and does not hinder the RHEL 7.4 system should be sufficient.

Comment 5 Sumedh Sidhaye 2017-08-14 02:38:05 UTC
Verified that pki commands are not affected by this change.
Marking this bug verified.

Comment 7 errata-xmlrpc 2017-09-05 11:25:02 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, 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-2017:2575


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