turning on debug results in exception when deleting stacks
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-
Are you sure you want to delete this stack(s) [y/N]? y
ERROR: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"
Error in logs is
2021-10-28 18:39:54.504 590842 INFO eventlet.
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/
2021-10-28 18:39:54.504 590842 ERROR heat-api eventlet.
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/
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/
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/
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/
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/
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/
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/
2021-10-28 18:39:54.504 590842 ERROR heat-api self.wait_
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/
2021-10-28 18:39:54.504 590842 ERROR heat-api self._verify_
2021-10-28 18:39:54.504 590842 ERROR heat-api File "/usr/lib/
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/
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/
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.
It looks like this is fixed in upstream heat with this commit https:/ /opendev. org/openstack/ heat/commit/ a78ddafdece30d2 59d59c0bba04714 e36a8d6c25