Bug 2073979

Summary: Missing lib python docevents [rhel-7.9.z]
Product: Red Hat Enterprise Linux 7 Reporter: olivier.perriot
Component: awscliAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: Brandon Perkins <bperkins>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.9CC: adamkam, anish.7, arifsaha, bperkins, cfeist, devel, ibaldo, kpfleming, nwahl, redhat
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: awscli-1.23.2-1.el7_9.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2079442 2079443 (view as bug list) Environment:
Last Closed: 2022-06-28 09:52:27 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: 2072990    
Bug Blocks: 2079442, 2079443    

Description olivier.perriot 2022-04-11 09:29:18 UTC
Description of problem:


$ aws --version
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


So

$ grep -C 1 docevents /usr/lib/python2.7/site-packages/awscli/help.py
sys.path.insert(0, '/usr/lib/fence-agents/bundled')
from botocore.docs.bcdoc import docevents
from botocore.docs.bcdoc.restdoc import ReSTDocument
--
        # to all event handlers.
        docevents.generate_events(self.session, self)
        self.renderer.render(self.doc.getvalue())


$ rpm -qf /usr/lib/fence-agents/bundled
python-s3transfer-0.1.13-1.el7_9.2.noarch

$ rpm -ql python-s3transfer-0.1.13-1.el7_9.2.noarch | grep -E "/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/.*.py$"
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/__init__.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docstringparser.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/restdoc.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/style.py

We have not docevents

But on previous version python-s3transfer-0.1.13-1.el7.0.1.noarch it is ok

$ rpm -ql python-s3transfer-0.1.13-1.el7.0.1.noarch | grep -E "/usr/lib/fence-agents/bundled/botocore/docs/bcdoc.*.py$"
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/__init__.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docevents.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/docstringparser.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/restdoc.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/style.py
/usr/lib/fence-agents/bundled/botocore/docs/bcdoc/textwriter.py


Is is possible to fix this issue ?

Comment 3 Jason Woods 2022-04-19 10:00:42 UTC
The same update caused another issue with urllib3 here: https://bugzilla.redhat.com/show_bug.cgi?id=2073979

Comment 16 Oyvind Albrigtsen 2022-06-28 07:14:12 UTC
*** Bug 2101550 has been marked as a duplicate of this bug. ***

Comment 17 errata-xmlrpc 2022-06-28 09:52:27 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 (awscli bug fix and enhancement update), 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-2022:5228