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 1212145 - python-requests package update fail
Summary: python-requests package update fail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-requests
Version: 6.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Matej Stuchlik
QA Contact: Branislav Náter
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-15 16:04 UTC by Branislav Náter
Modified: 2016-02-01 02:16 UTC (History)
10 users (show)

Fixed In Version: python-requests-2.6.0-2.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-22 07:43:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:1418 0 normal SHIPPED_LIVE new packages: python-requests and dependencies 2015-07-20 18:06:38 UTC

Description Branislav Náter 2015-04-15 16:04:07 UTC
Description of problem:
I'm trying to update python-requests but it fails (see Actual results). After failed update there is weird link in /usr/lib/python2.6/site-packages/ directory (see Additional info).

# ll -d chardet*
drwxr-xr-x. 2 root root 4096 Apr 15 11:07 chardet
lrwxrwxrwx. 1 root root   13 Apr 15 11:08 chardet;552e7ee0 -> ../../chardet

Version-Release number of selected component (if applicable):
python-requests-2.6.0-1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. installed older version of python requests (python-requests-2.3.0-2.el6eng.noarch)
2. yum update python-requests

Actual results:
<snip>
Downloading Packages:
python-requests-2.6.0-1.el6.noarch.rpm                                                         |  94 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : python-requests-2.6.0-1.el6.noarch                                                                 1/2 
Error unpacking rpm package python-requests-2.6.0-1.el6.noarch
error: unpacking of archive failed on file /usr/lib/python2.6/site-packages/requests/packages/chardet: cpio: rename
python-requests-2.3.0-2.el6eng.noarch was supposed to be removed but is not!
  Verifying  : python-requests-2.3.0-2.el6eng.noarch                                                              1/2 
  Verifying  : python-requests-2.6.0-1.el6.noarch                                                                 2/2 

Failed:
  python-requests.noarch 0:2.3.0-2.el6eng                     python-requests.noarch 0:2.6.0-1.el6                    

Complete!

Expected results:


Additional info:
RPM issue is described here: http://lists.repoforge.org/pipermail/rear-users/2011-February/000432.html

Comment 1 Matej Stuchlik 2015-04-15 16:11:24 UTC
The issue here is that we replace a directory with a link during an update which RPM/cpio doesn't handle well, apparently. The links are there because python-requests bundles python-urllib3 and python-chardet, which are deleted during build and replaced with links to the respective system modules.

Comment 2 Matej Stuchlik 2015-04-15 16:13:09 UTC
(In reply to Matej Stuchlik from comment #1)
> The issue here is that we replace a directory with a link during an update
> which RPM/cpio doesn't handle well, apparently.

This also means this bug does not trigger when the packages is either installed anew, or when it is updated from python-requests 1.1.0 (this version does not ship the bundled modules).

Comment 11 errata-xmlrpc 2015-07-22 07:43:13 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://rhn.redhat.com/errata/RHEA-2015-1418.html


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