Jul-29-2025, 12:59 PM
Hello, I Ping Chen with IBM. We run into a "cannot unpack non-iterable int object" error in:
File "/usr/lib/python3.9/site-packages/urllib3/util/wait.py", line 85, in select_wait_for_socket.
That line is:
rready, wready, xready = _retry_on_intr(fn, timeout)
Looks like the _retry_on_intr returns an integer instead of 3 values
Here is the partial strack trace
---------------------------
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/keystoneauth1/session.py", line 1022, in _send_request
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] resp = self.session.request(method, url, **kwargs)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] resp = self.send(prep, **send_kwargs)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] r = adapter.send(request, **kwargs)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/requests/adapters.py", line 486, in send
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] resp = conn.urlopen(
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 704, in urlopen
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] conn = self._get_conn(timeout=pool_timeout)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 290, in _get_conn
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] if conn and is_connection_dropped(conn):
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/util/connection.py", line 28, in is_connection_dropped
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] return wait_for_read(sock, timeout=0.0)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/util/wait.py", line 145, in wait_for_read
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] return wait_for_socket(sock, read=True, timeout=timeout)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/util/wait.py", line 85, in select_wait_for_socket
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] rready, wready, xready = _retry_on_intr(fn, timeout)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] TypeError: cannot unpack non-iterable int object
--------------------------------
This is related python version info:
--------------------------------
[ibmadmin@ifra05-s9-26-nl-b09 ~]$ python3 --version
Python 3.9.16
[ibmadmin@ifra05-s9-26-nl-b09 ~]$ pip3 show urllib3
Name: urllib3
Version: 1.26.18
Summary: HTTP library with thread-safe connection pooling, file post, and more.
Home-page: https://urllib3.readthedocs.io/
Author: Andrey Petrov
Author-email: [email protected]
License: MIT
Location: /usr/lib/python3.9/site-packages
Requires:
Required-by: requests, etcd3gw
---------------------------
Is this a known issue? If yes, if there is a fix for it? Is there a way to avoid or work around this issue?
Thanks,
ping
File "/usr/lib/python3.9/site-packages/urllib3/util/wait.py", line 85, in select_wait_for_socket.
That line is:
rready, wready, xready = _retry_on_intr(fn, timeout)
Looks like the _retry_on_intr returns an integer instead of 3 values
Here is the partial strack trace
---------------------------
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/keystoneauth1/session.py", line 1022, in _send_request
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] resp = self.session.request(method, url, **kwargs)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] resp = self.send(prep, **send_kwargs)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] r = adapter.send(request, **kwargs)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/requests/adapters.py", line 486, in send
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] resp = conn.urlopen(
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 704, in urlopen
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] conn = self._get_conn(timeout=pool_timeout)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 290, in _get_conn
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] if conn and is_connection_dropped(conn):
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/util/connection.py", line 28, in is_connection_dropped
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] return wait_for_read(sock, timeout=0.0)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/util/wait.py", line 145, in wait_for_read
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] return wait_for_socket(sock, read=True, timeout=timeout)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] File "/usr/lib/python3.9/site-packages/urllib3/util/wait.py", line 85, in select_wait_for_socket
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] rready, wready, xready = _retry_on_intr(fn, timeout)
nova-compute.log-2025071801:2025-07-17 10:06:54.456 1119 ERROR nova.compute.manager [instance: 442545f2-a49e-4488-9a60-1fa52d45cbee] TypeError: cannot unpack non-iterable int object
--------------------------------
This is related python version info:
--------------------------------
[ibmadmin@ifra05-s9-26-nl-b09 ~]$ python3 --version
Python 3.9.16
[ibmadmin@ifra05-s9-26-nl-b09 ~]$ pip3 show urllib3
Name: urllib3
Version: 1.26.18
Summary: HTTP library with thread-safe connection pooling, file post, and more.
Home-page: https://urllib3.readthedocs.io/
Author: Andrey Petrov
Author-email: [email protected]
License: MIT
Location: /usr/lib/python3.9/site-packages
Requires:
Required-by: requests, etcd3gw
---------------------------
Is this a known issue? If yes, if there is a fix for it? Is there a way to avoid or work around this issue?
Thanks,
ping
