[Bug 2042744] Re: su -s /bin/sh -c "keystone-manage db_sync" keystone
Greg Oster
2042744 at bugs.launchpad.net
Wed Feb 7 20:44:10 UTC 2024
Environment: Debian 12.4, Python 3.11.2. Pristine install.
After a few hours digging: the call to main() in /usr/bin/keystone-manage has already completed before the exception occurs, and thus this error is actually happening during python
shutdown. In /usr/lib/python3/dist-packages/oslo_log/log.py in the function setup() you can simply remove the call to _fix_eventlet_logging(), and the exception goes away. Digging further, it seems that the lines:
logging.threading = eventlet.green.threading
logging._lock = logging.threading.RLock()
in _fix_eventlet_logging() together are the trigger - commenting out either of them is sufficient to get rid of the exception.
I'm already much farther down this rabbit hole than I intended, but
perhaps the answer as to what is going on here will be obvious to
someone with more knowledge about python, its threading models, and
logging...
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to keystone in Ubuntu.
https://bugs.launchpad.net/bugs/2042744
Title:
su -s /bin/sh -c "keystone-manage db_sync" keystone
Status in OpenStack Identity (keystone):
Confirmed
Status in keystone package in Ubuntu:
Confirmed
Bug description:
When I execute su -s /bin/sh -c "keystone-manage db_sync" keystone
I am receiving below error
Exception ignored in: <function _removeHandlerRef at 0x7f01819b43a0>
Traceback (most recent call last):
File "/usr/lib/python3.10/logging/__init__.py", line 846, in _removeHandlerRef
File "/usr/lib/python3.10/logging/__init__.py", line 226, in _acquireLock
File "/usr/lib/python3.10/threading.py", line 164, in acquire
File "/usr/lib/python3/dist-packages/eventlet/green/thread.py", line 34, in get_ident
AttributeError: 'NoneType' object has no attribute 'getcurrent'
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/2042744/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list