[openstack-dev] [devstack] Failure on installing openstack with latest devstack.

Markus Zoeller mzoeller at de.ibm.com
Fri Jan 22 09:01:10 UTC 2016


Vikram Choudhary <vikschw at gmail.com> wrote on 01/22/2016 08:11:52 AM:

> From: Vikram Choudhary <vikschw at gmail.com>
> To: "OpenStack Development Mailing List (not for usage questions)" 
> <openstack-dev at lists.openstack.org>
> Date: 01/22/2016 08:12 AM
> Subject: [openstack-dev] [devstack] Failure on installing openstack 
> with latest devstack.
> 
> Hi There,
> 
> Can someone please me to resolve below devstack error?
> 
> 2016-01-22 07:00:29.802 | 6134 INFO keystone.cmd.cli [-] Domain 
> default already exists, skipping creation.
> 2016-01-22 07:00:29.952 | 6134 INFO keystone.cmd.cli [-] Created project 
admin
> 2016-01-22 07:00:29.959 | 6134 DEBUG passlib.registry [-] registered 
> 'sha512_crypt' handler: <class 
> 'passlib.handlers.sha2_crypt.sha512_crypt'> register_crypt_handler /
> usr/local/lib/python2.7/dist-packages/passlib/registry.py:284
> 2016-01-22 07:00:30.032 | 6134 INFO keystone.cmd.cli [-] Created user 
admin
> 2016-01-22 07:00:30.088 | 6134 INFO keystone.cmd.cli [-] Created Role 
admin
> 2016-01-22 07:00:30.168 | 6134 INFO keystone.cmd.cli [-] Granted admin
> on admin to user admin.
> 2016-01-22 07:00:30.247 | + local token_id
> 2016-01-22 07:00:30.248 | ++ openstack token issue -c id -f value --
> os-username admin --os-project-name admin --os-user-domain-id default 
> --os-project-domain-id default --os-identity-api-version 3 --os-auth-url 

> http://192.168.2.5:35357 --os-password openstack
> 2016-01-22 07:00:31.284 | Discovering versions from the identity 
> service failed when creating the password plugin. Attempting to 
> determine version from URL.
> 2016-01-22 07:00:31.284 | Could not determine a suitable URL for the 
plugin
> 2016-01-22 07:00:31.307 | + token_id=
> 2016-01-22 07:00:31.307 | + exit_trap
> 2016-01-22 07:00:31.307 | + local r=1
> 2016-01-22 07:00:31.308 | ++ jobs -p
> 2016-01-22 07:00:31.308 | + jobs=
> 2016-01-22 07:00:31.308 | + [[ -n '' ]]
> 2016-01-22 07:00:31.308 | + kill_spinner
> 2016-01-22 07:00:31.308 | + '[' '!' -z '' ']'
> 2016-01-22 07:00:31.308 | + [[ 1 -ne 0 ]]
> 2016-01-22 07:00:31.308 | + echo 'Error on exit'
> 2016-01-22 07:00:31.308 | Error on exit
> 2016-01-22 07:00:31.308 | + [[ -z /opt/stack/logs/ ]]
> 2016-01-22 07:00:31.308 | + /home/openstack/devstack/tools/
> worlddump.py -d /opt/stack/logs/
> 2016-01-22 07:00:31.583 | + exit 1
> 
> Keystone logs:
> sudo tail -f /var/log/apache2/keystone.log
> 2016-01-22 11:35:24.804405 mod_wsgi (pid=19720): Target WSGI script '/
> usr/local/bin/keystone-wsgi-admin' cannot be loaded as Python module.
> 2016-01-22 11:35:24.804452 mod_wsgi (pid=19720): Exception occurred 
> processing WSGI script '/usr/local/bin/keystone-wsgi-admin'.
> 2016-01-22 11:35:24.804481 Traceback (most recent call last):
> 2016-01-22 11:35:24.804499   File "/usr/local/bin/keystone-wsgi-
> admin", line 6, in <module>
> 2016-01-22 11:35:24.804554     from keystone.server.wsgi import 
> initialize_admin_application
> 2016-01-22 11:35:24.804567   File "/opt/stack/keystone/keystone/
> server/wsgi.py", line 31, in <module>
> 2016-01-22 11:35:24.804608     from keystone.version import service as
> keystone_service
> 2016-01-22 11:35:24.804619   File "/opt/stack/keystone/keystone/
> version/service.py", line 20, in <module>
> 2016-01-22 11:35:24.804676     from paste import deploy
> 2016-01-22 11:35:24.804694 ImportError: cannot import name deploy
> 2016-01-22 12:30:29.030111 mod_wsgi (pid=5922): Target WSGI script '/
> usr/local/bin/keystone-wsgi-public' cannot be loaded as Python module.
> 2016-01-22 12:30:29.030151 mod_wsgi (pid=5922): Exception occurred 
> processing WSGI script '/usr/local/bin/keystone-wsgi-public'.
> 2016-01-22 12:30:29.030171 Traceback (most recent call last):
> 2016-01-22 12:30:29.030190   File "/usr/local/bin/keystone-wsgi-
> public", line 6, in <module>
> 2016-01-22 12:30:29.030248     from keystone.server.wsgi import 
> initialize_public_application
> 2016-01-22 12:30:29.030261   File "/opt/stack/keystone/keystone/
> server/wsgi.py", line 31, in <module>
> 2016-01-22 12:30:29.030303     from keystone.version import service as
> keystone_service
> 2016-01-22 12:30:29.030324   File "/opt/stack/keystone/keystone/
> version/service.py", line 20, in <module>
> 2016-01-22 12:30:29.030390     from paste import deploy
> 2016-01-22 12:30:29.030410 ImportError: cannot import name deploy
> 2016-01-22 12:30:31.282643 mod_wsgi (pid=5923): Target WSGI script '/
> usr/local/bin/keystone-wsgi-admin' cannot be loaded as Python module.
> 2016-01-22 12:30:31.282693 mod_wsgi (pid=5923): Exception occurred 
> processing WSGI script '/usr/local/bin/keystone-wsgi-admin'.
> 2016-01-22 12:30:31.282716 Traceback (most recent call last):
> 2016-01-22 12:30:31.282734   File "/usr/local/bin/keystone-wsgi-
> admin", line 6, in <module>
> 2016-01-22 12:30:31.282816     from keystone.server.wsgi import 
> initialize_admin_application
> 2016-01-22 12:30:31.282838   File "/opt/stack/keystone/keystone/
> server/wsgi.py", line 31, in <module>
> 2016-01-22 12:30:31.282900     from keystone.version import service as
> keystone_service
> 2016-01-22 12:30:31.282921   File "/opt/stack/keystone/keystone/
> version/service.py", line 20, in <module>
> 2016-01-22 12:30:31.283000     from paste import deploy
> 2016-01-22 12:30:31.283027 ImportError: cannot import name deploy
> 
> Thanks
> 
Vikram__________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: 
OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

I guess the symptom is mentioned here:

    2016-01-22 11:35:24.804694 ImportError: cannot import name deploy

It's a "popluar" issue [1][2]. Try:

    $ pip install pastedeploy
    $ pip install paste
    $ python
    >>> import paste 
    >>> import paste.deploy

If this works, a new stack should work too.

[1] 
http://stackoverflow.com/questions/32085733/importerror-no-module-named-deploy
[2] 
https://ask.openstack.org/en/question/11458/keystone-all-importerror-cannot-import-name-deploy/




More information about the OpenStack-dev mailing list