[Bug 2042744] Re: su -s /bin/sh -c "keystone-manage db_sync" keystone

Oskar Berggren 2042744 at bugs.launchpad.net
Wed Feb 7 22:48:13 UTC 2024


@gregoster, thanks a lot, that was interesting!

If the error happens during python shutdown, it sounds like it should
have already done its work by then, but no database tables appeared for
me. And commenting out one of those code lines made the error disappear,
yet still not tables appeared in the database.

Turns out the issue was that the guide I followed didn't mention that
keystone-manage will not actually tell you what's wrong on the console.
By random chance I got the idea to check if there was any log file and
yes there is and in there it was actually complaining that I had not
installed some python Postgresql package (psycopg2).

As for the thread related exception... I wonder if this recent commit to remove some lingering eventlet references from keystone might fix it:
https://opendev.org/openstack/keystone/commit/406233f16975a83ca41b0d057d1497b6d43ee0fa

-- 
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