turning on debug results in exception when deleting stacks

Bug #1949108 reported by Steven Parker
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
heat (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

On focal/ussuri latest deployment packages (deployed 2 days ago)
I'm seeing failure to delete stacks when I have debug flag on.

 openstack stack delete f57323ae-ebd8-4296-8472-9ffbe159a876
Are you sure you want to delete this stack(s) [y/N]? y
ERROR: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>503 Service Unavailable</title>\n</head><body>\n<h1>Service Unavailable</h1>\n<p>The server is temporarily unable to service your\nrequest due to maintenance downtime or capacity\nproblems. Please try again later.</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at 10.55.4.18 Port 8004</address>\n</body></html>\n'

Error in logs is

2021-10-28 18:39:54.504 590842 INFO eventlet.wsgi.server [-] (590842) wsgi exited, is_accepting=True
2021-10-28 18:39:54.504 590842 CRITICAL heat-api [-] Unhandled error: TypeError: 'OSError' object is not subscriptable
2021-10-28 18:39:54.504 590842 ERROR heat-api Traceback (most recent call last):
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/heat/common/wsgi.py", line 577, in run_server
2021-10-28 18:39:54.504 590842 ERROR heat-api eventlet.wsgi.server(
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/eventlet/wsgi.py", line 983, in server
2021-10-28 18:39:54.504 590842 ERROR heat-api client_socket, client_addr = sock.accept()
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/eventlet/greenio/base.py", line 224, in accept
2021-10-28 18:39:54.504 590842 ERROR heat-api res = socket_accept(fd)
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/eventlet/greenio/base.py", line 61, in socket_accept
2021-10-28 18:39:54.504 590842 ERROR heat-api return descriptor.accept()
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3.8/socket.py", line 292, in accept
2021-10-28 18:39:54.504 590842 ERROR heat-api fd, addr = self._accept()
2021-10-28 18:39:54.504 590842 ERROR heat-api OSError: [Errno 22] Invalid argument
2021-10-28 18:39:54.504 590842 ERROR heat-api
2021-10-28 18:39:54.504 590842 ERROR heat-api During handling of the above exception, another exception occurred:
2021-10-28 18:39:54.504 590842 ERROR heat-api
2021-10-28 18:39:54.504 590842 ERROR heat-api Traceback (most recent call last):
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/bin/heat-api", line 10, in <module>
2021-10-28 18:39:54.504 590842 ERROR heat-api sys.exit(main())
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/heat/cmd/api.py", line 78, in main
2021-10-28 18:39:54.504 590842 ERROR heat-api server.wait()
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/heat/common/wsgi.py", line 509, in wait
2021-10-28 18:39:54.504 590842 ERROR heat-api self.wait_on_children()
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/heat/common/wsgi.py", line 354, in wait_on_children
2021-10-28 18:39:54.504 590842 ERROR heat-api self._verify_and_respawn_children(pid, status)
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/heat/common/wsgi.py", line 462, in _verify_and_respawn_children
2021-10-28 18:39:54.504 590842 ERROR heat-api self.run_child()
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/heat/common/wsgi.py", line 534, in run_child
2021-10-28 18:39:54.504 590842 ERROR heat-api self.run_server()
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/python3/dist-packages/heat/common/wsgi.py", line 587, in run_server
2021-10-28 18:39:54.504 590842 ERROR heat-api if err[0] != errno.EINVAL:
2021-10-28 18:39:54.504 590842 ERROR heat-api TypeError: 'OSError' object is not subscriptable
2021-10-28 18:39:54.504 590842 ERROR heat-api

Steps to replicate:

Turn on debug and delete a stack.
Turn debug off and you should be able to delete stacks again.

Revision history for this message
Billy Olsen (billy-olsen) wrote :

It looks like this is fixed in upstream heat with this commit https://opendev.org/openstack/heat/commit/a78ddafdece30d259d59c0bba04714e36a8d6c25

Changed in heat (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
nadeem (unknownuser56709) wrote :

The Chatbot GPT (Chatbot GPT) plugin is a groundbreaking tool that seamlessly integrates the advanced capabilities of the GPT-3.5 language model into various applications, websites, and platforms. Designed to enhance user experience and provide unparalleled conversational AI support, the Chatbot GPT plugin enables effortless communication between users and systems. https://oachatgpt.cn/chatgpt-4-login/

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.