[Bug 1949108] Re: turning on debug results in exception when deleting stacks

Billy Olsen 1949108 at bugs.launchpad.net
Thu Oct 28 22:06:29 UTC 2021


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

** Changed in: heat (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to heat in Ubuntu.
https://bugs.launchpad.net/bugs/1949108

Title:
  turning on debug results in exception when deleting stacks

Status in heat package in Ubuntu:
  Triaged

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/heat/+bug/1949108/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list