-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cherry-pick][202305][build] Fix base OS compilation issue caused by incompatibility between urllib3 and requests packages (#3328) (#3337) #3351
base: 202305
Are you sure you want to change the base?
Conversation
…en urllib3 and requests packages (sonic-net#3328) (sonic-net#3337) * [build] Fix base OS compilation issue caused by incompatibility between urllib3 and requests packages * [pipeline] Pin request package to v2.31.0
@StormLiangMS Can you please merge this fix? This is required for us to build 202305 branch. This is cherry-pick of #3328 |
hi @liushilongbuaa do we need this issue for build? I didn't see any build failures without this PR. @dgsudharsan do we still need this PR? Seems no failure in recent builds. |
It seems that requests 2.32.3 fixed this issue. |
hi @dgsudharsan @oleksandrivantsiv I think this is not needed any more, could you check, we can close this PR. |
Compilation still fails on 19:49:38 + sudo cp files/build_templates/docker_image_ctl.j2 ./fs********-mellanox/usr/share/sonic/templates/docker_image_ctl.j2
19:49:38 + sudo LANG=C DOCKER_HOST= ch******** ./fs********-mellanox /usr/local/bin/generate_shutdown_order.py
19:49:38 Traceback (most recent call last):
19:49:38 File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 633, in send
19:49:38 conn = self.get_connection_with_tls_context(
19:49:38 File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 489, in get_connection_with_tls_context
19:49:38 conn = self.poolmanager.connection_from_host(
19:49:38 File "/usr/local/lib/python3.9/dist-packages/urllib3/poolmanager.py", line 303, in connection_from_host
19:49:38 return self.connection_from_context(request_context)
19:49:38 File "/usr/local/lib/python3.9/dist-packages/urllib3/poolmanager.py", line 325, in connection_from_context
19:49:38 raise URLSchemeUnknown(scheme)
19:49:38 urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+docker
19:49:38
19:49:38 During handling of the above exception, another exception occurred:
19:49:38
19:49:38 Traceback (most recent call last):
19:49:38 File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
19:49:38 return self.version(api_version=False)["ApiVersion"]
19:49:38 File "/usr/local/lib/python3.9/dist-packages/docker/api/daemon.py", line 181, in version
19:49:38 return self._result(self._get(url), json=True)
19:49:38 File "/usr/local/lib/python3.9/dist-packages/docker/utils/decorators.py", line 46, in inner
19:49:38 return f(self, *args, **kwargs)
19:49:38 File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 237, in _get
19:49:38 return self.get(url, **self._set_request_timeout(kwargs))
19:49:38 File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 602, in get
19:49:38 return self.request("GET", url, **kwargs)
19:49:38 File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 589, in request
19:49:38 resp = self.send(prep, **send_kwargs)
19:49:38 File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 703, in send
19:49:38 r = adapter.send(request, **kwargs)
19:49:38 File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 637, in send
19:49:38 raise InvalidURL(e, request=request)
19:49:38 requests.exceptions.InvalidURL: Not supported URL scheme http+docker
19:49:38
19:49:38 During handling of the above exception, another exception occurred:
19:49:38
19:49:38 Traceback (most recent call last):
19:49:38 File "/usr/local/bin/generate_shutdown_order.py", line 15, in <module>
19:49:38 main()
19:49:38 File "/usr/local/bin/generate_shutdown_order.py", line 8, in main
19:49:38 manager = PackageManager.get_manager()
19:49:38 File "/usr/local/lib/python3.9/dist-packages/sonic_package_manager/manager.py", line 1015, in get_manager
19:49:38 docker_api = DockerApi(docker.from_env(), ProgressManager())
19:49:38 File "/usr/local/lib/python3.9/dist-packages/docker/client.py", line 96, in from_env
19:49:38 return cls(
19:49:38 File "/usr/local/lib/python3.9/dist-packages/docker/client.py", line 45, in __init__
19:49:38 self.api = APIClient(*args, **kwargs)
19:49:38 File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 197, in __init__
19:49:38 self._version = self._retrieve_server_version()
19:49:38 File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
19:49:38 raise DockerException(
19:49:38 docker.errors.DockerException: Error while fetching server API version: Not supported URL scheme http+docker |
@saiarcot895 @StormLiangMS We are still noticing build failure in 202305 and hence require this change for the build to pass. Can you please prioritize to merge this? |
[build] Fix base OS compilation issue caused by incompatibility between urllib3 and requests packages
[pipeline] Pin request package to v2.31.0
What I did
How I did it
How to verify it
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)