TypeError: 'OSError' object is not subscriptable raised when close senlin-api process unexpectedly

Bug #2047914 reported by Pham Le Gia Dai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
Undecided
Pham Le Gia Dai

Bug Description

2024-01-03 15:31:36.627 2880031 CRITICAL senlin-api [-] Unhandled error: TypeError: 'OSError' object is not subscriptable
2024-01-03 15:31:36.627 2880031 ERROR senlin-api Traceback (most recent call last):
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/senlin/api/common/wsgi.py", line 372, in run_server
2024-01-03 15:31:36.627 2880031 ERROR senlin-api eventlet.wsgi.server(
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/.tox/venv/lib/python3.8/site-packages/eventlet/wsgi.py", line 1002, in server
2024-01-03 15:31:36.627 2880031 ERROR senlin-api client_socket, client_addr = sock.accept()
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/.tox/venv/lib/python3.8/site-packages/eventlet/greenio/base.py", line 227, in accept
2024-01-03 15:31:36.627 2880031 ERROR senlin-api res = socket_accept(fd)
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/.tox/venv/lib/python3.8/site-packages/eventlet/greenio/base.py", line 64, in socket_accept
2024-01-03 15:31:36.627 2880031 ERROR senlin-api return descriptor.accept()
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/usr/lib/python3.8/socket.py", line 292, in accept
2024-01-03 15:31:36.627 2880031 ERROR senlin-api fd, addr = self._accept()
2024-01-03 15:31:36.627 2880031 ERROR senlin-api OSError: [Errno 22] Invalid argument
2024-01-03 15:31:36.627 2880031 ERROR senlin-api
2024-01-03 15:31:36.627 2880031 ERROR senlin-api During handling of the above exception, another exception occurred:
2024-01-03 15:31:36.627 2880031 ERROR senlin-api
2024-01-03 15:31:36.627 2880031 ERROR senlin-api Traceback (most recent call last):
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/.tox/venv/bin/senlin-api", line 8, in <module>
2024-01-03 15:31:36.627 2880031 ERROR senlin-api sys.exit(main())
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/senlin/cmd/api.py", line 53, in main
2024-01-03 15:31:36.627 2880031 ERROR senlin-api server.wait()
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/senlin/api/common/wsgi.py", line 328, in wait
2024-01-03 15:31:36.627 2880031 ERROR senlin-api self.wait_on_children()
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/senlin/api/common/wsgi.py", line 172, in wait_on_children
2024-01-03 15:31:36.627 2880031 ERROR senlin-api self._verify_and_respawn_children(pid, status)
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/senlin/api/common/wsgi.py", line 281, in _verify_and_respawn_children
2024-01-03 15:31:36.627 2880031 ERROR senlin-api self.run_child()
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/senlin/api/common/wsgi.py", line 353, in run_child
2024-01-03 15:31:36.627 2880031 ERROR senlin-api self.run_server()
2024-01-03 15:31:36.627 2880031 ERROR senlin-api File "/home/daiplg/senlin/senlin/api/common/wsgi.py", line 381, in run_server
2024-01-03 15:31:36.627 2880031 ERROR senlin-api if err[0] != errno.EINVAL:
2024-01-03 15:31:36.627 2880031 ERROR senlin-api TypeError: 'OSError' object is not subscriptable
2024-01-03 15:31:36.627 2880031 ERROR senlin-api

Pham Le Gia Dai (daiplg)
Changed in senlin:
assignee: nobody → Pham Le Gia Dai (daiplg)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to senlin (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/senlin/+/904559

Changed in senlin:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin (master)

Reviewed: https://review.opendev.org/c/openstack/senlin/+/904559
Committed: https://opendev.org/openstack/senlin/commit/541498724bc0c1cf730d9f31c2ca7cf218d07bc3
Submitter: "Zuul (22348)"
Branch: master

commit 541498724bc0c1cf730d9f31c2ca7cf218d07bc3
Author: Pham Le Gia Dai <email address hidden>
Date: Wed Jan 3 15:41:34 2024 +0700

    TypeError: 'OSError' object is not subscriptable raised when terminate senlin-api process unexpectedly

    When terminate senlin-api process the `evenlet.wsgi.server` raised OSError exception that is not a list or a tuple which make TypeError raised and the senlin-api process may not be terminated properly

    Closes-Bug: #2047914
    Change-Id: Id02befe51e9118c8d8dafc3c926398fbf7e1258e

Changed in senlin:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.