Bug 2072990
| Summary: | python-s3transfer-0.1.13-1.el7_9.2.noarch causes urllib3 import before boto3 import to crash with ImportError: cannot import name PROTOCOL_TLS | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jason Woods <devel> |
| Component: | python-s3transfer | Assignee: | Oyvind Albrigtsen <oalbrigt> |
| Status: | CLOSED CANTFIX | QA Contact: | Brandon Perkins <bperkins> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.9 | CC: | adamkam, admin, arifsaha, bperkins, cfeist, gvaughn, hps, ibaldo, jered, joeherna, knickel, nwahl, olfway |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-05 14:28:33 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: | |||
| Bug Blocks: | 2073979 | ||
|
Description
Jason Woods
2022-04-07 12:27:51 UTC
Certbot logs which triggered along with my own failures:
# certbot
An unexpected error occurred:
ImportError: cannot import name PROTOCOL_TLS
Please see the logfile '/tmp/tmpxyrTML/log' for more details.
# cat /tmp/tmpxyrTML/log
2022-04-07 12:10:52,605:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/bin/certbot", line 9, in <module>
load_entry_point('certbot==1.11.0', 'console_scripts', 'certbot')()
File "/usr/lib/python2.7/site-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 1383, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py", line 236, in find_all
plugin_ep = cls._load_entry_point(entry_point, plugins, with_prefix=False)
File "/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py", line 254, in _load_entry_point
plugin_ep = PluginEntryPoint(entry_point, with_prefix)
File "/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py", line 56, in __init__
self.plugin_cls = entry_point.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/certbot_dns_route53/authenticator.py", line 7, in <module>
from certbot_dns_route53._internal import dns_route53
File "/usr/lib/python2.7/site-packages/certbot_dns_route53/_internal/dns_route53.py", line 6, in <module>
import boto3
File "/usr/lib/python2.7/site-packages/boto3/__init__.py", line 16, in <module>
from boto3.session import Session
File "/usr/lib/python2.7/site-packages/boto3/session.py", line 19, in <module>
import botocore.session
File "/usr/lib/fence-agents/bundled/botocore/session.py", line 29, in <module>
import botocore.credentials
File "/usr/lib/fence-agents/bundled/botocore/credentials.py", line 34, in <module>
from botocore.config import Config
File "/usr/lib/fence-agents/bundled/botocore/config.py", line 16, in <module>
from botocore.endpoint import DEFAULT_TIMEOUT, MAX_POOL_CONNECTIONS
File "/usr/lib/fence-agents/bundled/botocore/endpoint.py", line 22, in <module>
from botocore.awsrequest import create_request_object
File "/usr/lib/fence-agents/bundled/botocore/awsrequest.py", line 24, in <module>
import botocore.utils
File "/usr/lib/fence-agents/bundled/botocore/utils.py", line 32, in <module>
import botocore.httpsession
File "/usr/lib/fence-agents/bundled/botocore/httpsession.py", line 10, in <module>
from urllib3.util.ssl_ import (
ImportError: cannot import name PROTOCOL_TLS
2022-04-07 12:10:52,605:ERROR:certbot._internal.log:An unexpected error occurred:
2022-04-07 12:10:52,605:ERROR:certbot._internal.log:ImportError: cannot import name PROTOCOL_TLS
Duplicating my comment from rhbz#2050751, this also breaks the package "awscli-1.14.28-5.el7_5.1.noarch":
# aws --version
Traceback (most recent call last):
File "/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
confirmed when using python-s3transfer-0.1.13-1.el7_9.2.noarch and certbot-1.11.0-2.el7 (which uses python 2.7)
reports
certbot[29788]: An unexpected error occurred:
certbot[29788]: ImportError: cannot import name PROTOCOL_TLS
certbot[29788]: Please see the logfile '/tmp/tmpnNWyZf/log' for more details.
systemd[1]: certbot-renew.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start This service automatically renews any certbot certificates found.
systemd[1]: Unit certbot-renew.service entered failed state.
systemd[1]: certbot-renew.service failed.
with /tmp/tmpnNWyZf/log
2022-07-10 23:54:13,330:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 9, in <module>
load_entry_point('certbot==1.11.0', 'console_scripts', 'certbot')()
File "/usr/lib/python2.7/site-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 1383, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py", line 236, in find_all
plugin_ep = cls._load_entry_point(entry_point, plugins, with_prefix=False)
File "/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py", line 254, in _load_entry_point
plugin_ep = PluginEntryPoint(entry_point, with_prefix)
File "/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py", line 56, in __init__
self.plugin_cls = entry_point.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/certbot_dns_route53/authenticator.py", line 7, in <module>
from certbot_dns_route53._internal import dns_route53
File "/usr/lib/python2.7/site-packages/certbot_dns_route53/_internal/dns_route53.py", line 6, in <module>
import boto3
File "/usr/lib/python2.7/site-packages/boto3/__init__.py", line 16, in <module>
from boto3.session import Session
File "/usr/lib/python2.7/site-packages/boto3/session.py", line 19, in <module>
import botocore.session
File "/usr/lib/fence-agents/bundled/botocore/session.py", line 29, in <module>
import botocore.credentials
File "/usr/lib/fence-agents/bundled/botocore/credentials.py", line 34, in <module>
from botocore.config import Config
File "/usr/lib/fence-agents/bundled/botocore/config.py", line 16, in <module>
from botocore.endpoint import DEFAULT_TIMEOUT, MAX_POOL_CONNECTIONS
File "/usr/lib/fence-agents/bundled/botocore/endpoint.py", line 22, in <module>
from botocore.awsrequest import create_request_object
File "/usr/lib/fence-agents/bundled/botocore/awsrequest.py", line 24, in <module>
import botocore.utils
File "/usr/lib/fence-agents/bundled/botocore/utils.py", line 32, in <module>
import botocore.httpsession
File "/usr/lib/fence-agents/bundled/botocore/httpsession.py", line 10, in <module>
from urllib3.util.ssl_ import (
ImportError: cannot import name PROTOCOL_TLS
2022-07-10 23:54:13,331:ERROR:certbot._internal.log:An unexpected error occurred:
2022-07-10 23:54:13,332:ERROR:certbot._internal.log:ImportError: cannot import name PROTOCOL_TLS
after force-installing the old version: rpm --upgrade --force /tmp/python-s3transfer-0.1.13-1.el7.0.1.noarch.rpm
everything was back to normal (and my expired certs have been renewed)
|