<div dir="ltr">Here's the traceback for why python-openstackclient can't import its identity plugin:<div><br></div><div>Traceback (most recent call last):<br> File "/opt/stack/python-openstackclient/openstackclient/common/clientmanager.py", line 151, in get_plugin_modules<br> __import__(ep.module_name)<br> File "/opt/stack/python-openstackclient/openstackclient/identity/client.py", line 18, in <module><br> from keystoneclient.v2_0 import client as identity_client_v2<br> File "/usr/local/lib/python3.6/dist-packages/keystoneclient/v2_0/__init__.py", line 1, in <module><br> from keystoneclient.v2_0.client import Client # noqa<br> File "/usr/local/lib/python3.6/dist-packages/keystoneclient/v2_0/client.py", line 21, in <module><br> from keystoneclient import httpclient<br> File "<frozen importlib._bootstrap>", line 1020, in _handle_fromlist<br> File "/usr/local/lib/python3.6/dist-packages/keystoneclient/__init__.py", line 72, in __getattr__<br> return importlib.import_module('keystoneclient.%s' % name)<br> File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> File "/usr/local/lib/python3.6/dist-packages/keystoneclient/httpclient.py", line 43, in <module><br> import keyring<br> File "/usr/lib/python3/dist-packages/keyring/__init__.py", line 3, in <module><br> from .core import (set_keyring, get_keyring, set_password, get_password,<br> File "/usr/lib/python3/dist-packages/keyring/core.py", line 153, in <module><br> init_backend()<br> File "/usr/lib/python3/dist-packages/keyring/core.py", line 66, in init_backend<br> keyrings = filter(limit, backend.get_all_keyring())<br> File "/usr/lib/python3/dist-packages/keyring/util/__init__.py", line 21, in wrapper<br> func.always_returns = func(*args, **kwargs)<br> File "/usr/lib/python3/dist-packages/keyring/backend.py", line 196, in get_all_keyring<br> exceptions=TypeError))<br> File "/usr/lib/python3/dist-packages/keyring/util/__init__.py", line 31, in suppress_exceptions<br> for callable in callables:<br> File "/usr/lib/python3/dist-packages/keyring/backend.py", line 188, in is_class_viable<br> keyring_cls.priority<br> File "/usr/lib/python3/dist-packages/keyring/util/properties.py", line 24, in __get__<br> return self.fget.__get__(None, owner)()<br> File "/usr/lib/python3/dist-packages/keyring/backends/SecretService.py", line 37, in priority<br> bus = secretstorage.dbus_init()<br> File "/usr/lib/python3/dist-packages/secretstorage/__init__.py", line 47, in dbus_init<br> return dbus.SessionBus()<br> File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 211, in __new__<br> mainloop=mainloop)<br> File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 100, in __new__<br> bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)<br> File "/usr/lib/python3/dist-packages/dbus/bus.py", line 122, in __new__<br> bus = cls._new_for_bus(address_or_type, mainloop=mainloop)<br>dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoServer: Failed to connect to socket /tmp/dbus-yQkwBYfBbJ: Connection refused<br></div><div><br></div><div>Does that ring any bells?</div><div><br></div><div>Best wishes,</div><div> Neil</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 20, 2020 at 6:04 PM Neil Jerram <<a href="mailto:neil@tigera.io">neil@tigera.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">+ ./stack.sh:main:1091 : create_keystone_accounts<br>+ lib/keystone:create_keystone_accounts:314 : local admin_project<br>++ lib/keystone:create_keystone_accounts:315 : oscwrap project show admin -f value -c id<br>WARNING: Failed to import plugin identity.<br>++ functions-common:oscwrap:2370 : return 2<br>+ lib/keystone:create_keystone_accounts:315 : admin_project='openstack: '\''project show admin -f value -c id'\'' is not an openstack command. See '\''openstack --help'\''.<br><div><br></div><div>I believe this is a completely mainline Keystone setup by devstack. The top-level stack.sh code is<br><br></div><div> echo_summary "Starting Keystone"<br><br> if [ "$KEYSTONE_AUTH_HOST" == "$SERVICE_HOST" ]; then<br> init_keystone<br> start_keystone<br> bootstrap_keystone<br> fi<br><br> create_keystone_accounts<br></div><div> ...</div><div><br></div><div>bootstrap_keystone succeeded but create_keystone_accounts failed as shown above, trying to execute</div><div><br></div><div> openstack project show "admin" -f value -c id</div><div><br></div><div>IIUC, the rootmost problem here is "WARNING: Failed to import plugin identity.", indicating that python-openstackclient is failing to import its openstackclient.identity.client module. But I don't know any more about why that would be.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Many thanks,</div><div> Neil</div><div><br></div></div>
</blockquote></div>