Comment 10 for bug 1588823

Revision history for this message
Yu Long (crazymozart) wrote :

I have encountered the same error with devstack, branch is stable/mitaka, OS is Ubuntu 14.04.5:

stack@localhost:~/devstack$ ./stack.sh
....
....
+./stack.sh:main:1033 create_keystone_accounts
+lib/keystone:create_keystone_accounts:372 local admin_tenant
++lib/keystone:create_keystone_accounts:373 openstack project show admin -f value -c id
Traceback (most recent call last):
  File "/usr/local/bin/openstack", line 7, in <module>
    from openstackclient.shell import main
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 32, in <module>
    from openstackclient.common import clientmanager
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 293, in <module>
    'openstack.cli.base',
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 264, in get_plugin_modules
    __import__(ep.module_name)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/network/client.py", line 16, in <module>
    from openstack import connection
  File "/usr/local/lib/python2.7/dist-packages/openstack/connection.py", line 68, in <module>
    from openstack import session as _session
  File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 29, in <module>
    DEFAULT_USER_AGENT = "openstacksdk/%s" % openstack.__version__
AttributeError: 'module' object has no attribute '__version__'
+lib/keystone:create_keystone_accounts:373 admin_tenant=
+lib/keystone:create_keystone_accounts:1 exit_trap