Bug 2074578

Summary: unable to use awscli after the new python-s3transfer update to python-s3transfer-0.1.13-1.el7_9.2.noarch
Product: Red Hat Enterprise Linux 7 Reporter: farrotin
Component: python-s3transferAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED MIGRATED QA Contact: Brandon Perkins <bperkins>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.9CC: anish.7, bperkins, gordon, jnewbigin, oliparcol, ovirt, pim
Target Milestone: rcKeywords: MigratedToJIRA
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-22 19:46:34 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:

Description farrotin 2022-04-12 14:31:06 UTC
Description of problem:

Machine updated and new python-s3transfer-0.1.13-1.el7_9.2.noarch installed
awscli just crashes (awscli-1.14.28-5.el7_5.1.noarch)

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

awscli-1.14.28-5.el7_5.1.noarch
python-s3transfer-0.1.13-1.el7_9.2.noarch

How reproducible:


Steps to Reproduce:
1. yum update
2. call awscli
3. python traceback


Traceback (most recent call last):
  File "/usr/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 37, in <module>
    from awscli.help import ProviderHelpCommand
  File "/usr/lib/python2.7/site-packages/awscli/help.py", line 24, in <module>
    from botocore.docs.bcdoc import docevents
ImportError: cannot import name docevents

Downgrading to previous version restores awscli functionality : 

yum downgrade python-s3transfer

Resolving Dependencies
--> Running transaction check
---> Package python-s3transfer.noarch 0:0.1.13-1.el7.0.1 will be a downgrade
---> Package python-s3transfer.noarch 0:0.1.13-1.el7_9.2 will be erased
--> Finished Dependency Resolution

Comment 3 Gordon Dexter 2022-05-05 18:28:22 UTC
I can confirm this bug.

The issue seems to be the absence of the docevents files in the upgraded package.  On a broken host, rpm -ql python-s3transfer | grep docevent returns nothing, whereas on a non-broken host it returns:
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docevents.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docevents.pyc
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docevents.pyo


Downgrading as above fixes the issue.

Comment 4 oliparcol 2022-07-01 08:07:59 UTC
I believe this was solved by https://access.redhat.com/errata/RHBA-2022:5228 (see https://bugzilla.redhat.com/show_bug.cgi?id=2073979#c17 )

Comment 5 Pim Rupert 2022-07-08 11:33:23 UTC
Fixed in https://bugzilla.redhat.com/show_bug.cgi?id=2073979

Comment 7 RHEL Program Management 2023-09-22 19:36:25 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 8 RHEL Program Management 2023-09-22 19:46:34 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.